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

Allan McRae allan at archlinux.org
Sat Jan 22 05:25:06 EST 2011

On 22/01/11 19:31, Florian Pritz wrote:
> On 22.01.2011 01:20, Allan McRae wrote:
>> And how can we do this portably and subject to the restrictions given...
>>     Well, it has been established that using objdump or elfutils has
>> issues so lets just exclude them from the start.  How else can we get
>> information about a file?  file...  That tells you whether a binary is
>> 32 or 64 bit, and is already required by makepkg.
> file doesn't tell you the library soname so I don't know what ld will
> use for linking. So far readelf seems to be the best choice because I
> can also use it to generate the dependencies (right now it seems like we
> are too focused on the provides). Your example below can be achieved
> using readelf.
> Also file's output doesn't have to be the same on different platforms.

What are we going to do about OSX and its lack of elf binaries?

More information about the pacman-dev mailing list