[Mageia-dev] executable libraries

Anssi Hannula anssi at mageia.org
Thu Mar 1 23:05:35 CET 2012


02.03.2012 00:03, Maarten Vanraes kirjoitti:
> Op donderdag 01 maart 2012 22:54:59 schreef Anssi Hannula:
>> 01.03.2012 23:36, Pascal Terjan kirjoitti:
>>> I would say it doesn't matter and would not spend any time on it
>>
>> /usr/lib/rpm/mageia/find-debuginfo.sh:
>>
>> # Strip ELF binaries
>> find "$RPM_BUILD_ROOT" ! -path "${debugdir}/*.debug" -type f \
>>                      \( -perm -0100 -or -perm -0010 -or -perm -0001 \) \
>>                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>                      -print |
>> file -N -f - | sed -n -e 's/^\(.*\):[   ]*.*ELF.*, not stripped/\1/p' |
>> xargs --no-run-if-empty stat -c '%h %D_%i %n' |
>> while read nlinks inum f; do
>>
>>
>> Looks like debug packages and/or stripping won't work for non-executable
>> shared libraries.
> 
> hmm, there's a '!' there, so isn't it reverse then?

It reverses the -path rule only.

> but if this only works with executable libraries, (kind of weird imho), there 
> are at least 34 libraries on my system not marked as executable...
> 
> does this mean debug info fails for these?

I'm not immediately sure (I never remember how the debug/stripping stuff
works exactly), but I think either a) debug symbols extraction and thus
-debug packaging, b) stripping, or c) both will fail with non-executable
shared libs.

-- 
Anssi Hannula


More information about the Mageia-dev mailing list