Opened 15 years ago

Closed 15 years ago

#6379 closed defect (fixed)

php5 build problems (PEAR)

Reported by: mcg30761@… Owned by: opendarwin-2006@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc: bugzilla.opendarwin.org@…, tom@…
Port:

Description

I installed php5 from the binary package and that worked fine, however, I needed to turn on some variants, so I built php5 from source with: "sudo port -v install php5 +apache +mysql5 +postgresql".

It failed to build trying to rename "etc/pear.conf". The failure and surrounding logfile is attached. This file was installed by the binary package, so it was there when the package was built.

To get going again, I had to comment out the rename rule in php5's Portfile (cvs v1.17). Of course this is a hack only. The original "pear.conf.sample" file wasn't there to copy.

I looked at the configure flags and noticed a few anomalies.

configure.args always has "--without-mysql" always set, even when a +mysql* variant is enabled.

The +mysql5 variant seems to be just a work-in-progress? The mysql option becomes "--with- mysql=/opt/local/var/db/dports/ build_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_www_php5/ work/mysql5". Can this right?

Attachments (1)

install.log (8.4 KB) - added by mcg30761@… 15 years ago.
Part of build log that shows failure.

Download all attachments as: .zip

Change History (11)

Changed 15 years ago by mcg30761@…

Attachment: install.log added

Part of build log that shows failure.

comment:1 Changed 15 years ago by jberry@…

(In reply to comment #0)

The +mysql5 variant seems to be just a work-in-progress? The mysql option becomes "--with- mysql=/opt/local/var/db/dports/ build_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_www_php5/ work/mysql5". Can this right?

Yes, this part is right. The port creates a folder there with some symlinks in it to the funky mysql5 locations on disk.

comment:2 Changed 15 years ago by jberry@…

(from the mailing list) On Dec 19, 2005, at 23:49, Aimee Walton wrote:

Experiencing the same problem here, it would appear to actually be this bug with PEAR ...

http://pear.php.net/bugs/bug.php?id=6154

Installing PEAR falls over when INSTALL_ROOT is used. By going to the PHP build directory and doing ...

make install-pear PHP_PEAR_INSTALL_DIR=/opt/local/lib/php

... it appears to install directly to /opt/local fine, but use INSTALL_ROOT to send it to destroot and it doesn't.

comment:3 Changed 15 years ago by tom@…

Cc: tom@… added

comment:4 Changed 15 years ago by jberry@…

A new php 5 release is out, so hopefully that will resolve these problems once somebody gets a chance to upgrade the port...

comment:5 Changed 15 years ago by schlu-do@…

I still get problems with the PHP5 port. When I try to upgrade to 5.1.2 I get:

* [albook:~] sysad$ sudo port -v outdated The following installed ports are outdated: openssl 0.9.8_2 > 0.9.8a_0 ! php5 5.1.1_0 < 5.1.2_0 * [albook:~] sysad$ sudo port -a upgrade Error: Error executing mysql4: invalid command name "configure.args-remove" Error: Unable to upgrade port: 1

Even when I manually edit the Portfile and comment out the "--without-mysql" and the "configure.args-remove" for the mysql4 variant, it complaines:

* [albook:~] sysad$ sudo port -a upgrade ---> Fetching php5 ---> Attempting to fetch php-5.1.2.tar.bz2 from http://www.php.net/distributions/ ---> Verifying checksum(s) for php5 ---> Extracting php5 ---> Configuring php5 ---> Building php5 with target all ---> Staging php5 into destroot Error: Target com.apple.destroot returned: xinstall: Cannot stat: /opt/local/var/db/dports/build/_private_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_www_php5/work/php-5.1.2/libs/libphp5.so, No such file or directory Error: Unable to upgrade port: 1

comment:6 Changed 15 years ago by bugzilla.opendarwin.org@…

Cc: bugzilla.opendarwin.org@… added

i just got this: === beejmac:~ beej$ sudo port install php5 ---> Activating php5 5.1.2_0 darwin_8 macosx 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. Error: /opt/local/bin/port: Status 1 encountered during processing. ===

comment:7 Changed 15 years ago by jonathan.williams@…

Marc Bejarano's issue can be worked out if you -f (force) the command

comment:8 Changed 15 years ago by mww@…

perhaps we forgot to increment revision, but at least the most recent php5-port does remove the .channels directory before going to install;

comment:9 Changed 15 years ago by opendarwin-2006@…

Owner: changed from darwinports-bugs@… to opendarwin-2006@…

comment:10 Changed 15 years ago by opendarwin-2006@…

Resolution: fixed
Status: newclosed
Summary: php5 build problemsphp5 build problems (PEAR)

All PEAR-related problems with php5 should be "solved," because PEAR was removed from the php5 port some time ago, because it proved to be so problematic. Users requiring PEAR are advised to install and maintain it by hand for the time being until someone comes up with a separate DarwinPorts PEAR port.

Note: See TracTickets for help on using tickets.