[MacPorts] #27367: MyPaint @0.9.0, Revision 2: build failure if MacPorts was installed with custom $PREFIX

MacPorts noreply at macports.org
Wed Nov 17 20:40:47 PST 2010


#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


More information about the macports-tickets mailing list