Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#25331 closed defect (fixed)

failure to create build directory with non-root macportsuser

Reported by: goldendragonmaster@… Owned by: macports-tickets@…
Priority: Normal Milestone: MacPorts 1.9.2
Component: base Version: 1.9.1
Keywords: Cc:
Port:

Description

(OS X Snow Leopard 10.6.4, MP 1.9.1)

After upgrading from MP version 1.8.2 to 1.9.1 and trying to upgrade or install any port,
"sudo port ..." command fails to create the build directory for that port. For example:

Error: Unable to upgrade port: can't create directory \
"/opt/local/var/macports/build/_opt_local_var_macports_sources\
_rsync.macports.org_release_ports_lang_perl5.12": permission denied

I'm able to mkdir directories myself, so the permission are ok (root:admin).

Attachments (1)

sudo_port_-d_upgrade_outdated_OUTPUT.txt (15.5 KB) - added by goldendragonmaster@… 14 years ago.
Output of sudo port -d upgrade outdated

Download all attachments as: .zip

Change History (4)

Changed 14 years ago by goldendragonmaster@…

Output of sudo port -d upgrade outdated

comment:1 Changed 14 years ago by nerdling (Jeremy Lavergne)

Goldendragon's configuration is set to run MacPortsUser as himself, instead of root. This is likely the culprit, however it had worked fine in 1.8.2 and I believe 1.8.0 is when we added the dropping of privs. Weird combination or has the behavior changed?

comment:2 Changed 14 years ago by jmroot (Joshua Root)

Keywords: snowleopard removed
Resolution: fixed
Status: newclosed
Summary: port upgrade/install (any port) fails to create build directory: permission denied after upgrading from MP 1.8.2 to 1.9.1failure to create build directory with non-root macportsuser

comment:3 Changed 14 years ago by jmroot (Joshua Root)

Milestone: MacPorts 1.9.2
Note: See TracTickets for help on using tickets.