[73322] trunk/dports/archivers/libzzip/Portfile

jmr at macports.org jmr at macports.org
Tue Nov 9 22:08:14 PST 2010


Revision: 73322
          http://trac.macports.org/changeset/73322
Author:   jmr at macports.org
Date:     2010-11-09 22:08:11 -0800 (Tue, 09 Nov 2010)
Log Message:
-----------
libzzip: build as root if privilege dropping would normally build as nobody (#27243)

Modified Paths:
--------------
    trunk/dports/archivers/libzzip/Portfile

Modified: trunk/dports/archivers/libzzip/Portfile
===================================================================
--- trunk/dports/archivers/libzzip/Portfile	2010-11-10 05:49:15 UTC (rev 73321)
+++ trunk/dports/archivers/libzzip/Portfile	2010-11-10 06:08:11 UTC (rev 73322)
@@ -49,6 +49,11 @@
         ${builddir}/zzip/zziplib.pc
 }
 
+# pax doesn't handle 32-bit uids, so running as nobody makes it fail...
+if {[getuid] == 0 && $macportsuser == "nobody"} {
+    build.asroot yes
+}
+
 post-destroot {
     xinstall -d ${destroot}${docdir}/html
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101109/d0880969/attachment.html>


More information about the macports-changes mailing list