Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#20217 closed defect (duplicate)

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

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 (4)

comment:1 Changed 15 years ago by blb@…

Component: portsbase
Description: modified (diff)
Milestone: MacPorts Future
Summary: apache2 - 2.2.11 - Build fails when installing as non-rootstartupitem-based build fails when installing as non-root

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 15 years ago by ryandesign (Ryan Carsten Schmidt)

See also #10879.

comment:3 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: duplicate
Status: newclosed

comment:4 Changed 15 years ago by jmroot (Joshua Root)

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