New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #21183 (closed defect: duplicate)

Opened 4 years ago

Last modified 4 years ago

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@…
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

cdrtools-no-root-priv-Portfile.patch (794 bytes) - added by mthomas+macports@… 4 years ago.

Change History

Changed 4 years ago by mthomas+macports@…

comment:1 Changed 4 years ago by ryandesign@…

  • Status changed from new to closed
  • Cc ryandesign@… added
  • Resolution set to duplicate

This is not a ports problem; this a base problem, so marking this as a duplicate of #20896.

Note: See TracTickets for help on using tickets.