[MacPorts] #47755: Broken symlink left by select code when selected port is deactivated causes poppler and other ports using aclocal to fail during configuration.

Lawrence Velázquez larryv at macports.org
Wed Jun 24 19:26:41 PDT 2015


On Jun 24, 2015, at 2:31 PM, Christopher Ramos <chrisdavidramos at gmail.com> wrote:

> "You can systematically avoid it by letting the operating system's
> security do its thing: Don't use superuser privileges to build
> software, and don't use them to install unless you know what it's
> going to do."
> 
> Wow, you know, wow. Now you have me wondering if I've gotten too
> comfortable using sudo.

As a rule, you should not use sudo unless you're pretty sure that you
know why you need it. The operating system already has a solution for
keeping one user's processes from scribbling over files owned by another
user. Try to take advantage of it.

(Admittedly, accidents do happen. Ryan just brought up a not-uncommon
circumstance: Sometimes third-party developers use MacPorts to create
installers for distribution, but they don't use a custom prefix, so the
installers scribble into /opt/local — usually after asking you for admin
authentication.)

vq


More information about the macports-users mailing list