On Tuesday 05 April 2016 23:43:30 Dmitrij D. Czarkoff wrote: > Juan Francisco Cantero Hurtado said: > > The files will not show up again in the future in the PLIST. > > Indeed. Also > > > - I would prefer to keep the old behavior in do-install. INSTALL_* will > > > > use the correct permissions for every type of file/dir. > > We currently install everything (except bin/go and bin/gofmt) with > INSTALL_DATA, thus stripping executable bits from several tools and > scripts. I am not sure it is a good idea. FWIW I switched do-install > to cp because tests of some package wanted to use some script from go's > own tests, and assumed that it has 'x' permission bit set. Provided > that we don't package much software in go, it may be worth keeping > closer to upstream. > > Tracking permissions manually and using INSTALL_{PROGRAM,SCRIPT} when > needed would require much effort with no real benefit. Just using cp > instead we get > > $ find /usr/local/go -type f -exec stat -f '%Su %Sg %Sp' {} + | sort | > uniq -c 7483 root bin -r--r--r-- > 34 root bin -r-xr-xr-x > > with two lines of shell commands. Even if permission changes will be > required in future, it will likely be easier to chmod individual files.
I share the same concern - the previous approach was deliberate and resulted in 19 executable files being installed by the package, all of which are binaries. By using cp instead we now have an unlimited number of executable files being installed, with whatever permissions have come from the source tar archive. Which packages are expecting to run scripts within Go's tests?