[97949] trunk/dports/python/py-httplib2/Portfile
blair at macports.org
blair at macports.org
Thu Sep 20 11:10:57 PDT 2012
Revision: 97949
http://trac.macports.org//changeset/97949
Author: blair at macports.org
Date: 2012-09-20 11:10:56 -0700 (Thu, 20 Sep 2012)
Log Message:
-----------
py-httplib2: extracted files do not have proper 'group' and 'other' perms.
Causes build failures in other ports, e.g.:
---> Building py26-nose
Traceback (most recent call last):
File "setup.py", line 25, in <module>
from setup3lib import setup
File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-nose/py26-nose/work/nose-1.2.1/setup3lib.py", line 2, in <module>
from setuptools import setup as _setup
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/setuptools/__init__.py", line 2, in <module>
from setuptools.extension import Extension, Library
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/setuptools/extension.py", line 5, in <module>
from setuptools.dist import _get_unpatched
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/setuptools/dist.py", line 6, in <module>
from setuptools.command.install import install
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/setuptools/command/__init__.py", line 8, in <module>
from setuptools.command import install_scripts
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/setuptools/command/install_scripts.py", line 3, in <module>
from pkg_resources import Distribution, PathMetadata, ensure_directory
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pkg_resources.py", line 2835, in <module>
add_activation_listener(lambda dist: dist.activate())
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pkg_resources.py", line 704, in subscribe
callback(dist)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pkg_resources.py", line 2835, in <lambda>
add_activation_listener(lambda dist: dist.activate())
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pkg_resources.py", line 2259, in activate
self.insert_on(path)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pkg_resources.py", line 2366, in insert_on
self.check_version_conflict()
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pkg_resources.py", line 2405, in check_version_conflict
for modname in self._get_metadata('top_level.txt'):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pkg_resources.py", line 2253, in _get_metadata
for line in self.get_metadata_lines(name):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pkg_resources.py", line 1213, in get_metadata_lines
return yield_lines(self.get_metadata(name))
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pkg_resources.py", line 1205, in get_metadata
return self._get(self._fn(self.egg_info,name))
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pkg_resources.py", line 1320, in _get
stream = open(path, 'rb')
IOError: [Errno 13] Permission denied: '/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/httplib2-0.7.6-py2.6.egg-info/top_level.txt'
Modified Paths:
--------------
trunk/dports/python/py-httplib2/Portfile
Modified: trunk/dports/python/py-httplib2/Portfile
===================================================================
--- trunk/dports/python/py-httplib2/Portfile 2012-09-20 18:01:48 UTC (rev 97948)
+++ trunk/dports/python/py-httplib2/Portfile 2012-09-20 18:10:56 UTC (rev 97949)
@@ -5,6 +5,7 @@
name py-httplib2
version 2-0.7.6
+revision 1
categories python devel net
license MIT
platforms darwin
@@ -24,6 +25,12 @@
sha256 baa7bf431fa9d3c1016562de717e1ebb322a99df72a2918f6b5b8f65fa65bc2e
if {${name} != ${subport}} {
+ # Extracted files do not have correct 'group' and 'other' permissions.
+ post-extract {
+ system "find ${worksrcpath} -type d -print0 | xargs -0 chmod a+rx"
+ system "find ${worksrcpath} -type f -print0 | xargs -0 chmod a+r"
+ }
+
livecheck.type none
} else {
livecheck.type regex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120920/6731d878/attachment.html>
More information about the macports-changes
mailing list