Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Nov 2010 04:10:11 GMT
From:      Anonymous <swell.k@gmail.com>
To:        freebsd-python@FreeBSD.org
Subject:   Re: ports/152224: [patch] fix installed permissions for lang/python27
Message-ID:  <201011140410.oAE4ABUJ070464@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/152224; it has been noted by GNATS.

From: Anonymous <swell.k@gmail.com>
To: John Hein <jhein@symmetricom.com>
Cc: bug-followup@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@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  {} +



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011140410.oAE4ABUJ070464>