PHP on FreeBSD - Compiler Bugs and Option selection
vizion at vizion.occoxmail.com
Sat Sep 10 12:54:08 PDT 2005
I just wanted to check you had received OK the two compiler errors that I
reported for /usr/ports/lang/php5-extensions.
The first error was apparently caused by make expecting libmagic in an
incorrect path for FreeBSD 5.3. Once a copy was placed in the correct path
The second error seems also to be caused by an inability to find requisite
files for wddx.
As a result of compiling php5 I began to wonder whether it would be helpful
to users if :
drwxr-xr-x 3 root wheel 512 May 2 07:06 php5-cli
drwxr-xr-x 3 root wheel 512 Sep 9 18:00 php5-extensions
drwxr-xr-x 3 root wheel 512 May 28 10:06 php_doc
were more integrated as choices within make for php5.
I would personally find it helpful if all the build options for php could be
in an editable file for sysadmins to define a repeatable unattended build
from all available build options. A closer integration of the subsidiary php5
ports into the php5 make would facilitate this process.
I do not not how welcome these proposals might be or how easy it would be to
make the changes but would be interested to know what others think.
Norberto Meijome <freebsd at meijome.net> made a very interesting suggestion that
he uses on his servers to achieve the above goal. He
uses /usr/local/etc/pkgtools.conf for that purpose but my preference would be
to have a method that is particular to php and does not lead to an
overloading of /usr/local/etc/pkgtools.conf.
I have copied Norbeto's example below:
-if you want to avoid having to choose by hand what you really
-want( or have it preconfigured so all you have to do is press OK, then
-use something like /usr/local/etc/pkgtools.conf which will be read by
-my relevant sections for my servers are:
- 'php4-*' =- [
- 'php4-dba-*' =- [
- 'php4-gd-*' =- [
- 'php4-mbstring-*' =- [
I also wonder why the Makefile, by default, uses the --disable-all option in
the Makefile with no option to remove it.
I would be interested in what others have to say and would like to place on
record my appreciation for all your work in maintaining the ports.
40 yrs navigating and computing in blue waters.
English Owner & Captain of British Registered 60' bluewater Ketch S/V Taurus.
Currently in San Diego, CA. Sailing bound for Europe via Panama Canal after
completing engineroom refit.
More information about the freebsd-questions