[MacPorts] #45133: scons @2.3.3: Port tries to install outside of prefix

MacPorts noreply at macports.org
Tue Sep 23 09:06:44 PDT 2014


#45133: scons @2.3.3: Port tries to install outside of prefix
-----------------------+--------------------------------
  Reporter:  djvasi@…  |      Owner:  macports-tickets@…
      Type:  defect    |     Status:  new
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.3.1
Resolution:            |   Keywords:
      Port:            |
-----------------------+--------------------------------

Comment (by djvasi@…):

 It looks like the problem relates to this part of setup.py:


 {{{
 def force_to_usr_local(self):
     """
     A hack to decide if we need to "force" the installation directories
     to be under /usr/local.  This is because Mac Os X Tiger and
     Leopard, by default, put the libraries and scripts in their own
     directories under /Library or /System/Library.
     """
     return (sys.platform[:6] == 'darwin' and
             (self.install_dir[:9] == '/Library/' or
              self.install_dir[:16] == '/System/Library/'))
 }}}

 It assumes that since my prefix is in /Library, it must be a problem. But
 there's no particular reason I shouldn't be able to put my MacPorts prefix
 there!

-- 
Ticket URL: <https://trac.macports.org/ticket/45133#comment:1>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list