Opened 15 years ago
Closed 15 years ago
#21183 closed defect (duplicate)
cdrtools-2.01.01a48 snowleopard Patch error -permission denied (--with-no-root-privileges)
Reported by: | mthomas+macports@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.8.0 |
Keywords: | Cc: | ryandesign (Ryan Carsten Schmidt) | |
Port: | cdrtools |
Description
This issue is similar to Ticket #20896 (which was for perl5.8)
I am using trunk MacPorts on Snow Leopard. I have it configured so it does not use root privileges.
When port attempts to patch cdrtools-2.01.01a48, the following error occurs:
$ port -d patch cdrtools ... DEBUG: Executing proc-post-org.macports.patch-patch-0 Error: Target org.macports.patch returned: could not set attributes of "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_cdrtools/work/cdrtools-2.01.01/DEFAULTS/Defaults.darwin": permission denied DEBUG: Backtrace: could not set attributes of "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_cdrtools/work/cdrtools-2.01.01/DEFAULTS/Defaults.darwin": permission denied while executing "$post $targetname" Warning: the following items did not execute (for cdrtools): org.macports.patch
And looking at the permissions of that file, we see the owner does not have write access:
$ ls -l /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_cdrtools/work/cdrtools-2.01.01/DEFAULTS/Defaults.darwin -r--r--r-- 1 macports staff 1515 Sep 7 13:04 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_cdrtools/work/cdrtools-2.01.01/DEFAULTS/Defaults.darwin
I addressed the issue by patching the Portfile similar to that shown in Ticket #20896.
Attachments (1)
Change History (2)
Changed 15 years ago by mthomas+macports@…
Attachment: | cdrtools-no-root-priv-Portfile.patch added |
---|
comment:1 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign@… added |
---|---|
Resolution: | → duplicate |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
This is not a ports problem; this a base problem, so marking this as a duplicate of #20896.