#20896: reinplace: could not set group for file: not owner (--with-no-root- privileges) ----------------------------------------+----------------------------------- Reporter: jonthn+macports@… | Owner: ricci@… Type: defect | Status: new Priority: Normal | Milestone: MacPorts 1.8.1 Component: base | Version: 1.8.0 Keywords: | Port: ----------------------------------------+----------------------------------- Comment(by ryandesign@…): Replying to [comment:7 blb@…]:
I think, in part, this issue is that the files being patched are mode 0444 in the tarball itself. That's not it. The file permissions are fine (in the below case 0644) after extract, but go bad (0600) during patch. Here's results for readline, but I've seen the same with other ports as noted above. {{{ $ port extract readline MacPorts running without privileges. You may be unable to complete certain actions (eg install). ---> Computing dependencies for readline MacPorts running without privileges. You may be unable to complete certain actions (eg install). ---> Fetching readline MacPorts running without privileges. You may be unable to complete certain actions (eg install). ---> Verifying checksum(s) for readline MacPorts running without privileges. You may be unable to complete certain actions (eg install). ---> Extracting readline $ ls -l /mp/var/macports/build/_Volumes_data_macports_ports_devel_readline/work/readline-6.0/support /shobj-conf -rw-r--r-- 1 rschmidt rschmidt 13886 Jan 4 2009 /mp/var/macports/build/_Volumes_data_macports_ports_devel_readline/work/readline-6.0/support /shobj-conf $ port patch readline MacPorts running without privileges. You may be unable to complete certain actions (eg install). ---> Computing dependencies for readline MacPorts running without privileges. You may be unable to complete certain actions (eg install). MacPorts running without privileges. You may be unable to complete certain actions (eg install). MacPorts running without privileges. You may be unable to complete certain actions (eg install). MacPorts running without privileges. You may be unable to complete certain actions (eg install). ---> Applying patches to readline Error: Target org.macports.patch returned: could not set group for file "/mp/var/macports/build/_Volumes_data_macports_ports_devel_readline/work/readline-6.0/support /shobj-conf": not owner Error: Status 1 encountered during processing. $ ls -l /mp/var/macports/build/_Volumes_data_macports_ports_devel_readline/work/readline-6.0/support /shobj-conf -rw------- 1 rschmidt rschmidt 13997 Sep 23 21:23 /mp/var/macports/build/_Volumes_data_macports_ports_devel_readline/work/readline-6.0/support /shobj-conf $ }}} It's something about the combination of patching followed by reinplacing; the problem goes away if I remove either the patchfile or the reinplace.
I'm pretty sure I had perl5.8 installed with MacPorts trunk on 10.5 (non-root) not too long ago, so this may perhaps be a tightening in 10.6? I have tested the release_1_8 branch @58126 on all five OS/arch combinations and I experience the problem on 10.4 and 10.5 but not on 10.6.
-- Ticket URL: <http://trac.macports.org/ticket/20896#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS