Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 448264 - app-emulation/qemu-guest-agent should depend on dev-lang/python-2*
Summary: app-emulation/qemu-guest-agent should depend on dev-lang/python-2*
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo QEMU Project
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-12-23 10:20 UTC by David Weber
Modified: 2013-02-10 21:48 UTC (History)
0 users

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 David Weber 2012-12-23 10:20:30 UTC
Compiling app-emulation/qemu-guest-agent with python 3 aborts in ./configure

Reproducible: Always

Steps to Reproduce:
1. Set active python version to 3 (eselect python set <Version 3>)
2. emerge -av app-emulation/qemu-guest-agent
Actual Results:  
>>> Emerging (1 of 1) app-emulation/qemu-guest-agent-1.2.0                                                                                                                                                                                                                     
 * qemu-1.2.0.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                                                                                                                              [ ok ] 
>>> Unpacking source...                                                                                                                                                                                                                                                        
>>> Unpacking qemu-1.2.0.tar.bz2 to /var/tmp/portage/app-emulation/qemu-guest-agent-1.2.0/work                                                                                                                                                                                 
>>> Source unpacked in /var/tmp/portage/app-emulation/qemu-guest-agent-1.2.0/work                                                                                                                                                                                              
>>> Preparing source in /var/tmp/portage/app-emulation/qemu-guest-agent-1.2.0/work/qemu-1.2.0 ...                                                                                                                                                                              
>>> Source prepared.                                                                                                                                                                                                                                                           
>>> Configuring source in /var/tmp/portage/app-emulation/qemu-guest-agent-1.2.0/work/qemu-1.2.0 ...                                                                                                                                                                            
Cannot use 'python', Python 2.4 or later is required.                                                                                                                                                                                                                          
Note that Python 3 or later is not yet supported.                                                                                                                                                                                                                              
Use --python=/path/to/python to specify a supported Python.                                                                                                                                                                                                                    
>>> Source configured.                                                                                                                                                                                                                                                         
>>> Compiling source in /var/tmp/portage/app-emulation/qemu-guest-agent-1.2.0/work/qemu-1.2.0 ...                                                                                                                                                                              
make -j4 qemu-ga                                                                                                                                                                                                                                                               
make: *** No rule to make target `trace.h', needed by `Makefile'.  Stop.                                                                                                                                                                                                       
make: *** Waiting for unfinished jobs....                                                                                                                                                                                                                                      
Please call configure before running make!                                                                                                                                                                                                                                     
make: *** [config-host.mak] Error 1                                                                                                                                                                                                                                            
 * ERROR: app-emulation/qemu-guest-agent-1.2.0 failed (compile phase):                                                                                                                                                                                                         
 *   emake failed                                                                                                                                                                                                                                                              
 *                                                                                                                                                                                                                                                                             
 * If you need support, post the output of `emerge --info '=app-emulation/qemu-guest-agent-1.2.0'`,                                                                                                                                                                            
 * the complete build log and the output of `emerge -pqv '=app-emulation/qemu-guest-agent-1.2.0'`.                                                                                                                                                                             
 * The complete build log is located at '/var/tmp/portage/app-emulation/qemu-guest-agent-1.2.0/temp/build.log'.                                                                                                                                                                
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/qemu-guest-agent-1.2.0/temp/environment'.                                                                                                                                                         
 * Working directory: '/var/tmp/portage/app-emulation/qemu-guest-agent-1.2.0/work/qemu-1.2.0'                                                                                                                                                                                  
 * S: '/var/tmp/portage/app-emulation/qemu-guest-agent-1.2.0/work/qemu-1.2.0'                                                                                                                                                                                                  

>>> Failed to emerge app-emulation/qemu-guest-agent-1.2.0, Log file:


Expected Results:  
successful merge

Follwing patch should fix this. I have virtually no experience with ebuilds, so please double check :)

--- qemu-guest-agent-1.2.0.ebuild.orig  2012-12-23 10:53:26.253000000 +0100
+++ qemu-guest-agent-1.2.0.ebuild       2012-12-23 11:11:41.292000000 +0100
@@ -4,7 +4,7 @@
 
 EAPI=4
 
-inherit systemd udev
+inherit systemd udev python
 
 MY_PN="qemu"
 MY_P="${MY_PN}-${PV}"
@@ -29,9 +29,15 @@
 DEPEND=">=dev-libs/glib-2.22"
 RDEPEND="${DEPEND}
        !<app-emulation/qemu-1.1.1-r1"
+PYTHON_DEPEND="2:2.4"
+
 
 S="${WORKDIR}/${MY_P}"
 
+pkg_setup() {
+       python_set_active_version 2
+}
+
 src_configure() {
        ./configure
 }
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-12-25 16:20:28 UTC
 $ ./configure --help | grep python
  --python=PYTHON          use specified python [python]
Comment 2 Doug Goldstein (RETIRED) gentoo-dev 2013-02-10 21:48:25 UTC
Fixed in tree. Thanks.