New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #20217 (closed defect: duplicate)

Opened 4 years ago

Last modified 4 years ago

startupitem-based build fails when installing as non-root

Reported by: jameskyle@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 1.8.0
Keywords: Cc:
Port:

Description (last modified by blb@…) (diff)

Output:

--->  Staging apache2 into destroot
--->  Creating launchd control script
Error: Target org.macports.destroot returned: could not set owner for file "/Users/jkyle/Projects/macports/ports_test/var/macports/build/_Users_jkyle_Projects_macports_dports_www_apache2/work/destroot/Users/jkyle/Projects/macports/ports_test/etc/LaunchDaemons/org.macports.apache2": not owner
Error: The following dependencies failed to build: mod_perl2 apache2 p5-archive-zip p5-compress-zlib p5-compress-raw-zlib p5-io-compress-base p5-io-compress-zlib p5-file-rsyncp samba3
Error: Status 1 encountered during processing.

Though looking at the portfile, it may have to do with the built-in startupitem calls.

Change History

comment:1 Changed 4 years ago by blb@…

  • Summary changed from apache2 - 2.2.11 - Build fails when installing as non-root to startupitem-based build fails when installing as non-root
  • Component changed from ports to base
  • Description modified (diff)
  • Milestone set to MacPorts Future

The cause is that the startupitem code specifically uses -owner root -group wheel when installing the launchd bits (or equivalent). You can set

startupitem_type none

in macports.conf to avoid having it install it at all, but that is mostly just a workaround.

comment:2 Changed 4 years ago by ryandesign@…

See also #10879.

comment:3 Changed 4 years ago by ryandesign@…

  • Status changed from new to closed
  • Resolution set to duplicate

comment:4 Changed 4 years ago by jmr@…

  • Milestone MacPorts Future deleted
Note: See TracTickets for help on using tickets.