Opened 19 years ago

Closed 19 years ago

#8748 closed defect (fixed)

BUG: php5 has unstated dependency on wget

Reported by: josh_root@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.2
Keywords: Cc: opendarwin-2006@…
Port:

Description

Destroot fails for php5 without wget installed:

---> Staging php5 into destroot [snip] Installing PEAR environment: /opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_www_php5/work/destroot/opt/local/lib/php/ /bin/sh: line 1: wget: command not found make: * [install-pear] Error 127

Works fine with wget installed. Apparently it fetches <http://pear.php.net/install-pear-nozlib.phar>.

Change History (3)

comment:1 Changed 19 years ago by opendarwin-2006@…

Cc: opendarwin-2004@… added

php 5.1.2 and earlier included the PEAR PHAR already. Now they fetch it at install time.

Rather than make the php5 port have a dependency on wget, I think it would be better to patch the makefile to use curl. I say we should make use of the tools we already have.

comment:2 Changed 19 years ago by opendarwin-2006@…

Presumably one would run something like this in the Portfile:

reinplace "s|wget http://pear.php.net/install-pear-nozlib.phar -nd -P $(builddir)/|curl -o $(builddir)/install-pear-nozlib.phar http://pear.php.net/install-pear-nozlib.phar|" ${something}/pear/Makefile.frag

But I don't know what "${something}" should be and I don't know where in the Portfile to put it.

comment:3 Changed 19 years ago by mww@…

Resolution: fixed
Status: newclosed

has been fixed since 5.1.4 rev 1 by disabling PEAR

Note: See TracTickets for help on using tickets.