Ticket #18270 (closed defect: fixed)
port distfiles shouldn't require root
| Reported by: | ryandesign@… | Owned by: | macports-tickets@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | MacPorts 1.8.0 |
| Component: | base | Version: | 1.7.0 |
| Keywords: | Cc: | ||
| Port: |
Description
port distfiles shouldn't require root access to run, since it's only displaying information:
$ port distfiles apache2 Error: Unable to execute port: /opt/local/var/macports/build/_Users_rschmidt_macports_dports_www_apache2/work/.macports.apache2.state is not writable - check permission on port directory $
Attachments
Change History
comment:2 Changed 4 years ago by ryandesign@…
Right, but does it really need to write a statefile? port lint and port livecheck were recently enhanced to not require root; I figured a similar change could be made to port distfiles.
comment:3 Changed 4 years ago by afb@…
Same goes for port distcheck, it uses an (outdated) hard-coded list of targets rather than checking target_state
Note: See
TracTickets for help on using
tickets.


It looks like it just wants root to write the statefile (which it probably shouldn't need to do), so if you've been building things as non-root, it wouldn't need root.