Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Nov 2010 17:40:09 GMT
From:      Oliver Fromme <olli@lurza.secnetix.de>
To:        freebsd-python@FreeBSD.org
Subject:   Re: ports/152224: [patch] fix installed permissions for ?lang/python27
Message-ID:  <201011151740.oAFHe9p3096068@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: Oliver Fromme <olli@lurza.secnetix.de>
To: Anonymous <swell.k@gmail.com>, 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 <swell.k@gmail.com> wrote:
  > John Hein <jhein@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



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