[MacPorts] #36193: File permissions of port py27-http2 appear incorrect

MacPorts noreply at macports.org
Mon Sep 17 15:46:08 PDT 2012


#36193: File permissions of port py27-http2 appear incorrect
--------------------------+--------------------------------
 Reporter:  nick.fabry@…  |      Owner:  macports-tickets@…
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.1.2
 Keywords:                |       Port:  py27-http2
--------------------------+--------------------------------
 A port (py27-errorhandler) that depended on py27-http2 failed to install.
 Looking up the failure log, the following line indicated a problem with
 the py27-http2 port:

 {{{
 :info:build IOError: [Errno 13] Permission denied:
 '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/httplib2-0.7.6-py2.7.egg-info/top_level.txt'
 }}}


 it appeared that several files that form the py27-http2 port had perms of
 640, rather than the typical 644, meaning that a non-root process couldn't
 read the files.

 {{{
 fabry at Tomokato:/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/httplib2-0.7.6-py2.7.egg-info
 [4997] $ ls -lah
 total 32
 drwxr-xr-x    6 root  wheel   204B Sep 17 18:15 .
 drwxr-xr-x  100 root  wheel   3.3K Sep 17 18:15 ..
 -rw-r-----    1 root  wheel   2.3K Sep 17 18:15 PKG-INFO
 -rw-r-----    1 root  wheel   787B Sep 17 18:15 SOURCES.txt
 -rw-r-----    1 root  wheel     1B Sep 17 18:15 dependency_links.txt
 -rw-r-----    1 root  wheel     9B Sep 17 18:15 top_level.txt
 }}}

 I think these permissions are set upon port installation, hence I think
 this is a problem with the port.

 I tried force uninstalling, cleaning, and reinstalling py27-http2 &
 py27-errorhandler, with the same results. A sudo chmod 644 to the
 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/httplib2-0.7.6-py2.7.egg-info directory fixed the problems
 (i.e. sudo port install py27-errorhandler successfully completed).

 This problem occurred on OS X 10.8.1, using Xcode 4.4.1 (4F1003), Macports
 2.1.2, py27-httplib2 @2-0.7.6_0.

 Thanks for contributing to Macports!

-- 
Ticket URL: <https://trac.macports.org/ticket/36193>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list