Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 May 2008 14:58:10 -0700
From:      Christopher Cowart <ccowart@rescomp.berkeley.edu>
To:        questions@freebsd.org
Subject:   lang/php5 fails in apxs
Message-ID:  <20080505215810.GA89055@hal.rescomp.berkeley.edu>

next in thread | raw e-mail | index | archive | help

--qMrVIIv05ewzrSl/
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hello,

I stumbled across this behavior roughly a year ago. The php5 port has
the following lines in the pkg-plist:

    %%APACHE%%@exec %D/sbin/apxs -e -a -n %%AP_NAME%% %f
    %%APACHE%%@unexec %D/sbin/apxs -e -A -n %%AP_NAME%% %f

This command reads /usr/local/etc/apache22/httpd.conf, looks for
LoadModule lines, appends a LoadModule for php5, and exits. I don't have
any LoadModule lines in my httpd.conf; they've all been separated out
into include files.

The result is the port fails to install:

| apxs:Error: Activation failed for custom
| /usr/local/etc/apache22/httpd.conf file..
| apxs:Error: At least one `LoadModule' directive already has to exist..
| pkg_add: command '/usr/local/sbin/apxs -e -a -n php5 libphp5.so' failed
| --->  Removing old package'
| ** Fix the installation problem and try again.

Needless to say, this is annoying. I have to remember to add a
"LoadModule foo foo.so" line to the httpd.conf whenever I upgrade php5,
and remove both it and the PHP LoadModule directive when I'm done.

Why does the port think it's kosher to touch live configuration files? A
lot of people keep their configurations under revision control (and most
probably should). On the next commit on my system, this change is gone
anyways. Does anyone have any decent work arounds? Better yet, is there
any interest in fixing the php5 port so that it doesn't touch
configuration files? At the very least, I'd love a knob to disable the
"feature."

--=20
Chris Cowart
Network Technical Lead
Network & Infrastructure Services, RSSP-IT
UC Berkeley

--qMrVIIv05ewzrSl/
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)

iQIVAwUBSB+C8iPHEDszU3zYAQJV8RAAm6fDo8h78i7qIxaOm7VtoIs+RVtyo/HF
ePl9J9UNve3Kz6I4w2ityDniM0zySSRYz4gW07ZxxtGxodsA1Rv5XkPFwBasmdzl
fLIatubvktZHEYR1bAd7xA/5OmfEJ644YoHoWrkyLUFj/MgMxBuuy6WgC8oRJlwQ
ArvYerwrZKe7aYqyckjob/Ne2dTdHdwdQpHsfMmJ4ck3wxiaaeP3YLIGadHI06Uv
w8KuvHxyFEQzT2qFy9mNm3Fd2jNGK6oPKSxaIteEuJrR0RS+A2PBsq2TwJxGGKV5
ZxEBHG9QRTdOUB8mLaIisthQ3yt/izk98+8bX4kMWa34+uHk3EpWKqAotKXa47oH
2108MRcdRbCwLfHe7BlKBVxO47MCX6qyXRGlUcov6vrl4lpK4N8cLQ8/o6sMgt8G
wNhdwa/W3sCEqqxN8BkhQ+puQfJkk5cVq1wCRsoUSFYXw0BYixdLDJq2XmbWnaWf
LWn8ko21xS2CxOTErqLHeZvffL2TFx5id9OHd2msbSi5JDcMYXm/iB1sR/AvAzKT
+6g9xYDKpu06UCN2zSG4WAtSQc7qSQYbRFIxnR2NkeICepM9ut/qWJ4UBbXitocA
D+cIqZAo1FmdVV6VeA3b/UDM2E23/R0NJHCFv+eIAR6RZN/+w3aScM90kxi666WR
Y2XA82BLnAI=
=Wn9w
-----END PGP SIGNATURE-----

--qMrVIIv05ewzrSl/--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080505215810.GA89055>