[pacman-dev] [PATCH 4/5] makepkg: add soprovides support

Florian Pritz bluewind at server-speed.net
Fri Jan 21 10:02:11 EST 2011

On 21.01.2011 15:49, Allan McRae wrote:
> On 22/01/11 00:25, Florian Pritz wrote:
>> On 19.01.2011 19:54, Dan McGee wrote:
> <snip>
>>> * introducing dependencies on readelf and objdump. At least elsewhere
>>> in the strip code, we use `file` to locate shared libraries. And you
>>> can get the SONAME bit out of objdump -p, which would at least limit
>>> this to one tool.
>> readelf and objdump are both in binutils, but I've noticed that objdump
>> doesn't support the file format generated by tcc although readelf does
>> and it's a valid ELF file afaict.
>> eu-objdump (elfutils) can't output that much, but it understands tcc's
>> format and outputs pretty nice architecture information. Sadly I have no
>> idea if that's portable.
>> Now I'm using readelf (binutils) and eu-objdump (elfutils). I think it's
>> fine since both are in core and you only need them for makepkg anyway.
> We have pacman/makepkg users on Linux, OSX, BSD, Hurd, Cygwin... 
> Whatever is used here needs to be portable to all those.   I do not 
> believe elfutils is particularly portable...

I'd use objdump (binutils), but I don't know if it's compatible with
binaries not generated by gcc (at least tcc doesn't work) and I can't
really assume all users use gcc either.

There is a "portability" patch [1] for elfutils. Not sure if that is
what we need though.


Florian Pritz -- {flo,bluewind}@server-speed.net

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.archlinux.org/pipermail/pacman-dev/attachments/20110121/049bdc8f/attachment.asc>

More information about the pacman-dev mailing list