[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[fedora-virt] Re: libguestfs: fix for checking perl modules



On Tue, Apr 28, 2009 at 11:21:59AM +0100, Luciano Miguel Ferreira Rocha wrote:
> Another patch, this fix invoking make-initramfs.sh and
> update-initramfs.sh.
> 
> On a normal make (normal in RHEL 5.3), $(builddir) is empty.
> Automake/conf uses $(top_builddir) instead.
> 
> -------------- 8< --------------
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -70,11 +70,11 @@ $(INITRAMFSIMG) $(VMLINUZ): initramfs/fakeroot.log
>  initramfs/fakeroot.log: make-initramfs.sh.in
>         -mv $(INITRAMFSIMG) $(INITRAMFSIMG).bak
>         -mv $(VMLINUZ) $(VMLINUZ).bak
> -       if ! bash $(builddir)/make-initramfs.sh; then rm -f $@; exit 1;
>         fi
> +       if ! bash $(top_builddir)/make-initramfs.sh; then rm -f $@; exit
> 1; fi
>  
>  $(INITRAMFSIMG): initramfs/fakeroot.log daemon/guestfsd
>         rm -f $@
> -       bash $(builddir)/update-initramfs.sh
> +       bash $(top_builddir)/update-initramfs.sh
>         touch $@
>  
>  # Tests.  These are auto-generated from the test descriptions.
> -------------- 8< --------------

Thanks - applied.

You're trying to compile libguestfs on RHEL 5.3?  That's entering new
territory.

> I have one problem when creating the initramfs, though. If I run the
> make as normal user, after the 'yum install' make fails with:
>   chroot: cannot run command `chmod': No such file or directory
> 
> This is caused by ldconfig calls under yum fail. Probably because
> ldconfig is statically compiled and fake* don't work with that?

Which version of fakeroot and fakechroot do you have?  You need a very
recent fakechroot (2.9 + patches -- see the Fedora Rawhide package),
otherwise nothing will work.

> When running make as root, the ldconfig calls don't fail, but

You really don't want to be running 'make' as root.  There be dragons!
Or at least a good way to mess up your machine.

Rich.

-- 
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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]