[Libvir] PATCH: Fix qemu-dm path in capabilities info

Richard W.M. Jones rjones at redhat.com
Mon Jan 21 11:55:45 UTC 2008


Daniel P. Berrange wrote:
> The current Xen capabilities XML data chooses between /usr/lib/xen/bin/qemu-dm
> and /usr/lib64/xen/bin/qemu-dm based on whether the guest arch is 64 bit.
> This is incorrect because the path is actually determined based on the host
> OS. Only x86_64 uses /usr/lib64, all other arches just use /usr/lib - even
> on ia64. So this patch changes the logic so that /usr/lib64 is only used if
> we see an x86_64 guest present - this implies host is x86_64 and that all
> guests whether 32 or 64bit shoudl use /usr/lib64

Actually Debian uses /usr/lib too on all architectures (in fact I'm not 
sure which other Linux systems use /usr/lib64 - it's very peculiar to 
Red Hat).

However Debian symlinks /usr/lib64 -> /usr/lib, presumably for 
compatibility with whoever thought using /usr/lib64 was a good idea in 
the first place.  Unix managed to transition from 16 to 32 bits without 
adding '*32' everywhere, I'm not sure why this time is different ...

Rich.

-- 
Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom.  Registered in
England and Wales under Company Registration No. 03798903
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20080121/e63d0e50/attachment-0001.bin>


More information about the libvir-list mailing list