[MacPorts] #59836: port should explicitly say to use sudo when upgrading
MacPorts
noreply at macports.org
Sat Dec 14 03:20:20 UTC 2019
#59836: port should explicitly say to use sudo when upgrading
--------------------------+--------------------
Reporter: manulcaux | Owner: (none)
Type: enhancement | Status: new
Priority: Normal | Milestone:
Component: base | Version: 2.6.2
Resolution: | Keywords:
Port: |
--------------------------+--------------------
Comment (by ryandesign):
Replying to [ticket:59836 manulcaux]:
> this should be made clear that sudo is mandatory, first in the output
message given after the selupdate,
Although we do not recommend it (because it is less secure), it is
possible to configure MacPorts as a non-root installation. In that case,
sudo is not used. So what you are asking for here is for us to identify
all the places where we advise the user to use sudo (or don't advise the
user to use sudo and should, as you encountered here), but conditionalize
that based on whether the user has a root installation or a non-root
installation. That's probably several places within MacPorts base, and
countless places within individual ports.
> and second in the error message sent if the user forgot to use sudo !
I agree, it should print something useful. I don't know why it does not.
> And why the sudo is not taken by default when I used it a few second
before launching sudo port self update ??
Because that is not how a shell works. MacPorts has no influence over the
shell that you run it in.
--
Ticket URL: <https://trac.macports.org/ticket/59836#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list