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

Re: [Libguestfs] fedoostrap or deboostrap requirement



 And now the make process fails with the following error:

libguestfs-1.0.57 # make
make  all-recursive
make[1]: Entering directory
`/var/tmp/portage/app-emulation/libguestfs-1.0.57/work/libguestfs-1.0.57'
Making all in src
make[2]: Entering directory
`/var/tmp/portage/app-emulation/libguestfs-1.0.57/work/libguestfs-1.0.57/src'
make  all-am
make[3]: Entering directory
`/var/tmp/portage/app-emulation/libguestfs-1.0.57/work/libguestfs-1.0.57/src'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory
`/var/tmp/portage/app-emulation/libguestfs-1.0.57/work/libguestfs-1.0.57/src'
make[2]: Leaving directory
`/var/tmp/portage/app-emulation/libguestfs-1.0.57/work/libguestfs-1.0.57/src'
Making all in daemon
make[2]: Entering directory
`/var/tmp/portage/app-emulation/libguestfs-1.0.57/work/libguestfs-1.0.57/daemon'
make  all-am
make[3]: Entering directory
`/var/tmp/portage/app-emulation/libguestfs-1.0.57/work/libguestfs-1.0.57/daemon'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory
`/var/tmp/portage/app-emulation/libguestfs-1.0.57/work/libguestfs-1.0.57/daemon'
make[2]: Leaving directory
`/var/tmp/portage/app-emulation/libguestfs-1.0.57/work/libguestfs-1.0.57/daemon'
Making all in appliance
make[2]: Entering directory
`/var/tmp/portage/app-emulation/libguestfs-1.0.57/work/libguestfs-1.0.57/appliance'
mv initramfs.lenny.x86_64.img initramfs.lenny.x86_64.img.bak
mv vmlinuz.lenny.x86_64 vmlinuz.lenny.x86_64.bak
if ! bash make.sh; then rm -f ../initramfs/fakeroot.log; exit 1; fi
+ '[' DEBIAN = REDHAT ']'
+ '[' DEBIAN = DEBIAN ']'
+ cd ../appliance
+ debirf make -n debian
Warning: You are running debirf as root.  There is a potential
for improperly written modules to damage your system.
Loading profile 'debian'...
debirf: clearing old debirf root...
debirf: creating debirf root...
dpkg: warning: obsolete option '--print-installation-architecture',
please use '--print-architecture' instead.
I: Retrieving Release
I: Retrieving Release.gpg
I: Checking Release signature
I: Valid Release signature (key id 7F5A44454C724A65CBCD4FB14D270D06F42584E6)
I: Retrieving Packages
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Checking component main on http://ftp.debian.org/debian...
I: Retrieving adduser
I: Validating adduser
I: Retrieving apt
I: Validating apt
I: Retrieving aptitude
I: Validating aptitude
I: Retrieving base-files
I: Validating base-files
I: Retrieving base-passwd
I: Validating base-passwd
I: Retrieving bash
I: Validating bash
I: Retrieving binutils
I: Validating binutils
I: Retrieving bsdutils
I: Validating bsdutils
I: Retrieving coreutils
I: Validating coreutils
I: Retrieving cpio
I: Validating cpio
I: Retrieving debconf
I: Validating debconf
I: Retrieving debconf-i18n
I: Validating debconf-i18n
I: Retrieving debian-archive-keyring
I: Validating debian-archive-keyring
I: Retrieving debianutils
I: Validating debianutils
I: Retrieving dhcp3-client
I: Validating dhcp3-client
I: Retrieving dhcp3-common
I: Validating dhcp3-common
I: Retrieving diff
I: Validating diff
I: Retrieving dmidecode
I: Validating dmidecode
I: Retrieving dpkg
I: Validating dpkg
I: Retrieving e2fslibs
I: Validating e2fslibs
I: Retrieving e2fsprogs
I: Validating e2fsprogs
I: Retrieving findutils
I: Validating findutils
I: Retrieving gawk
I: Validating gawk
I: Retrieving gcc-4.2-base
I: Validating gcc-4.2-base
I: Retrieving gcc-4.3-base
I: Validating gcc-4.3-base
I: Retrieving gnupg
I: Validating gnupg
I: Retrieving gpgv
I: Validating gpgv
I: Retrieving grep
I: Validating grep
I: Retrieving groff-base
I: Validating groff-base
I: Retrieving gzip
I: Validating gzip
I: Retrieving hostname
I: Validating hostname
I: Retrieving ifupdown
I: Validating ifupdown
I: Retrieving initscripts
I: Validating initscripts
I: Retrieving iproute
I: Validating iproute
I: Retrieving iptables
I: Validating iptables
I: Retrieving iputils-ping
I: Validating iputils-ping
I: Retrieving less
I: Validating less
I: Retrieving libacl1
I: Validating libacl1
I: Retrieving libattr1
I: Validating libattr1
I: Retrieving libblkid1
I: Validating libblkid1
I: Retrieving libbz2-1.0
I: Validating libbz2-1.0
I: Retrieving libc6
I: Validating libc6
I: Retrieving libcomerr2
I: Validating libcomerr2
I: Retrieving libconsole
I: Validating libconsole
I: Retrieving libcwidget3
I: Validating libcwidget3
I: Retrieving libdb4.6
I: Validating libdb4.6
I: Retrieving libdevmapper1.02.1
I: Validating libdevmapper1.02.1
I: Retrieving libept0
I: Validating libept0
I: Retrieving libgcc1
I: Validating libgcc1
I: Retrieving libgcrypt11
I: Validating libgcrypt11
I: Retrieving libgdbm3
I: Validating libgdbm3
I: Retrieving libgnutls26
I: Validating libgnutls26
I: Retrieving libgpg-error0
I: Validating libgpg-error0
I: Retrieving liblocale-gettext-perl
I: Validating liblocale-gettext-perl
I: Retrieving libncurses5
I: Validating libncurses5
I: Retrieving libncursesw5
I: Validating libncursesw5
I: Retrieving libnewt0.52
I: Validating libnewt0.52
I: Retrieving libpam-modules
I: Validating libpam-modules
I: Retrieving libpam-runtime
I: Validating libpam-runtime
I: Retrieving libpam0g
I: Validating libpam0g
I: Retrieving libpopt0
I: Validating libpopt0
I: Retrieving libreadline5
I: Validating libreadline5
I: Retrieving libsasl2-2
I: Validating libsasl2-2
I: Retrieving libselinux1
 I: Validating libselinux1
