ports/103645: Various PHP ports can't "make fetch" because of check for CLI version

Bill Moran wmoran at collaborativefusion.com
Mon Sep 25 20:20:21 UTC 2006


>Number:         103645
>Category:       ports
>Synopsis:       Various PHP ports can't "make fetch" because of check for CLI version
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 25 20:20:19 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Bill Moran
>Release:        Various, but mostly 6.1
>Organization:
Collaborativefusion Inc.
>Environment:
FreeBSD ravage 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #1: Tue Feb 28 14:55:11 EST 2006     root at ravage:/usr/obj/export/RELENG_6/src/sys/RAVAGE  i386
>Description:
Many PHP extensions require the CLI version of PHP in order to install, however, it appears as if the PHP framework is too aggressive in its testing for the CLI version, and this prevents "make fetch" and "make fetch-recursive" from working.

This is especially evident when we have build machines and NFS machines that we need to fetch port distfiles to, but that won't actually need the port.

I apologize that I don't have a patch, but I haven't had time to research how the build framework for PHP is put together.
>How-To-Repeat:
Install PHP without CLI support, then attempt to "make fetch" or "make fetch-recursive" one of many PHP ports.  It seems as if anything requiring PEAR suffers from this.

A specific example is benchmarks/pear-Benchmark:

[root at ravage /usr/ports/benchmarks/pear-Benchmark]# make fetch-recursive
===> Fetching all distfiles for pear-Benchmark-1.2.6 and dependencies
=> Benchmark-1.2.6.tgz doesn't seem to exist in /usr/ports/distfiles/PEAR.
=> Attempting to fetch from http://pear.php.net/get/.
Benchmark-1.2.6.tgz                           100% of 7915  B   16 MBps
This port requires the CLI version of PHP, but you have already
installed a PHP port without CLI.
*** Error code 1

Stop in /export/ports/devel/pear.
*** Error code 1

Stop in /export/ports/benchmarks/pear-Benchmark.

>Fix:
The test for the CLI version of PHP does not need to be performed if "make fetch" is done.  While I'm not sure, it seems to me that the check shouldn't be performed until after the "extract" target has completed.
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list