[MacPorts] #34709: Qemu (and maybe others) won't build with python 3 as default

MacPorts noreply at macports.org
Fri Jun 1 03:39:52 PDT 2012


#34709: Qemu (and maybe others) won't build with python 3 as default
------------------------------------------+---------------------------------
 Reporter:  guillaume.salagnac@…          |       Owner:  macports-tickets@…                   
     Type:  defect                        |      Status:  new                                  
 Priority:  Normal                        |   Milestone:                                       
Component:  ports                         |     Version:  2.1.1                                
 Keywords:                                |        Port:  qemu                                 
------------------------------------------+---------------------------------
 Installing qemu fails when the default selected python is python 3.1. But
 if I "port select" python 2.7 instead, then it works fine :

 {{{
 % sudo port -v install qemu
 --->  Computing dependencies for qemu.
 --->  Building qemu
 make: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_emulators_qemu/qemu/work/qemu-1.0.1'
   GEN   qapi-types.h
   GEN   qmp-commands.h
   File
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_emulators_qemu/qemu/work/qemu-1.0.1/scripts
 /qapi-types.py", line 167
     except getopt.GetoptError, err:
                              ^
 SyntaxError: invalid syntax
 make: *** [qapi-types.h] Error 1
 make: *** Waiting for unfinished jobs....
   File
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_emulators_qemu/qemu/work/qemu-1.0.1/scripts
 /qapi-commands.py", line 376
     except getopt.GetoptError, err:
                              ^
 SyntaxError: invalid syntax
 make: *** [qmp-commands.h] Error 1
 make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_emulators_qemu/qemu/work/qemu-1.0.1'
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_emulators_qemu/qemu/work/qemu-1.0.1"
 && /usr/bin/make -j2 -w all
 Exit code: 2
 Error: org.macports.build for port qemu returned: command execution failed
 Warning: targets not executed for qemu: org.macports.activate
 org.macports.build org.macports.destroot org.macports.install
 Please see the log file for port qemu for details:
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_emulators_qemu/qemu/main.log
 To report a bug, follow the instructions in the guide:
     http://guide.macports.org/#project.tickets
 Error: Processing of port qemu failed

 % type python
 python is /opt/local/bin/python ->
 /opt/local/Library/Frameworks/Python.framework/Versions/3.1/bin/python3.1
 python is /usr/bin/python

 % sudo port select python python27
 Selecting 'python27' for 'python' succeeded. 'python27' is now active.

 % sudo port install qemu
 --->  Computing dependencies for qemu
 --->  Building qemu
 --->  Staging qemu into destroot
 --->  Installing qemu @1.0.1_0+target_i386+target_x86_64
 --->  Activating qemu @1.0.1_0+target_i386+target_x86_64
 --->  Cleaning qemu
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/34709>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list