[MacPorts] #51547: xorg-xcb-proto fails to install, bad python version check

MacPorts noreply at macports.org
Mon Jun 6 09:34:15 PDT 2016


#51547: xorg-xcb-proto fails to install, bad python version check
-------------------------------------+------------------------
  Reporter:  artist.impressionist@…  |      Owner:  jeremyhu@…
      Type:  defect                  |     Status:  closed
  Priority:  Normal                  |  Milestone:
 Component:  ports                   |    Version:  2.3.4
Resolution:  invalid                 |   Keywords:
      Port:  xorg-xcb-proto          |
-------------------------------------+------------------------

Comment (by jeremyhu@…):

 This has nothing to do with Homebrew.

 As stated in the log, you have restricted permissions:

 {{{
 74      configure:2423: /opt/local/bin/python2.7 -c import sys # split
 strings by '.' and convert to numeric. Append some zeros # because we need
 at least 4 digits for the hex conversion. # map returns an iterator in
 Python 3.0 and a list in 2.x minver = list(map(int, '2.5'.split('.'))) +
 [0, 0, 0] minverhex = 0 # xrange is not present in Python 3.0 and range
 returns an iterator for i in list(range(0, 4)): minverhex = (minverhex <<
 8) + minver[i] sys.exit(sys.hexversion < minverhex)
 75      ./configure: line 2424: /opt/local/bin/python2.7: Permission
 denied
 }}}

 Look at the permissions of all those relevant files to see why you're
 getting EPERM.  Eg:

 {{{
 $ ls -ld /opt /opt/local /opt/local/bin /opt/local/bin/python2.7
 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
 drwxr-xr-x    5 root wheel   170 Jan 24 00:58 /opt
 drwxr-xr-x   13 root admin   442 Apr 11 02:56 /opt/local
 -rwxr-xr-x    1 root wheel 33728 Apr 11 02:42
 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
 drwxr-xr-x 2695 root admin 91630 Jun  3 02:09 /opt/local/bin
 lrwxr-xr-x    1 root admin    73 Apr 11 02:42 /opt/local/bin/python2.7 ->
 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
 }}}

 By "sudo is not being passed down to the spawned or forked processes" do
 you mean that root permissions are not being used to build?  Yes, that is
 correct and intentional.  Projects are built as the macports role account
 user and then installed as root.

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


More information about the macports-tickets mailing list