arnaud gaboury
2014-Aug-12 12:53 UTC
Re: [Libguestfs] issue when building/making package from git
> > I suspect that you could fix this by running the following command as > before the build: > > sudo pacman -SyI always sue -Syu to install packages, and I already installed/reinstalled some packages today. Now one thing comes to my mind : lots of pacman stuff are NOT in the usal place. $ cat /etc/pacman.conf ----------------------------------- [options] # The following paths are commented out with their default values listed. # If you wish to use different paths, uncomment and update the paths. #RootDir = / DBPath = /var/lib/pacman CacheDir = /drawer/pacman/pkg #CacheDir = /var/cache/pacman/pkg #LogFile = /var/log/pacman.log #GPGDir = /etc/pacman.d/gnupg/ HoldPkg = pacman glibc #XferCommand = /usr/bin/curl -C - -f %u > %o #XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u #CleanMethod = KeepInstalled #UseDelta = 0.7 Architecture = auto ------------------------------------------ Could this unusual dir be the cause of this issue ??
arnaud gaboury
2014-Aug-12 13:10 UTC
Re: [Libguestfs] issue when building/making package from git
On Tue, Aug 12, 2014 at 2:53 PM, arnaud gaboury <arnaud.gaboury@gmail.com> wrote:>>> > $ cat /etc/pacman.conf > ----------------------------------- > [options] > # The following paths are commented out with their default values listed. > # If you wish to use different paths, uncomment and update the paths. > #RootDir = / > DBPath = /var/lib/pacman > CacheDir = /drawer/pacman/pkg> ------------------------------------------ > > Could this unusual dir be the cause of this issue ??Don't think so in fact as the DB is at usual place, /var/lib/pacman. Only the CacheDir is changed.
Richard W.M. Jones
2014-Aug-12 13:43 UTC
Re: [Libguestfs] issue when building/making package from git
On Tue, Aug 12, 2014 at 02:53:09PM +0200, arnaud gaboury wrote:> > > > I suspect that you could fix this by running the following command as > > before the build: > > > > sudo pacman -Sy > > I always sue -Syu to install packages, and I already > installed/reinstalled some packages today. > > Now one thing comes to my mind : lots of pacman stuff are NOT in the usal place. > > $ cat /etc/pacman.conf > ----------------------------------- > [options] > # The following paths are commented out with their default values listed. > # If you wish to use different paths, uncomment and update the paths. > #RootDir = / > DBPath = /var/lib/pacman > CacheDir = /drawer/pacman/pkg > #CacheDir = /var/cache/pacman/pkg > #LogFile = /var/log/pacman.log > #GPGDir = /etc/pacman.d/gnupg/ > HoldPkg = pacman glibc > #XferCommand = /usr/bin/curl -C - -f %u > %o > #XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u > #CleanMethod = KeepInstalled > #UseDelta = 0.7 > Architecture = auto > ------------------------------------------ > > Could this unusual dir be the cause of this issue ??I don't think so. Are you using supermin 5; and a recent version of supermin 5? Try checking out the supermin upstream repo, compiling it, and running the tests. They should all run successfully. git clone https://github.com/libguestfs/supermin cd supermin ./bootstrap ./autogen.sh make make check If the tests *don't* run successfully, then you've most likely found a bug in supermin. That has to be fixed before continuing. You can tell libguestfs to use the version of supermin that you compiled instead of whatever is installed by setting: export SUPERMIN=/path/to/supermin/src/supermin and rerun libguestfs configure/make. http://libguestfs.org/guestfs-faq.1.html#how-can-i-compile-and-install-libguestfs-if-my-distro-doesnt-have-new-enough-qemu-supermin-kernel Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://people.redhat.com/~rjones/virt-df/
arnaud gaboury
2014-Aug-12 14:19 UTC
Re: [Libguestfs] issue when building/making package from git
My current version is supermin 5.1.8-1> > If the tests *don't* run successfully, then you've most likely found a > bug in supermin. That has to be fixed before continuing. >tests failed. See the log below. ========================================= supermin 5.1.9: tests/test-suite.log ========================================= # TOTAL: 8 # PASS: 5 # SKIP: 0 # XFAIL: 0 # FAIL: 3 # XPASS: 0 # ERROR: 0 .. contents:: :depth: 2 FAIL: test-build-bash-network.sh =============================== supermin: version: 5.1.9 supermin: package handler: arch/pacman supermin: prepare: bash supermin: packages specified on the command line: - bash-4.3.022-1.x86_64 supermin: writing /tmp/tmp.VzGXV8cvA6/d1.8ffz2i4r/packages supermin: after resolving dependencies there are 8 packages: - bash-4.3.022-1.x86_64 - filesystem-2014.07-1.x86_64 - glibc-2.19-5.x86_64 - iana-etc-2.30-4.any - linux-api-headers-3.14.1-1.x86_64 - ncurses-5.9-6.x86_64 - readline-6.3.006-1.x86_64 - tzdata-2014e-1.any :: 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 16:16:57-- https://aur.archlinux.org/packages/ba/bash/bash.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 16:16:58 ERROR 404: Not Found. supermin: set -e umask 0000 cd '/tmp/supermindfc4ec.tmpdir/qjcjfqo9' wget 'https://aur.archlinux.org/packages/ba/bash/bash.tar.gz' tar xf 'bash.tar.gz' cd 'bash' /usr/bin/makepkg mv 'bash'-*.pkg.tar.xz '/tmp/supermindfc4ec.tmpdir/qjcjfqo9' : command failed, see earlier errors FAIL: test-binaries-exist-network.sh =================================== supermin: version: 5.1.9 supermin: package handler: arch/pacman supermin: prepare: bash coreutils supermin: packages specified on the command line: - bash-4.3.022-1.x86_64 - coreutils-8.23-1.x86_64 supermin: writing /tmp/tmp.mbYw5duHVj/d1.lww0vqn6/packages supermin: after resolving dependencies there are 29 packages: - acl-2.2.52-2.x86_64 - attr-2.4.47-1.x86_64 - bash-4.3.022-1.x86_64 - coreutils-8.23-1.x86_64 - cracklib-2.9.1-1.x86_64 - db-5.3.28-1.x86_64 - e2fsprogs-1.42.11-1.x86_64 - filesystem-2014.07-1.x86_64 - gcc-libs-4.9.1-1.x86_64 - gdbm-1.11-1.x86_64 - glibc-2.19-5.x86_64 - gmp-6.0.0-1.x86_64 - iana-etc-2.30-4.any - keyutils-1.5.9-1.x86_64 - krb5-1.12.1-2.x86_64 - libcap-2.24-1.x86_64 - libldap-2.4.39-1.x86_64 - libsasl-2.1.26-7.x86_64 - libtirpc-0.2.4-1.x86_64 - libutil-linux-2.25-3.x86_64 - linux-api-headers-3.14.1-1.x86_64 - ncurses-5.9-6.x86_64 - openssl-1.0.1.i-1.x86_64 - pam-1.1.8-5.x86_64 - pambase-20130928-1.any - perl-5.20.0-5.x86_64 - readline-6.3.006-1.x86_64 - tzdata-2014e-1.any - zlib-1.2.8-3.x86_64 :: 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 16:16:58-- https://aur.archlinux.org/packages/ba/bash/bash.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 16:16:58 ERROR 404: Not Found. supermin: set -e umask 0000 cd '/tmp/supermin7477f3.tmpdir/kyeksuwk' wget 'https://aur.archlinux.org/packages/ba/bash/bash.tar.gz' tar xf 'bash.tar.gz' cd 'bash' /usr/bin/makepkg mv 'bash'-*.pkg.tar.xz '/tmp/supermin7477f3.tmpdir/kyeksuwk' : command failed, see earlier errors FAIL: test-harder-network.sh =========================== supermin: version: 5.1.9 supermin: package handler: arch/pacman supermin: prepare: hivex supermin: packages specified on the command line: - hivex-1.3.10-1.x86_64 supermin: writing /tmp/tmp.wP3vFnooLi/d1.1u2j2miq/packages supermin: after resolving dependencies there are 25 packages: - bash-4.3.022-1.x86_64 - bzip2-1.0.6-5.x86_64 - db-5.3.28-1.x86_64 - expat-2.1.0-3.x86_64 - filesystem-2014.07-1.x86_64 - gcc-libs-4.9.1-1.x86_64 - gdbm-1.11-1.x86_64 - glibc-2.19-5.x86_64 - gmp-6.0.0-1.x86_64 - hivex-1.3.10-1.x86_64 - iana-etc-2.30-4.any - libffi-3.1-2.x86_64 - libxml2-2.9.1-5.x86_64 - libyaml-0.1.6-1.x86_64 - linux-api-headers-3.14.1-1.x86_64 - ncurses-5.9-6.x86_64 - openssl-1.0.1.i-1.x86_64 - perl-5.20.0-5.x86_64 - python2-2.7.8-1.x86_64 - readline-6.3.006-1.x86_64 - ruby-2.1.2-1.x86_64 - sqlite-3.8.5-1.x86_64 - tzdata-2014e-1.any - xz-5.0.5-2.x86_64 - zlib-1.2.8-3.x86_64 :: 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 16:16:59-- https://aur.archlinux.org/packages/ba/bash/bash.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 16:16:59 ERROR 404: Not Found. supermin: set -e umask 0000 cd '/tmp/superminc3dcbf.tmpdir/sn65p9ow' wget 'https://aur.archlinux.org/packages/ba/bash/bash.tar.gz' tar xf 'bash.tar.gz' cd 'bash' /usr/bin/makepkg mv 'bash'-*.pkg.tar.xz '/tmp/superminc3dcbf.tmpdir/sn65p9ow' : command failed, see earlier errors