[MacPorts] #20217: startupitem-based build fails when installing as non-root (was: apache2 - 2.2.11 - Build fails when installing as non-root)

MacPorts noreply at macports.org
Tue Jul 7 22:35:58 PDT 2009


#20217: startupitem-based build fails when installing as non-root
------------------------------------+---------------------------------------
 Reporter:  jameskyle@…             |       Owner:  macports-tickets@…                   
     Type:  defect                  |      Status:  new                                  
 Priority:  Normal                  |   Milestone:  MacPorts Future                      
Component:  base                    |     Version:  1.8.0                                
 Keywords:                          |        Port:                                       
------------------------------------+---------------------------------------
Changes (by blb@…):

  * component:  ports => base
  * milestone:  => MacPorts Future


Old description:

> 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.

New description:

 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.

--

Comment:

 The cause is that the [browser:/trunk/base/src/port1.0/portstartupitem.tcl
 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.

-- 
Ticket URL: <http://trac.macports.org/ticket/20217#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list