[Libguestfs] issue when building/making package from git

arnaud gaboury arnaud.gaboury at gmail.com
Tue Aug 12 09:22:00 UTC 2014


> There's probably a dependency missing.  Look closely at the
> ./configure output and the README file.
>
I have checked all packages in README and
libguestfs/appliance/packagelist. All are installed.

>
> You should test this first of all by building from source, and
> without installing,
I first run makepkg, so no install


>
>   ./run guestfish -N fs -m /dev/sda1 touch /this_is_a_file
>
> does that run without errors, create a file called `test1.img' which
> is a disk image containing a filesystem?

NO
$  export LIBGUESTFS_DEBUG=1
$  export LIBGUESTFS_TRACE=1
$ ./run guestfish -N fs -m /dev/sda1 touch /this_is_a_file

...................
supermin: version: 5.1.8
supermin: package handler: arch/pacman
supermin: acquiring lock on
/drawer/aur/libguestfs-git/src/libguestfs/tmp/.guestfs-1000/lock
supermin: build: /drawer/aur/libguestfs-git/src/libguestfs/appliance/supermin.d
supermin: build: visiting
/drawer/aur/libguestfs-git/src/libguestfs/appliance/supermin.d/daemon.tar.gz
type gzip base image (tar)
supermin: build: visiting
/drawer/aur/libguestfs-git/src/libguestfs/appliance/supermin.d/excludefiles
type uncompressed excludefiles
supermin: build: visiting
/drawer/aur/libguestfs-git/src/libguestfs/appliance/supermin.d/hostfiles
type uncompressed hostfiles
supermin: build: visiting
/drawer/aur/libguestfs-git/src/libguestfs/appliance/supermin.d/init.tar.gz
type gzip base image (tar)
supermin: build: visiting
/drawer/aur/libguestfs-git/src/libguestfs/appliance/supermin.d/udev-rules.tar.gz
type gzip base image (tar)
supermin: build: 0 packages, including dependencies
supermin: exception: Stack overflow
libguestfs: error: /usr/bin/supermin exited with error status 1, see
debug messages above
libguestfs: trace: launch = -1 (error)
libguestfs: trace: close
libguestfs: closing guestfs handle 0x2447c90 (state 0)
libguestfs: command: run: rm
........................................................



Now building libguestfs from git using PKGBUILD:
# kill tmpfs
$ export LIBGUESTFS_DEBUG=1
$  export LIBGUESTFS_TRACE=1
$ makepkg

below is the build() part of my PKGBUILD
--------------------------------
  ./autogen.sh
  ./configure \
    --enable-introspection=auto \
   --with-gnu-ld \
    --without-java \
    --disable-lua \
    --disable-erlang \
    --disable-php \
    --disable-haskell \
    --disable-ruby \
    --disable-gobject \
    --disable-golang

  make V=1 &> build_output.txt
---------------------------------------------------

configure output:
-------------------------------
This is how we have configured the optional components for you today:

Daemon .............................. yes
Appliance ........................... yes
QEMU ................................ /usr/bin/qemu-kvm
guestfish and C-based virt tools .... yes
FUSE filesystem ..................... yes
GNU gettext for i18n ................ yes
virt-p2v ............................ yes
OCaml bindings ...................... yes
OCaml-based virt tools .............. yes
Perl bindings ....................... yes
Perl-based virt tools ............... no
Python bindings ..................... yes
Ruby bindings ....................... no
Java bindings ....................... no
Haskell bindings .................... no
PHP bindings ........................ no
Erlang bindings ..................... no
Lua bindings ........................ no
Go bindings ......................... no
gobject bindings .................... no
gobject introspection ............... no
bash completion ..................... no
---------------------------------------------------------

Build failed with this error from build_output.txt :
--------------------------
:: Synchronizing package databases...
error: failed to update core (unable to lock database)
error: failed to update extra (unable to lock database)
error: failed to update community (unable to lock database)
error: failed to update multilib (unable to lock database)
error: failed to synchronize any databases
error: failed to init transaction (unable to lock database)
error: could not lock database: Permission denied
--2014-08-12 11:13:15--
https://aur.archlinux.org/packages/e2/e2fsprogs/e2fsprogs.tar.gz
Resolving aur.archlinux.org (aur.archlinux.org)... 5.9.250.164,
2a01:4f8:160:3033::2
Connecting to aur.archlinux.org
(aur.archlinux.org)|5.9.250.164|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2014-08-12 11:13:15 ERROR 404: Not Found.

supermin: set -e
          umask 0000
          cd '/tmp/supermin150626.tmpdir/ok816lfh'
          wget 'https://aur.archlinux.org/packages/e2/e2fsprogs/e2fsprogs.tar.gz'
          tar xf 'e2fsprogs.tar.gz'
          cd 'e2fsprogs'
          /usr/bin/makepkg
          mv 'e2fsprogs'-*.pkg.tar.xz '/tmp/supermin150626.tmpdir/ok816lfh'
       : command failed, see earlier errors
Makefile:1836: recipe for target 'stamp-supermin' failed
make[2]: *** [stamp-supermin] Error 1
make[2]: Leaving directory '/drawer/aur/libguestfs-git/src/libguestfs/appliance'
Makefile:1856: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/drawer/aur/libguestfs-git/src/libguestfs'
Makefile:1729: recipe for target 'all' failed
make: *** [all] Error 2
--------------------------------------------

Few comments:
- e2fsprogs is installed on my box, so I do not see why all this mess
with this package
-https://aur.archlinux.org/packages/e2/e2fsprogs/e2fsprogs.tar.gz does not exits
- e2fsprogs is part of the core package, so why use the AUR one ?
Furthermore, in AUR there is only e2fsprogs-git



>
> I am able to build and run libguestfs on ArchLinux.
So you lucky guy. Best would be you make an AUR libguestfs-git package
then. It would help.

I can not do more as what has been posted above.




More information about the Libguestfs mailing list