I: Retrieving libsepol1
I: Validating libsepol1
I: Retrieving libsigc++-2.0-0c2a
I: Validating libsigc++-2.0-0c2a
I: Retrieving libslang2
I: Validating libslang2
I: Retrieving libss2
I: Validating libss2
I: Retrieving libssl0.9.8
I: Validating libssl0.9.8
I: Retrieving libstdc++6
I: Validating libstdc++6
I: Retrieving libtasn1-3
I: Validating libtasn1-3
I: Retrieving libtext-charwidth-perl
I: Validating libtext-charwidth-perl
I: Retrieving libtext-iconv-perl
I: Validating libtext-iconv-perl
I: Retrieving libtext-wrapi18n-perl
I: Validating libtext-wrapi18n-perl
I: Retrieving libusb-0.1-4
I: Validating libusb-0.1-4
I: Retrieving libuuid1
I: Validating libuuid1
I: Retrieving libwrap0
I: Validating libwrap0
I: Retrieving libxapian15
I: Validating libxapian15
I: Retrieving login
I: Validating login
I: Retrieving lsb-base
I: Validating lsb-base
I: Retrieving lzma
I: Validating lzma
I: Retrieving makedev
I: Validating makedev
I: Retrieving mawk
I: Validating mawk
I: Retrieving mktemp
I: Validating mktemp
I: Retrieving module-init-tools
I: Validating module-init-tools
I: Retrieving mount
I: Validating mount
I: Retrieving nano
I: Validating nano
I: Retrieving ncurses-base
I: Validating ncurses-base
I: Retrieving ncurses-bin
I: Validating ncurses-bin
I: Retrieving net-tools
I: Validating net-tools
I: Retrieving netbase
I: Validating netbase
I: Retrieving netcat-traditional
I: Validating netcat-traditional
I: Retrieving passwd
I: Validating passwd
I: Retrieving perl-base
I: Validating perl-base
I: Retrieving procps
I: Validating procps
I: Retrieving readline-common
I: Validating readline-common
I: Retrieving rsyslog
I: Validating rsyslog
I: Retrieving sed
I: Validating sed
I: Retrieving sysv-rc
I: Validating sysv-rc
I: Retrieving sysvinit
I: Validating sysvinit
I: Retrieving sysvinit-utils
I: Validating sysvinit-utils
I: Retrieving tar
I: Validating tar
I: Retrieving tzdata
I: Validating tzdata
I: Retrieving update-inetd
I: Validating update-inetd
I: Retrieving util-linux
I: Validating util-linux
I: Retrieving vim-common
I: Validating vim-common
I: Retrieving vim-tiny
I: Validating vim-tiny
I: Retrieving wget
I: Validating wget
I: Retrieving whiptail
I: Validating whiptail
I: Retrieving zlib1g
I: Validating zlib1g
I: Extracting base-files...
I: Extracting base-passwd...
I: Extracting bash...
I: Extracting binutils...
I: Extracting bsdutils...
I: Extracting coreutils...
I: Extracting debconf...
I: Extracting debconf-i18n...
I: Extracting debianutils...
I: Extracting diff...
I: Extracting dpkg...
I: Extracting e2fslibs...
I: Extracting e2fsprogs...
I: Extracting findutils...
I: Extracting gcc-4.2-base...
I: Extracting gcc-4.3-base...
I: Extracting grep...
I: Extracting gzip...
I: Extracting hostname...
I: Extracting initscripts...
I: Extracting libacl1...
I: Extracting libattr1...
I: Extracting libblkid1...
I: Extracting libc6...
I: Extracting libcomerr2...
I: Extracting libdb4.6...
I: Extracting libdevmapper1.02.1...
I: Extracting libgcc1...
I: Extracting liblocale-gettext-perl...
I: Extracting libncurses5...
I: Extracting libpam-modules...
I: Extracting libpam-runtime...
I: Extracting libpam0g...
I: Extracting libselinux1...
I: Extracting libsepol1...
I: Extracting libslang2...
I: Extracting libss2...
I: Extracting libstdc++6...
I: Extracting libtext-charwidth-perl...
I: Extracting libtext-iconv-perl...
I: Extracting libtext-wrapi18n-perl...
I: Extracting libuuid1...
I: Extracting login...
I: Extracting lsb-base...
I: Extracting lzma...
I: Extracting makedev...
I: Extracting mawk...
I: Extracting mktemp...
I: Extracting mount...
I: Extracting ncurses-base...
I: Extracting ncurses-bin...
I: Extracting passwd...
I: Extracting perl-base...
I: Extracting procps...
I: Extracting sed...
I: Extracting sysv-rc...
I: Extracting sysvinit...
I: Extracting sysvinit-utils...
I: Extracting tar...
I: Extracting tzdata...
I: Extracting util-linux...
I: Extracting zlib1g...
I: Installing core packages...
make[2]: *** [../initramfs/fakeroot.log] Error 1
make[2]: Leaving directory
`/var/tmp/portage/app-emulation/libguestfs-1.0.57/work/libguestfs-1.0.57/appliance'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/app-emulation/libguestfs-1.0.57/work/libguestfs-1.0.57'
make: *** [all] Error 2

 Hope you can help me with this one.

 Alex


Piavlo wrote:
> Guido Günther wrote:
>   
>> You need to figure out why debirf thinks you're running as uid 0. Either
>> you're really doing so or you're running with fakeroot already.
>>     
> Actually I'm running as root , but to be more precise I'm running this
> from gentoo emerge/ebuild process which setups proper
> sandbox to avoid system damage.
>
>  I've had several additional problem i managed to solve, the last one
> might need proper solution in deootstrap code - details below:
>
> # fakeroot -i debian/.fakeroot-state.debirf-libguestfs -s
> debian/.fakeroot-state.debirf-libguestfs fakechroot
> /usr/sbin/debootstrap --variant=fakechroot
> --keyring=/usr/share/keyrings/debian-archive-keyring.gpg --include=less
> --exclude=apt-utils,bsdmainutils,cron,ed,info,logrotate,man-db,manpages,tasksel,tasksel-data,tcpd,traceroute
> lenny debian/root http://ftp.debian.org/debian/
> I: Retrieving Release
> I: Retrieving Release.gpg
> I: Checking Release signature
> I: Valid Release signature (key id 7F5A44454C724A65CBCD4FB14D270D06F42584E6)
> I: Validating Packages
> I: Resolving dependencies of required packages...
> I: Resolving dependencies of base packages...
> I: Checking component main on http://ftp.debian.org/debian...
> I: Validating adduser
> I: Validating apt
> I: Validating aptitude
> ...
> I: Extracting util-linux...
> I: Extracting zlib1g...
> I: Installing core packages...
> W: Failure trying to run: chroot
> /var/tmp/portage/app-emulation/libguestfs-1.0.57/work/libguestfs-1.0.57/appliance/debian/root
> dpkg --force-depends --install
> /var/cache/apt/archives/base-files_5lenny3_amd64.deb
> /var/cache/apt/archives/base-passwd_3.5.20_amd64.deb
>
>  I managed to solve it by patching debootstrap - more details below:
>
> # chroot
> /var/tmp/portage/app-emulation/libguestfs-1.0.57/work/libguestfs-1.0.57/appliance/debian/root
> (chroot):/# dpkg -l
> Desired=Unknown/Install/Remove/Purge/Hold
> |
> Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
> |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:
> uppercase=bad)
> ||/ Name           Version        Description
> +++-==============-==============-============================================
> ii  base-files     5lenny3        Debian base system miscellaneous files
> ii  base-passwd    3.5.20         Debian base system master password and
> group
> ii  dpkg           1.14.25
> (chroot):/# exit            
> #
> # chroot
> /var/tmp/portage/app-emulation/libguestfs-1.0.57/work/libguestfs-1.0.57/appliance/debian/root
> dpkg --force-depends --install
> /var/cache/apt/archives/base-files_5lenny3_amd64.deb
> /var/cache/apt/archives/base-passwd_3.5.20_amd64.deb
> Selecting previously deselected package base-files.
> dpkg: regarding .../base-files_5lenny3_amd64.deb containing base-files,
> pre-dependency problem:
>  base-files pre-depends on awk
>   awk is not installed.
> dpkg: warning - ignoring pre-dependency problem !
> (Reading database ... 0 files and directories currently installed.)
> Unpacking base-files (from .../base-files_5lenny3_amd64.deb) ...
> Selecting previously deselected package base-passwd.
> Unpacking base-passwd (from .../base-passwd_3.5.20_amd64.deb) ...
> dpkg: base-passwd: dependency problems, but configuring anyway as you
> request:
>  base-passwd depends on libc6 (>= 2.7-1); however:
>   Package libc6 is not installed.
> Setting up base-passwd (3.5.20) ...
> dpkg: base-files: dependency problems, but configuring anyway as you
> request:
>  base-files depends on awk; however:
>   Package awk is not installed.
> Setting up base-files (5lenny3) ...
> # echo $?
> 0
> #        
>
> So something must be wrong in the debootstrap code, and the following
> patch fixes it
>
> # diff -Nru /usr/share/debootstrap/scripts/lenny.orig
> /usr/share/debootstrap/scripts/lenny
> --- /usr/share/debootstrap/scripts/lenny.orig   2009-07-13
> 00:15:25.000000000 +0300
> +++ /usr/share/debootstrap/scripts/lenny        2009-07-13
> 00:15:16.000000000 +0300
> @@ -80,7 +80,7 @@
>
>  second_stage_install () {
>      x_core_install () {
> -       smallyes '' | in_target dpkg --force-depends --install $(debfor
> "$@")
> +       chroot $TARGET dpkg --force-depends --install $(debfor "$@")
>      }
>
>      p () {
> #
>
> Meaning in_target function defined in /usr/share/debootstrap/functions
> does not work correctly.
>
> Alex
>
> _______________________________________________
> Libguestfs mailing list
> Libguestfs redhat com
> https://www.redhat.com/mailman/listinfo/libguestfs
>   


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