[MacPorts] #47189: submission: audacity
MacPorts
noreply at macports.org
Thu Feb 25 07:08:48 PST 2016
#47189: submission: audacity
--------------------------+--------------------------------
Reporter: rjvbertin@… | Owner: macports-tickets@…
Type: submission | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: audacity |
--------------------------+--------------------------------
Comment (by mojca@…):
The installation fails for me because I used "`port select python
python3.5`":
{{{
Traceback (most recent call last):
File "waf", line 162, in <module>
from waflib import Scripting
File "/path/to/audacity/work/Audacity-2.1.2/lib-
src/lv2/lv2/waflib/Scripting.py", line 88
except Errors.WafError ,e:
^
SyntaxError: invalid syntax
configure: error: ./configure failed for lib-src/lv2
}}}
You need some more aggressive patching of python scripts and note that the
following doesn't work:
{{{
#!diff
--- a/lib-src/lv2/lv2/waf
+++ b/lib-src/lv2/lv2/waf
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/opt/local/bin/python2.7
# encoding: ISO8859-1
# Thomas Nagy, 2005-2012
}}}
You should use `${prefix}` rather than hardcoding "`/opt/local`". You
should remove `patch-waf-use-python27.diff` and use something like the
following inside `post-patch`:
{{{
# or ${prefix}/bin/python2.7
set python_bin
${frameworks_dir}/Python.framework/Versions/2.7/bin/python2.7
# Ensure usage of python27
# (insteaf of the currently active python)
fs-traverse f ${worksrcpath} {
if {[string match "*.py" "$f"]} {
reinplace "s|/usr/bin/env python|${python_bin}|" $f
}
}
}}}
The next problem lies in `lib-src/lv2/configure` and `lib-src/lv2/build`:
{{{
$(which python python2 | tail -1) waf --prefix="." --include="." $@
configure || exit 1
}}}
and potentially elsewhere as well. You should report at least that last
problem upstream. They should respect something like "`export
PYTHON=/weird/path/to/python`" or "`./configure ...
PYTHON=/weird/path/to/python`"
--
Ticket URL: <https://trac.macports.org/ticket/47189#comment:40>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list