arnaud gaboury
2014-Aug-11 17:59 UTC
Re: [Libguestfs] issue when building/making package from git
> You can avoid testing gnulib (not very interesting anyway) by running: > > ./configure --disable-gnulib-testsI personaly do not care, but in case i make a libguestfs-git PKBUILD, I want everything be OK. I just realised than I followed the libguestfs PKGBUILD, but NO virt-p2v and virt-v2v binaries are installed in /usr/bin. Shame. I am rewriting the git PKGBUILD.
Richard W.M. Jones
2014-Aug-11 18:52 UTC
Re: [Libguestfs] issue when building/making package from git
On Mon, Aug 11, 2014 at 07:59:56PM +0200, arnaud gaboury wrote:> > You can avoid testing gnulib (not very interesting anyway) by running: > > > > ./configure --disable-gnulib-tests > > I personaly do not care, but in case i make a libguestfs-git PKBUILD, > I want everything be OK. > I just realised than I followed the libguestfs PKGBUILD, but NO > virt-p2v and virt-v2v binaries are installed in /usr/bin.There's probably a dependency missing. Look closely at the ./configure output and the README file.> Shame. I am rewriting the git PKGBUILD.- - - I notice you wrote on the AUR about problems using the appliance. If you're doing ./configure --disable-appliance, then it's not really surprising that the appliance doesn't get built. You should test this first of all by building from source, and without installing, running using the `./run' script. eg: ./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? If there are errors, post the *complete* output of the commands when debugging is enabled. It is very important that you do not edit or abbreviate the output. And read this: http://libguestfs.org/guestfs-faq.1.html#debug I am able to build and run libguestfs on ArchLinux. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://people.redhat.com/~rjones/virt-top
Richard W.M. Jones
2014-Aug-11 19:03 UTC
Re: [Libguestfs] issue when building/making package from git
I forgot to say you probably have to kill tmpfs, or set TMPDIR to be /var/tmp. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into KVM guests. http://libguestfs.org/virt-v2v
arnaud gaboury
2014-Aug-11 19:38 UTC
Re: [Libguestfs] issue when building/making package from git
> > I notice you wrote on the AUR about problems using the appliance. > > If you're doing ./configure --disable-appliance, then it's not really > surprising that the appliance doesn't get built. >The issue I had described on AUR where obtained when removing /configure --disable-appliance ! If I understand, the package maintainer decided to disable it and wrote his own script. Just to test, I removed the two files from his PKGBUILD and removed the disable option.
arnaud gaboury
2014-Aug-12 09:22 UTC
Re: [Libguestfs] issue when building/making package from git
> 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.