[MacPorts] #69650: netpbm fails to destroot Port when not using MacPorts as root

MacPorts noreply at macports.org
Tue Apr 2 08:21:44 UTC 2024


#69650: netpbm fails to destroot Port when not using MacPorts as root
--------------------------+------------------------
  Reporter:  tux-o-matic  |      Owner:  ryandesign
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:
      Port:  netpbm       |
--------------------------+------------------------
Changes (by ryandesign):

 * status:  new => assigned
 * owner:  (none) => ryandesign


Old description:

> On a system where ports are installed by and for a local user account,
> the netpbm Port fails to install:
>
> {{{
> [...]
> :info:destroot chown: /Users/XXX/macports/var/macports/build/_Users_
> XXX_macports_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_netpbm/libnetpbm/work/destroot:
> Operation not permitted
> :info:destroot Command failed: chown -R 'root':'admin'
> /Users/XXX/macports/var/macports/build/_Users_
> XXX_macports_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_netpbm/libnetpbm/work/destroot
> }}}
> Seems to come from this [https://github.com/macports/macports-
> ports/blob/master/graphics/netpbm/Portfile#L184] chown command in the
> Portfile.
>

> As explained in [https://trac.macports.org/ticket/69601], netpbm has
> somehow become a dependency for some popular CLI tools which normally
> shouldn't even need netpbm.

New description:

 On a system where ports are installed by and for a local user account, the
 netpbm Port fails to install:

 {{{
 [...]
 :info:destroot chown: /Users/XXX/macports/var/macports/build/_Users_
 XXX_macports_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_netpbm/libnetpbm/work/destroot:
 Operation not permitted
 :info:destroot Command failed: chown -R 'root':'admin'
 /Users/XXX/macports/var/macports/build/_Users_
 XXX_macports_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_netpbm/libnetpbm/work/destroot
 }}}
 Seems to come from this source:macports-
 ports/graphics/netpbm/Portfile#L184 chown command in the Portfile.


 As explained in #69601, netpbm has somehow become a dependency for some
 popular CLI tools which normally shouldn't even need netpbm.

--

-- 
Ticket URL: <https://trac.macports.org/ticket/69650#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list