[pacman-dev] [PATCH 4/5] makepkg: add soprovides support
Allan McRae
allan at archlinux.org
Fri Jan 21 19:20:08 EST 2011
On 22/01/11 02:54, Thomas Bächler wrote:
> Where does that leave us? Essentially, we cannot get this feature
> implemented, as all those restrictions combined leave us with no
> options. Clearly, you don't see any options either, as you only provide
> destructive criticism, no suggestions on how you think it should be done.
I only pointed out the things that I see are wrong because they are what
needed fixed. Also it was 2am when I replied in between dealing with a
sick child so my time for pleasantries was limited. I did not think
everybodies self esteem was so low that I needed to praise the correct
parts too.
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.
So:
provides=(libfoo.so)
Results in
%PROVIDES%
libfoo.so=6-32
where pkgver is the library soname and pkgrel indicates 32/64 bit. If
the "file" output does not include 32-bit or 64-bit, then just do not
set the pkgrel value.
That solves all comments made so far apart from the documentation needed
on what this does...
Allan
More information about the pacman-dev
mailing list