Created attachment 328640 [details] build.log from patchage-0.5.0::gentoo media-sound/patchage (latest = 0.5.0) fails to build with python-3 set as active version due to the waf build system used. build.log is attached.
Created attachment 328642 [details, diff] Diff for patchage-0.5.0.ebuild to fix the issue
Editing shebang in ./waf to say "#!/usr/bin/env python2" also fixes problem: Waf: The wscript in '/var/tmp/portage/media-sound/patchage-0.5.0/work/patchage-0.5.0' is unreadable Traceback (most recent call last): File "/var/tmp/portage/media-sound/patchage-0.5.0/work/patchage-0.5.0/.waf3-1.6.2-8f0e1cbe4385d86a084509ec04c2e226/waflib/Scripting.py", line 82, in waf_entry_point set_main_module(Context.run_dir+os.sep+Context.WSCRIPT_FILE) File "/var/tmp/portage/media-sound/patchage-0.5.0/work/patchage-0.5.0/.waf3-1.6.2-8f0e1cbe4385d86a084509ec04c2e226/waflib/Scripting.py", line 106, in set_main_module Context.g_module=Context.load_module(file_path) File "/var/tmp/portage/media-sound/patchage-0.5.0/work/patchage-0.5.0/.waf3-1.6.2-8f0e1cbe4385d86a084509ec04c2e226/waflib/extras/compat15.py", line 88, in load_module ret=rev(path) File "/var/tmp/portage/media-sound/patchage-0.5.0/work/patchage-0.5.0/.waf3-1.6.2-8f0e1cbe4385d86a084509ec04c2e226/waflib/Context.py", line 262, in load_module exec(compile(code,path,'exec'),module.__dict__) File "/var/tmp/portage/media-sound/patchage-0.5.0/work/patchage-0.5.0/wscript", line 160 chmod = 0644, ^ SyntaxError: invalid token * ERROR: media-sound/patchage-0.5.0 failed (configure phase): * (no error message) * * Call stack: * ebuild.sh, line 93: Called src_configure * environment, line 679: Called die * The specific snippet of code: * ./waf configure --prefix=/usr $(use debug && echo "--debug") $(use alsa || echo "--no-alsa") $(use lash || echo "--no-lash") || die * * If you need support, post the output of `emerge --info '=media-sound/patchage-0.5.0'`, * the complete build log and the output of `emerge -pqv '=media-sound/patchage-0.5.0'`. * The complete build log is located at '/var/tmp/portage/media-sound/patchage-0.5.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/media-sound/patchage-0.5.0/temp/environment'. * Working directory: '/var/tmp/portage/media-sound/patchage-0.5.0/work/patchage-0.5.0' * S: '/var/tmp/portage/media-sound/patchage-0.5.0/work/patchage-0.5.0' shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory >>> Failed to emerge media-sound/patchage-0.5.0, Log file: >>> '/var/tmp/portage/media-sound/patchage-0.5.0/temp/build.log' * Messages for package media-sound/patchage-0.5.0: * ERROR: media-sound/patchage-0.5.0 failed (configure phase): * (no error message) * * Call stack: * ebuild.sh, line 93: Called src_configure * environment, line 679: Called die * The specific snippet of code: * ./waf configure --prefix=/usr $(use debug && echo "--debug") $(use alsa || echo "--no-alsa") $(use lash || echo "--no-lash") || die * * If you need support, post the output of `emerge --info '=media-sound/patchage-0.5.0'`, * the complete build log and the output of `emerge -pqv '=media-sound/patchage-0.5.0'`. * The complete build log is located at '/var/tmp/portage/media-sound/patchage-0.5.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/media-sound/patchage-0.5.0/temp/environment'. * Working directory: '/var/tmp/portage/media-sound/patchage-0.5.0/work/patchage-0.5.0' * S: '/var/tmp/portage/media-sound/patchage-0.5.0/work/patchage-0.5.0' * * The following package has failed to build or install: * * (media-sound/patchage-0.5.0::gentoo, ebuild scheduled for merge), Log file: * '/var/tmp/portage/media-sound/patchage-0.5.0/temp/build.log' * emerge --resume 6.91s user 0.55s system 97% cpu 7.638 total 1 [i686 pts/6] asteria /var/tmp/portage/media-sound/patchage-0.5.0/work/patchage-0.5.0 [21:57 832]# cd . [i686 pts/6] asteria /var/tmp/portage/media-sound/patchage-0.5.0/work/patchage-0.5.0 [21:57 834]# vim waf #!/usr/bin/env python2 # encoding: ISO8859-1 # Thomas Nagy, 2005-2010 """ Redistribution and use in source and binary forms, with or without ... "waf" [converted] 165L, 121306C written [i686 pts/6] asteria /var/tmp/portage/media-sound/patchage-0.5.0/work/patchage-0.5.0 [21:57 835]# FEATURES="keepwork" emerge --resume * WARNING: The FEATURES variable contains one or more values that * should be disabled under normal circumstances: keepwork These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N ] media-sound/patchage-0.5.0 USE="alsa -debug -lash" 0 kB Total: 1 package (1 new), Size of downloads: 0 kB *** Resuming merge... >>> Verifying ebuild manifests >>> Emerging (1 of 1) media-sound/patchage-0.5.0 * patchage-0.5.0.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ] >>> It appears that 'patchage-0.5.0' is already setup; skipping. >>> Remove '/var/tmp/portage/media-sound/patchage-0.5.0/.setuped' to force setup. >>> WORKDIR is up-to-date, keeping... >>> It appears that 'patchage-0.5.0' is already prepared; skipping. >>> Remove '/var/tmp/portage/media-sound/patchage-0.5.0/.prepared' to force prepare. >>> Configuring source in /var/tmp/portage/media-sound/patchage-0.5.0/work/patchage-0.5.0 ... Setting top to : /var/tmp/portage/media-sound/patchage-0.5.0/work/patchage-0.5.0 Setting out to : /var/tmp/portage/media-sound/patchage-0.5.0/work/patchage-0.5.0/build Global Configuration Checking for 'gcc' (c compiler) : ok Checking for 'g++' (c++ compiler) : ok * Install prefix : /usr * Debuggable build : False * Strict compiler flags : False * Build documentation : False Patchage Configuration Checking for program pkg-config : /usr/bin/pkg-config Checking for 'dbus-1' : yes Checking for 'dbus-glib-1' : yes Checking for 'libgnomecanvasmm-2.6' : yes Checking for 'gthread-2.0' >= 2.14.0 : yes Checking for 'glibmm-2.4' >= 2.14.0 : yes Checking for 'gtkmm-2.4' >= 2.11.12 : yes Checking for 'libglademm-2.4' >= 2.6.0 : yes Checking for 'flowcanvas' >= 0.7.1 : yes Checking for 'raul' >= 0.5.1 : yes Checking for function dladdr : yes Checking for 'jack' >= 0.107.0 : yes Checking for 'alsa' : yes Checking for header boost/shared_ptr.hpp : yes Checking for header boost/weak_ptr.hpp : yes * Install name : 'patchage' * App human name : 'Patchage' * Jack (D-Bus) : False * LASH (D-Bus) : False * Jack (libjack) : True * Alsa Sequencer : True 'configure' finished successfully (7.084s) >>> Source configured. ...
Just wanted to note that this is still outstanding. I had to "eselect python set 1" to get through configure.
Fixed in 0.5.0-r1.