[MacPorts] #27367: MyPaint @0.9.0, Revision 2: build failure if MacPorts was installed with custom $PREFIX
#27367: MyPaint @0.9.0, Revision 2: build failure if MacPorts was installed with custom $PREFIX ------------------------------------------+--------------------------------- Reporter: suv-sf@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: mypaint ------------------------------------------+--------------------------------- The 'SConstruct' file of MyPaint has '{{{/opt/local}}}' hardcoded as default and appears to ignore a custom $PREFIX of MacPorts: {{{ if sys.platform == "darwin": default_prefix = '/opt/local/' else: default_prefix = '/usr/local/' }}} If MacPorts was configured with custom $PREFIX and to be used as normal user, build fails with {{{ OSError: [Errno 13] Permission denied: '/opt' File "/Volumes/green/mp-inkscape/with-a-long-long-long-directory- name/var/macports/build/_Volumes_green_mp-inkscape_with-a-long-long-long- directory- name_var_macports_sources_rsync.macports.org_release_ports_graphics_MyPaint/work/mypaint-0.9.0/SConstruct", line 29: env = Environment(ENV=os.environ, options=opts) File "/Volumes/green/mp-inkscape/with-a-long-long-long-directory- name/Library/Frameworks/Python.framework/Versions/2.6/lib/scons-2.0.1/SCons/Environment.py", line 974: variables.Update(self) File "/Volumes/green/mp-inkscape/with-a-long-long-long-directory- name/Library/Frameworks/Python.framework/Versions/2.6/lib/scons-2.0.1/SCons/Variables/__init__.py", line 216: option.validator(option.key, env.subst('${%s}'%option.key), env) File "/Volumes/green/mp-inkscape/with-a-long-long-long-directory- name/Library/Frameworks/Python.framework/Versions/2.6/lib/scons-2.0.1/SCons/Variables/PathVariable.py", line 102: os.makedirs(val) File "/Volumes/green/mp-inkscape/with-a-long-long-long-directory- name/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/os.py", line 150: makedirs(head, mode) File "/Volumes/green/mp-inkscape/with-a-long-long-long-directory- name/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/os.py", line 157: mkdir(name, mode) }}} Tested workaround: '{{{port build mypaint}}}' succeeds after replacing '{{{/opt/local}}}' in SConstruct with the expanded path of $PREFIX (and mypaint installs, activates and runs without further issues). Mac OS X 10.5.8, MacPorts 1.9.2 (custom source installation) [[BR]] scons @2.0.1, python26 selected -- Ticket URL: <https://trac.macports.org/ticket/27367> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27367: MyPaint @0.9.0, Revision 2: build failure if MacPorts was installed with custom $PREFIX ------------------------------------------+--------------------------------- Reporter: suv-sf@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: MyPaint ------------------------------------------+--------------------------------- Changes (by jmr@…): * owner: macports-tickets@… => ryandesign@… * cc: ryandesign@… (removed) * port: mypaint => MyPaint -- Ticket URL: <https://trac.macports.org/ticket/27367#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27367: MyPaint @0.9.0, Revision 2: build failure if MacPorts was installed with custom $PREFIX ------------------------------------------+--------------------------------- Reporter: suv-sf@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: MyPaint ------------------------------------------+--------------------------------- Comment(by suv-sf@…): Attaching main.log (I thought I'd lost it when 'port install' succeeded, but it was still open in MacVim :) ) -- Ticket URL: <https://trac.macports.org/ticket/27367#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27367: MyPaint @0.9.0, Revision 2: build failure if MacPorts was installed with custom $PREFIX ------------------------------------------+--------------------------------- Reporter: suv-sf@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: MyPaint ------------------------------------------+--------------------------------- Changes (by ryandesign@…): * status: new => assigned Comment: MyPaint begins to annoy me. -- Ticket URL: <https://trac.macports.org/ticket/27367#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27367: MyPaint @0.9.0, Revision 2: build failure if MacPorts was installed with custom $PREFIX -------------------------------------------+-------------------------------- Reporter: suv-sf@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: fixed | Keywords: Port: MyPaint | -------------------------------------------+-------------------------------- Changes (by ryandesign@…): * status: assigned => closed * resolution: => fixed Comment: Fixed in r73693. -- Ticket URL: <https://trac.macports.org/ticket/27367#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts