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

Allan McRae allan at archlinux.org
Fri Jan 21 11:04:08 EST 2011

On 22/01/11 01:02, Florian Pritz wrote:
> 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.

That portability patch seems to be mainly to add compatibility to older 
Linux systems, not for non-Linux systems.


More information about the pacman-dev mailing list