From owner-freebsd-python@FreeBSD.ORG Mon Nov 15 17:40:09 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 607CF1065672 for ; Mon, 15 Nov 2010 17:40:09 +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 349F88FC13 for ; Mon, 15 Nov 2010 17:40:09 +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 oAFHe9II096069 for ; Mon, 15 Nov 2010 17:40:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id oAFHe9p3096068; Mon, 15 Nov 2010 17:40:09 GMT (envelope-from gnats) Date: Mon, 15 Nov 2010 17:40:09 GMT Message-Id: <201011151740.oAFHe9p3096068@freefall.freebsd.org> To: freebsd-python@FreeBSD.org From: Oliver Fromme 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: Oliver Fromme List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Nov 2010 17:40:09 -0000 The following reply was made to PR ports/152224; it has been noted by GNATS. From: Oliver Fromme To: Anonymous , jhein@symmetricom.com, bug-followup@FreeBSD.org Cc: Subject: Re: ports/152224: [patch] fix installed permissions for ?lang/python27 Date: Mon, 15 Nov 2010 18:35:40 +0100 (CET) Anonymous wrote: > John Hein writes: > > +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 {} + It's unclear to me why you have to use find(1) at all. The following simple command should work equally well: ${CHMOD} -R og=u-w ${WRKSRC}/Tools ${WRKSRC}/Demo Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "We, the unwilling, led by the unknowing, are doing the impossible for the ungrateful. We have done so much, for so long, with so little, we are now qualified to do anything with nothing."         -- Mother Teresa