Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 477884

Summary: app-emulation/xen-tools-4.3.0 - mv: cannot stat '/var/tmp/portage/app-emulation/xen-tools-4.3.0/image/usr/lib/xen/bin/vscclient': No such file or directory
Product: Gentoo Linux Reporter: Another Mortal <a.m>
Component: Current packagesAssignee: Ian Delaney (RETIRED) <idella4>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Another Mortal 2013-07-23 10:18:08 UTC
Some tools don't get built (likely because 'git' is not installed
and not required as a build dependency).  BTW, wasn't the Xen way
of fetching stuff from random repositories a no-no for gentoo?
A fix for this should likely be added to the anti-download patch...

Here's the tail of build.log:

make[1]: Leaving directory `/var/tmp/portage/app-emulation/xen-tools-4.3.0/work/xen-4.3.0/tools'
mv: cannot stat '/var/tmp/portage/app-emulation/xen-tools-4.3.0/image/usr/lib/xen/bin/vscclient': No such file or directory
mv: cannot stat '/var/tmp/portage/app-emulation/xen-tools-4.3.0/image/usr/lib/xen/bin/virtfs-proxy-helper': No such file or directory
 * ERROR: app-emulation/xen-tools-4.3.0 failed (install phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  93:  Called src_install
 *   environment, line 2655:  Called die
 * The specific snippet of code:
 *           mv "${D}"usr/lib/xen/bin/{qemu*,vscclient,virtfs-proxy-helper} "${D}"usr/$(get_libdir)/xen/bin/ || die;
 * 
 * If you need support, post the output of `emerge --info '=app-emulation/xen-tools-4.3.0'`,
 * the complete build log and the output of `emerge -pqv '=app-emulation/xen-tools-4.3.0'`.
 * This ebuild is from an overlay named 'x-overlay': '/root/.port/overlay/'
 * The complete build log is located at '/var/tmp/portage/app-emulation/xen-tools-4.3.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/xen-tools-4.3.0/temp/environment'.
 * Working directory: '/var/tmp/portage/app-emulation/xen-tools-4.3.0/work/xen-4.3.0'
 * S: '/var/tmp/portage/app-emulation/xen-tools-4.3.0/work/xen-4.3.0'
 * QA Notice: command not found:
 * 
 *      ./tools/buildversion.sh: line 8: git: command not found


Reproducible: Always
Comment 1 Another Mortal 2013-07-23 10:24:17 UTC
Alright… spoke too soon.
This does *not* depend on 'git' being there or not.
The files are missing because the configure script
for qemu-xen auto-detects support for all kinds of
tools (here smartcards libcacard/vscclient and VirtFS),
and simply decides not to build stuff that isn't there.

The 'mv' statement in the ebuild makes unwarranted
assumptions about what is being built (or not, as
the case happens to be).  Wouldn't it be simpler
just to move _everything_ that gets built?  I.e.:

        if [[ "${ARCH}" == 'amd64' ]] && use qemu; then
                mkdir -p "${D}"usr/$(get_libdir)/xen/bin || die
-               mv "${D}"usr/lib/xen/bin/{qemu*,vscclient,virtfs-proxy-helper} "${D}"usr/$(get_libdir)/xen/bin/ || die
+               mv "${D}"usr/lib/xen/bin/* "${D}"usr/$(get_libdir)/xen/bin/ || die
        fi
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2013-07-23 17:19:00 UTC
Please attach the entire build log to this bug report.
Comment 3 Ian Delaney (RETIRED) gentoo-dev 2013-07-24 05:36:00 UTC
Looks ok here. Thx a.m

  24 Jul 2013; Ian Delaney <idella4@gentoo.org> xen-tools-4.3.0.ebuild:
  Correction to install with IUSE qemu, fixes Bug #477884
Comment 4 Ian Delaney (RETIRED) gentoo-dev 2013-07-31 05:06:06 UTC
from other related bugs this can go fixed