[pacman-dev] [PATCH 4/5] makepkg: add soprovides support
allan at archlinux.org
Sat Jan 22 07:15:56 EST 2011
On 22/01/11 21:25, Thomas Bächler wrote:
> Am 22.01.2011 11:25, schrieb Allan McRae:
>> What are we going to do about OSX and its lack of elf binaries?
> A solution that fits all platforms probably doesn't exist here. We can
> implement this for ELF now, and maybe someone can figure out the OS X
> version at some point. (.dylib is very weird IIRC, I had to look into
> that once).
That sounds fine. I did not realise that a different extension is used
for shared libraries on OSX (although I should have thinking about
it...). So just working with ELF for now seems fine.
Some other things to think about. I just built a bunch of packages
using soprovides/sodepends with readline providing libreadline.so.
With this, on an upgrade with a soname bump we will get a whole heap of
warning: provider package was selected (readline provides libreadline.so)
So we need to consider whether we want to keep that message displayed,
or if there is some way to only display it once (see next).
I also noticed the performance hit in satisfying dependencies using
provides. I wonder if we can optimise dependency checking such that we
check for a given dependency only once, even if it is needed across
multiple packages? That would also solve the output issue above. I'm
not familiar enough with the dependency checking code to know if that is
More information about the pacman-dev