[PATCH libICE] Enable visibility annotations

Yury Gribov y.gribov at samsung.com
Wed Apr 20 07:03:24 UTC 2016


On 04/19/2016 06:35 PM, Yury Gribov wrote:
> On 04/18/2016 06:21 PM, Adam Jackson wrote:
>> On Mon, 2016-04-18 at 09:23 +0300, Yury Gribov wrote:
>>
>>> Does below look like a sane approach?
>>> 1) get all deps via
>>>     $ apt-cache rdepends libice6 libice-dev
>>> 2) unpack each of the above .debs and scan for ELFs
>>> 3) for each ELF see if one of now hidden symbols is UND
>>
>> That sounds good to me.
>
> I've cooked a simple script (attached, reviews welcome) and applied it
> to Ubuntu 14. It showed that there are additional uses for
> _IceTransNoListen (mentioned by Alan in separate email) but nothing else.
>
>>> Note that this does not handle transitive dependencies e.g. if some
>>> weird library links static version of libICE and the re-exports it's
>>> symbols as part of new lib's public interface.
>>
>> It'd be possible to scan for this too I suspect.  Look for packages
>> that BuildRequire libice6-static, scan the resulting binaries for
>> exports. I suspect there are zero such packages.
>
> I have postponed this activity for now (especially given that this
> behavior would be a serious packaging abuse).

Here's an updated patch with added _IceTransNoListen.  Does this look 
better now?

-Y
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Added-visibility-annotations.patch
Type: text/x-patch
Size: 11959 bytes
Desc: not available
URL: <https://lists.x.org/archives/xorg-devel/attachments/20160420/81137a79/attachment-0001.bin>


More information about the xorg-devel mailing list