ports/152224: [patch] fix installed permissions for lang/python27

Anonymous swell.k at gmail.com
Sun Nov 14 04:10:11 UTC 2010


The following reply was made to PR ports/152224; it has been noted by GNATS.

From: Anonymous <swell.k at gmail.com>
To: John Hein <jhein at symmetricom.com>
Cc: bug-followup at FreeBSD.org
Subject: Re: ports/152224: [patch] fix installed permissions for lang/python27
Date: Sun, 14 Nov 2010 07:04:09 +0300

 John Hein <jhein at symmetricom.com> writes:
 
 [...]
 > Fix permissions of extracted tarball for pieces that are copied
 > during post-inastll.
 >
 > Use tar --no-same-owner during post-install to ensure copied files
 > are owned by install user.
 
 I'm not sure `--no-same-owner' is available on 6.x, better use `-o'.
 
 > +post-extract:
 > +# The distribution tarball for python 2.7 has permission bits for 'others'
 > +# set to 0.  Later during install, we copy Tools and Demo to the installed
 > +# prefix, so set them right here.
 > +	${FIND} ${WRKSRC}/Tools ${WRKSRC}/Demo -type d | ${XARGS} ${CHMOD} a+rx
 > +	${FIND} ${WRKSRC}/Tools ${WRKSRC}/Demo -type f | ${XARGS} ${CHMOD} a+r
 > +
 
 This can be reduced to one command
 
   ${FIND} ${WRKSRC}/Tools ${WRKSRC}/Demo \
               -type d -exec ${CHMOD} a+rx {} + \
           -or -type f -exec ${CHMOD} a+r  {} +


More information about the freebsd-python mailing list