[MacPorts] #21414: php5-5.3.0 incorrect path for destroot.keepdirs

MacPorts noreply at macports.org
Wed Sep 16 00:14:57 PDT 2009


#21414: php5-5.3.0 incorrect path for destroot.keepdirs
------------------------------+---------------------------------------------
 Reporter:  blb@…             |       Owner:  ryandesign@…           
     Type:  defect            |      Status:  new                    
 Priority:  Normal            |   Milestone:                         
Component:  ports             |     Version:  1.8.99                 
 Keywords:                    |        Port:  php5                   
------------------------------+---------------------------------------------
 The lang/php5 Portfile lists
 {{{
 destroot.keepdirs       ${extraphpinidir}
 }}}
 which causes port to try and create the turd file directly in ${prefix}
 and not ${destroot} (this was {{{port -d destroot}}} as me, not as root,
 hence no write access):
 {{{
 DEBUG: Executing portdestroot::destroot_finish
 Error: Target org.macports.destroot returned: xinstall: mkdir
 /mp/var/db/php5, Permission denied
 DEBUG: Backtrace: xinstall: mkdir /mp/var/db/php5, Permission denied
     while executing
 "xinstall -m 0755 -d ${path}"
     (procedure "portdestroot::destroot_finish" line 23)
     invoked from within
 "$postrun $targetname"
 }}}

 Changing to
 {{{
 destroot.keepdirs       ${destroot}${extraphpinidir}
 }}}
 works much better.

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


More information about the macports-tickets mailing list