Re: port & root

2018-04-06 Thread Rainer Müller
On 2018-04-05 19:39, Joshua Root wrote: > On 2018-4-6 03:25 , Rainer Müller wrote: >> On 2018-04-05 19:14, Joshua Root wrote: >>> My guess is that this is a bug in Tcl's file command. Deleting a >>> nonexistent file is not supposed to be considered an error. But by >>> starting two instances of por

Re: port & root

2018-04-06 Thread Zero King
On Thu, Apr 05, 2018 at 07:25:10PM +0200, Rainer Müller wrote: On 2018-04-05 19:14, Joshua Root wrote: My guess is that this is a bug in Tcl's file command. Deleting a nonexistent file is not supposed to be considered an error. But by starting two instances of port(1) at the same time, a race co

Re: port & root

2018-04-05 Thread Chris Jones
> On 5 Apr 2018, at 6:39 pm, Bjarne D Mathiesen > wrote: > > Rainer Müller wrote: >>> On 2018-04-05 18:26, Bjarne D Mathiesen wrote: >>> When running './diffPorts php72-' as root I get this : >> >> Just to be specific, did you open a root shell first or did you run it >> with sudo? > > root

Re: port & root

2018-04-05 Thread Bjarne D Mathiesen
Rainer Müller wrote: > On 2018-04-05 18:26, Bjarne D Mathiesen wrote: >> When running './diffPorts php72-' as root I get this : > > Just to be specific, did you open a root shell first or did you run it > with sudo? root shell through 'ssh root@localhost' -- Bjarne D Mathiesen Korsør ; Danmark

Re: port & root

2018-04-05 Thread Joshua Root
On 2018-4-6 03:25 , Rainer Müller wrote: > On 2018-04-05 19:14, Joshua Root wrote: >> My guess is that this is a bug in Tcl's file command. Deleting a >> nonexistent file is not supposed to be considered an error. But by >> starting two instances of port(1) at the same time, a race condition >> ari

Re: port & root

2018-04-05 Thread Rainer Müller
On 2018-04-05 19:14, Joshua Root wrote: > My guess is that this is a bug in Tcl's file command. Deleting a > nonexistent file is not supposed to be considered an error. But by > starting two instances of port(1) at the same time, a race condition > arises. The 'file delete' command probably checks

Re: port & root

2018-04-05 Thread Joshua Root
On 2018-4-6 02:26 , Bjarne D Mathiesen wrote: > When running port in certain situations under the root account, it fails > > In particular, I've got at script > > diffPorts : > #!/macports/bin/bash > diff <( port -q search ${1} ) \ > <( port -q installed name:^${1} | awk '{print $1}' ) \ > |

Re: port & root

2018-04-05 Thread Rainer Müller
On 2018-04-05 18:26, Bjarne D Mathiesen wrote: > When running './diffPorts php72-' as root I get this : Just to be specific, did you open a root shell first or did you run it with sudo? > Error: /macports/bin/port: Failed to initialize MacPorts, error deleting > "/macports/var/macports/home/Libra