Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 439374 - app-emulation/qemu-1.2.0 ebuild "directory doesn't exist"
Summary: app-emulation/qemu-1.2.0 ebuild "directory doesn't exist"
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Doug Goldstein (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
: 439466 439612 439758 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-10-23 09:35 UTC by ViliusSutkus89
Modified: 2012-10-26 16:24 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ViliusSutkus89 2012-10-23 09:35:16 UTC
Hi. Trying to rebuild qemu and a failure dawned upon me

ERROR: app-emulation/qemu-1.2.0 failed (prepare phase):
  The source directory '/var/tmp/portage/app-emulation/qemu-1.2.0/work/qemu-1.2.0' doesn't exist

ls /var/tmp/portage/app-emulation/qemu-1.2.0/work
  qemu-kvm-1.2.0


Seems like ebuild is looking for a different folder than the src is supplying.


By the way, how do I get qemu to build with kvm support? n-changes to the ebuild ago it was enough to just do kvm use flag. Now it seems that ebuild is ignoring my use flag and kvm always stays disabled.


Thank you.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-10-23 12:05:00 UTC
$ ebuild qemu-1.2.0.ebuild prepare
Appending /newaches/gentoo/cvs/gentoo-x86 to PORTDIR_OVERLAY...  
>>> Downloading 'http://softlayer.dl.sourceforge.net/kvm/qemu-kvm/qemu-kvm-1.2.0.tar.gz'
--2012-10-23 13:59:51--  http://softlayer.dl.sourceforge.net/kvm/qemu-kvm/qemu-kvm-1.2.0.tar.gz
Resolving softlayer.dl.sourceforge.net (softlayer.dl.sourceforge.net)... 67.228.157.232
Connecting to softlayer.dl.sourceforge.net (softlayer.dl.sourceforge.net)|67.228.157.232|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily    
Location: http://downloads.sourceforge.net/kvm/qemu-kvm/qemu-kvm-1.2.0.tar.gz?download&failedmirror=softlayer-dal.dl.sourceforge.net
 [following]                                                     
--2012-10-23 13:59:51--  http://downloads.sourceforge.net/kvm/qemu-kvm/qemu-kvm-1.2.0.tar.gz?download&failedmirror=softlayer-dal.dl.
sourceforge.net                                                  
Resolving downloads.sourceforge.net (downloads.sourceforge.net)... 216.34.181.59
Connecting to downloads.sourceforge.net (downloads.sourceforge.net)|216.34.181.59|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently    
Location: http://downloads.sourceforge.net/project/kvm/qemu-kvm/1.2.0/qemu-kvm-1.2.0.tar.gz?download=&failedmirror=softlayer-dal.dl.
sourceforge.net [following]                                      
--2012-10-23 13:59:52--  http://downloads.sourceforge.net/project/kvm/qemu-kvm/1.2.0/qemu-kvm-1.2.0.tar.gz?download=&failedmirror=softlayer-dal.dl.sourceforge.net
Reusing existing connection to downloads.sourceforge.net:80.
HTTP request sent, awaiting response... 302 Found
Location: http://switch.dl.sourceforge.net/project/kvm/qemu-kvm/1.2.0/qemu-kvm-1.2.0.tar.gz [following]
--2012-10-23 13:59:52--  http://switch.dl.sourceforge.net/project/kvm/qemu-kvm/1.2.0/qemu-kvm-1.2.0.tar.gz
Resolving switch.dl.sourceforge.net (switch.dl.sourceforge.net)... 130.59.138.21, 2001:620:0:1b::21
Connecting to switch.dl.sourceforge.net (switch.dl.sourceforge.net)|130.59.138.21|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6839420 (6.5M) [application/x-gzip]
Saving to: ‘/world/distfiles/qemu-kvm-1.2.0.tar.gz’

100%[==========================================================================================>] 6,839,420   4.81MB/s   in 1.4s

2012-10-23 13:59:53 (4.81 MB/s) - ‘/world/distfiles/qemu-kvm-1.2.0.tar.gz’ saved [6839420/6839420]

 * qemu-kvm-1.2.0.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                [ ok ]
 * checking ebuild checksums ;-) ...                                                                                         [ ok ]
 * checking auxfile checksums ;-) ...                                                                                        [ ok ]
 * checking miscfile checksums ;-) ...                                                                                       [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     3.5.7-gentoo-JeR
 * Checking for suitable kernel configuration options...
 *   You will also need support for 802.1d Ethernet Bridging for some network configurations.
 *   If you have an Intel CPU, you must enable KVM_INTEL in your kernel configuration.
 * Please check to make sure these options are set correctly.
 * Failure to do so may cause unexpected problems.
>>> Unpacking source...
>>> Unpacking qemu-kvm-1.2.0.tar.gz to /home/jer/portage/app-emulation/qemu-1.2.0/work
>>> Source unpacked in /home/jer/portage/app-emulation/qemu-1.2.0/work
 * ERROR: app-emulation/qemu-1.2.0 failed (prepare phase):
 *   The source directory '/home/jer/portage/app-emulation/qemu-1.2.0/work/qemu-1.2.0' doesn't exist
 *
 * Call stack:
 *            ebuild.sh, line 718:  Called __ebuild_main 'prepare'
 *   phase-functions.sh, line 936:  Called __dyn_prepare
 *   phase-functions.sh, line 366:  Called die
 * The specific snippet of code:
 *              die "The source directory '${S}' doesn't exist"
 *
 * If you need support, post the output of `emerge --info '=app-emulation/qemu-1.2.0'`,
 * the complete build log and the output of `emerge -pqv '=app-emulation/qemu-1.2.0'`.
 * The complete build log is located at '/keeps/gentoo/emergelogs/wieneke/app-emulation:qemu-1.2.0:20121023-115950.log'.
 * For convenience, a symlink to the build log is located at '/home/jer/portage/app-emulation/qemu-1.2.0/temp/build.log'.
 * The ebuild environment file is located at '/home/jer/portage/app-emulation/qemu-1.2.0/temp/environment'.
 * Working directory: '/home/jer/portage/app-emulation/qemu-1.2.0'
 * S: '/home/jer/portage/app-emulation/qemu-1.2.0/work/qemu-1.2.0'


--- qemu-1.2.0.ebuild   20 Oct 2012 16:27:36 -0000      1.2
+++ qemu-1.2.0.ebuild   23 Oct 2012 12:03:47 -0000
@@ -139,6 +139,8 @@
        usr/bin/qemu-armeb
        usr/bin/qemu-sparc32plus"
 
+S=${WORKDIR}/${MY_P}
+
 pkg_pretend() {
        if use kernel_linux && kernel_is lt 2 6 25; then
                eerror "This version of KVM requres a host kernel of 2.6.25 or higher."


After fixing that:

$ ebuild qemu-1.2.0.ebuild manifest clean prepare
Appending /newaches/gentoo/cvs/gentoo-x86 to PORTDIR_OVERLAY...
>>> Creating Manifest for /newaches/gentoo/cvs/gentoo-x86/app-emulation/qemu
 * qemu-kvm-1.2.0.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                [ ok ]
 * checking ebuild checksums ;-) ...                                                                                         [ ok ]
 * checking auxfile checksums ;-) ...                                                                                        [ ok ]
 * checking miscfile checksums ;-) ...                                                                                       [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     3.5.7-gentoo-JeR
 * Checking for suitable kernel configuration options...
 *   You will also need support for 802.1d Ethernet Bridging for some network configurations.
 *   If you have an Intel CPU, you must enable KVM_INTEL in your kernel configuration.
 * Please check to make sure these options are set correctly.
 * Failure to do so may cause unexpected problems.
>>> Unpacking source...
>>> Unpacking qemu-kvm-1.2.0.tar.gz to /home/jer/portage/app-emulation/qemu-1.2.0/work
>>> Source unpacked in /home/jer/portage/app-emulation/qemu-1.2.0/work
>>> Preparing source in /home/jer/portage/app-emulation/qemu-1.2.0/work/qemu-kvm-1.2.0 ...
 * Converting shebang in '/home/jer/portage/app-emulation/qemu-1.2.0/work/qemu-kvm-1.2.0/scripts/kvm/kvm_stat'

 * Cannot find $EPATCH_SOURCE!  Value for $EPATCH_SOURCE is:
 *
 *   /newaches/gentoo/cvs/gentoo-x86/app-emulation/qemu/files/qemu-1.2.0-fix-mipsen.patch
 *   ( qemu-1.2.0-fix-mipsen.patch )
 
 * ERROR: app-emulation/qemu-1.2.0 failed (prepare phase):
 *   Cannot find $EPATCH_SOURCE!
 *
 * Call stack:
 *     ebuild.sh, line   93:  Called src_prepare
 *   environment, line 5969:  Called epatch '/newaches/gentoo/cvs/gentoo-x86/app-emulation/qemu/files/qemu-1.2.0-fix-mipsen.patch'
 *   environment, line 1954:  Called die
 * The specific snippet of code:
 *                   die "Cannot find \$EPATCH_SOURCE!";
 *
 * If you need support, post the output of `emerge --info '=app-emulation/qemu-1.2.0'`,
 * the complete build log and the output of `emerge -pqv '=app-emulation/qemu-1.2.0'`.
 * The complete build log is located at '/keeps/gentoo/emergelogs/wieneke/app-emulation:qemu-1.2.0:20121023-120150.log'.
 * For convenience, a symlink to the build log is located at '/home/jer/portage/app-emulation/qemu-1.2.0/temp/build.log'.
 * The ebuild environment file is located at '/home/jer/portage/app-emulation/qemu-1.2.0/temp/environment'.
 * Working directory: '/home/jer/portage/app-emulation/qemu-1.2.0/work/qemu-kvm-1.2.0'
 * S: '/home/jer/portage/app-emulation/qemu-1.2.0/work/qemu-kvm-1.2.0'
Comment 2 Doug Goldstein (RETIRED) gentoo-dev 2012-10-23 15:47:14 UTC
Don't use qemu 1.2.0 in the tree. Its not keyworded or ready to be used.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2012-10-24 15:48:17 UTC
*** Bug 439466 has been marked as a duplicate of this bug. ***
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2012-10-25 16:02:30 UTC
*** Bug 439612 has been marked as a duplicate of this bug. ***
Comment 5 404 Error 2012-10-25 16:40:11 UTC
FYI and also mentioned in bug #439612, it uses qemu-kvm not the genuine Qemu.
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2012-10-26 16:24:51 UTC
*** Bug 439758 has been marked as a duplicate of this bug. ***