New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #25331 (closed defect: fixed)

Opened 5 years ago

Last modified 4 years ago

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

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

Change History

Changed 5 years ago by goldendragonmaster@…

Output of sudo port -d upgrade outdated

comment:1 Changed 5 years ago by snc@…

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 5 years ago by jmr@…

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

comment:3 Changed 4 years ago by jmr@…

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