id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,port
8290,php5 +apache2 build ends up with cruft in install before activation,blair@…,macports-tickets@lists.macosforge.org,"Doing a build today got this error:

--->  Archive php5-5.1.2_1+apache2+darwin_7+macosx+mysql4.powerpc.tgz packaged
--->  Archive for php5 5.1.2_1+apache2+darwin_7+macosx+mysql4 packaged
--->  Installing php5 5.1.2_1+apache2+darwin_7+macosx+mysql4

If this is your first install, you might want
cd /opt/local/apache2/modules
/opt/local/apache2/bin/apxs -a -e -n ""php5"" libphp5.so

* copy  /opt/local/etc/php.ini-dist to  /opt/local/etc/php.ini
* copy  /opt/local/etc/pear.conf.sample to  /opt/local/etc/pear.conf
--->  Activating php5 5.1.2_1+apache2+darwin_7+macosx+mysql4
Error: Target com.apple.activate returned: Image error: /opt/local/lib/php/.channels/.alias/pear.txt already exists and does not belong to a registered port.  Unable to activate port php5.
Warning: the following items did not execute (for php5): com.apple.activate


I ended up finding these files in the directory:

$ cd /opt/local/lib/php
$ find . -type f       
./.channels/.alias/pear.txt
./.channels/.alias/pecl.txt
./.channels/__uri.reg
./.channels/pear.php.net.reg
./.channels/pecl.php.net.reg
./.depdb
./.depdblock
./.filemap
./.lock

I'm thinking that this directory shouldn't even exist at that
location until activation.

Regards,
Blair",defect,closed,Normal,,ports,1.2,wontfix,,,
