From owner-freebsd-python@FreeBSD.ORG Sun Nov 14 04:10:11 2010 Return-Path: Delivered-To: freebsd-python@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B81BE106564A for ; Sun, 14 Nov 2010 04:10:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A59B48FC08 for ; Sun, 14 Nov 2010 04:10:11 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id oAE4ABvP070465 for ; Sun, 14 Nov 2010 04:10:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id oAE4ABUJ070464; Sun, 14 Nov 2010 04:10:11 GMT (envelope-from gnats) Date: Sun, 14 Nov 2010 04:10:11 GMT Message-Id: <201011140410.oAE4ABUJ070464@freefall.freebsd.org> To: freebsd-python@FreeBSD.org From: Anonymous Cc: Subject: Re: ports/152224: [patch] fix installed permissions for lang/python27 X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Anonymous List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Nov 2010 04:10:11 -0000 The following reply was made to PR ports/152224; it has been noted by GNATS. From: Anonymous To: John Hein 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 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 {} +