#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: ----------------------------------------+----------------------------------- Changes (by ryandesign@…): * cc: jmr@… (added) Comment: Replying to [comment:5 ryandesign@…]:
This all used to work in MacPorts 1.7.1, so I would like to know what revision caused the issue to occur, so that we can more closely examine that revision and why it had that effect, see what change the revision was trying to make, and see if there is another way to achieve that without causing the problem. I have tracked the problem to r45851, specifically where it changed "exec cp" to "file copy -force" in the reinplace proc in portutil.tcl. [attachment:portutil.tcl.diff Reverting that change] fixes the problem, but of course this was changed in the first place because we wanted to avoid using shell utilities (which might not be the ones we think they are) and move to using tcl commands where possible. So why does "file copy -force" behave differently from "exec cp" in this case, and is there a way to make it behave the way we want?
-- Ticket URL: <http://trac.macports.org/ticket/20896#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS