[98007] trunk/dports/python/py-logilab-common/Portfile

blair at macports.org blair at macports.org
Fri Sep 21 16:40:55 PDT 2012


Revision: 98007
          http://trac.macports.org//changeset/98007
Author:   blair at macports.org
Date:     2012-09-21 16:40:55 -0700 (Fri, 21 Sep 2012)
Log Message:
-----------
py-logilab-common: extracted files do not have proper 'group' and 'other' perms.

$ port contents py27-logilab-common | tail -n +2 | xargs ls -l | grep w---
-rw------- 1 root wheel  3834 Jul 30 06:06 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/logilab/common/test/data/ChangeLog
-rw------- 1 root wheel  1222 Jul 30 06:06 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/logilab/common/test/data/MyPyPa-0.1.0-py2.5.egg
-rw------- 1 root wheel   206 Jul 30 06:06 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/logilab/common/test/data/MyPyPa-0.1.0.zip
...
...

Modified Paths:
--------------
    trunk/dports/python/py-logilab-common/Portfile

Modified: trunk/dports/python/py-logilab-common/Portfile
===================================================================
--- trunk/dports/python/py-logilab-common/Portfile	2012-09-21 21:18:53 UTC (rev 98006)
+++ trunk/dports/python/py-logilab-common/Portfile	2012-09-21 23:40:55 UTC (rev 98007)
@@ -7,7 +7,7 @@
 name                py-logilab-common
 if {$subport != "py24-logilab-common"} {
     version         0.58.2
-    revision        1
+    revision        2
 } else {
     epoch           1
     version         0.50.3
@@ -37,6 +37,12 @@
 python.versions 24 25 26 27
 
 if {$subport != $name} {
+    # 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" 
+    } 
+
     post-destroot {
         xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
         xinstall -m 644 -W ${worksrcpath} ChangeLog README \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120921/c2fc2e84/attachment.html>


More information about the macports-changes mailing list