Notes on building libguestfs on RHEL 5 (was: Re: [fedora-virt] libguestfs on non-Fedora targets)

Richard W.M. Jones rjones at redhat.com
Wed May 6 12:40:12 UTC 2009


Just following up here with my notes on building libguestfs and
dependencies on RHEL 5 and derived distributions.  In fact this build
is being done on a CentOS 5.3 / i386 machine.

----------------------------------------------------------------------

(1) I note that fakeroot and fakechroot in EPEL are ancient history.
Therefore pull fakeroot and fakechroot source RPMs from Rawhide, and
use those instead.

  fakeroot 1.12.2-21
  fakechroot 2.9-20

(2) Neither SRPM can be rebuilt directly because of the MD5/SHA change
that happened in RPM.  Therefore I have to unpack them by hand using
`rpm2cpio'.

(3) fakeroot builds with no problem.

(4) fakechroot requires a small patch to autogen.sh in order to build
on CentOS [attached].

After building, all binary RPMs are installed.

(5) Build febootstrap from git repo.

(6) Test febootstrap:

  ./febootstrap fedora-10 f10

Many scriptlets fail because of a glibc version problem.  I don't
understand why it's using the host glibc and not the appliance /
fakechrooted glibc, so this may be a bug in fakechroot or a problem
with fakechroot on this older glibc.

  ./febootstrap centos-5 c5 http://mirror.centos.org/centos-5/5.3/os/i386/

[More to come in a followup posting]

-- 
Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top
-------------- next part --------------
--- fakechroot-2.9.orig/autogen.sh	2009-03-19 14:43:19.000000000 +0000
+++ fakechroot-2.9/autogen.sh	2009-05-06 12:33:20.000000000 +0100
@@ -13,10 +13,10 @@
     rm -f depcomp install-sh libtool ltmain.sh missing stamp-h1
     rm -rf autom4te.cache
 
-    aclocal-${automake_version} "$@"
+    aclocal "$@"
     autoheader
     libtoolize --force --copy
-    automake-${automake_version} --add-missing --copy
+    automake --add-missing --copy
     autoconf
 
     rm -rf autom4te.cache


More information about the Fedora-virt mailing list