[120074] trunk/base/aclocal.m4

cal at macports.org cal at macports.org
Wed May 14 15:57:43 PDT 2014


Revision: 120074
          https://trac.macports.org/changeset/120074
Author:   cal at macports.org
Date:     2014-05-14 15:57:43 -0700 (Wed, 14 May 2014)
Log Message:
-----------
base: aclocal.m4: use umask 0022 when extracting vendor tarballs

Some of the vendor tarballs (tcllib!) don't use install(1) with explicit modes
but just copy files from the build dir to destroot or prefix on installation,
preserving permissions. That can lead to non rwXr-Xr-X files and directories in
the installation.

Modified Paths:
--------------
    trunk/base/aclocal.m4

Modified: trunk/base/aclocal.m4
===================================================================
--- trunk/base/aclocal.m4	2014-05-14 22:30:42 UTC (rev 120073)
+++ trunk/base/aclocal.m4	2014-05-14 22:57:43 UTC (rev 120074)
@@ -147,7 +147,7 @@
 				AC_MSG_ERROR([Don't know how to extract tarball $mp_tarball])
 				;;
 		esac
-		(cd "$mp_tarball_vendordir"; "$mp_tarball_extract_cmd" -d < "$ac_abs_confdir/$mp_tarball" | tar xf - || AC_MSG_ERROR([failed to extract $mp_tarball]))
+		(cd "$mp_tarball_vendordir"; umask 0022; "$mp_tarball_extract_cmd" -d < "$ac_abs_confdir/$mp_tarball" | tar xf - || AC_MSG_ERROR([failed to extract $mp_tarball]))
 	fi
 	if ! test -d "$ac_dir"; then
 		AC_MSG_ERROR([tarball $mp_tarball did not extract to $ac_dir])
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140514/92ed6219/attachment-0001.html>


More information about the macports-changes mailing list