ports/152224: [patch] fix installed permissions for
?lang/python27
Oliver Fromme
olli at lurza.secnetix.de
Mon Nov 15 17:40:09 UTC 2010
The following reply was made to PR ports/152224; it has been noted by GNATS.
From: Oliver Fromme <olli at lurza.secnetix.de>
To: Anonymous <swell.k at gmail.com>, jhein at symmetricom.com,
bug-followup at 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 <swell.k at gmail.com> wrote:
> John Hein <jhein at symmetricom.com> 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
More information about the freebsd-python
mailing list