[pacman-dev] Inconsistency in detecting ARCH

Florian Pritz bluewind at server-speed.net
Wed Feb 10 13:06:40 EST 2010


On 02/10/2010 06:01 PM, Nezmer wrote:
> What arch are we talking about here.
> 
> I ran into this inconsistency when I used pacman/makepkg in FreeBSD.
> makepkg uses CARCH , pacman.conf uses "uname -m" which returns amd64 not
> x86_64 on FreeBSD , and If I'm looking at the right patch "readelf -h"
> is used here which will return ELF32 in 32bin-* and 32lib-* packages and
> that is technically correct and an intended behaviour (I think).
> 
I'm now using objdump to be able to tell apart ARM and x86 because
readelf returns ELF32 for both, but I can use sort of everything. uname
doesn't help because you could crosscompile 32bit libraries on a 64bit host.

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


More information about the pacman-dev mailing list