FreeBSD Port: php4-4.3.9

Fabrizio Fioravanti f.fioravanti at tin.it
Fri Nov 12 11:06:06 GMT 2004


Hi,

I have experienced a problem using the port in the subject of the email. =
The problem is the following:

I need to pass to the php configure the following parm:=20
--with-mime-magic=3D/usr/share/misc/magic.mime

By issuing the command=20
root at freebsd# make -n -V CONFIGURE_ARGS
--enable-versioning  --enable-memory-limit  --with-layout=3DGNU
--with-config-file-scan-dir=3D/usr/local/etc/php  --disable-all
--with-regex=3Dphp --with-apxs=3D/usr/local/sbin/apxs --disable-ipv6
--prefix=3D/usr/local i386-portbld-freebsd5.2.1

By issuing=20
root at freebsd# make -n -V CONFIGURE_ARGS
CONFIGURE_ARGS=3D--with-mime-magic=3D/usr/share/misc/magic.mime
--enable-versioning  --enable-memory-limit  --with-layout=3DGNU
--with-config-file-scan-dir=3D/usr/local/etc/php  --disable-all
--with-regex=3Dphp --with-apxs=3D/usr/local/sbin/apxs --disable-ipv6
--prefix=3D/usr/local i386-portbld-freebsd5.2.1

I obtain the same since the Makefile overwrite le variable. By changing =
the Makefile in the following way (using +=3D instead of =3D):

CONFIGURE_ARGS+=3D        --enable-versioning \
I obtain:
root at freebsd# make -n -V CONFIGURE_ARGS
CONFIGURE_ARGS=3D--with-mime-magic=3D/usr/share/misc/magic.mime
--with-mime-magic=3D/usr/share/misc/magic.mime --enable-versioning
--enable-memory-limit  --with-layout=3DGNU
--with-config-file-scan-dir=3D/usr/local/etc/php  --disable-all
--with-regex=3Dphp --with-apxs=3D/usr/local/sbin/apxs --disable-ipv6
--prefix=3D/usr/local i386-portbld-freebsd5.2.1

that seems to be correct, and then when I compile by=20
make deinstall
make clean
make CONFIGURE_ARGS=3D--with-mime-magic=3D/usr/share/misc/magic.mime =
reinstall

The process end in the correct way as when I changed manually the = Makefile
by adding the option in the following way. All seems to work!

CONFIGURE_ARGS=3D --with-mime-magic=3D/usr/share/misc/magic.mime \
                --enable-versioning \
                --enable-memory-limit \
                --with-layout=3DGNU \
                --with-config-file-scan-dir=3D${PREFIX}/etc/php \
                --disable-all

I suggest you to verify and to change the Makefile in order to address =
such problem.

Regards,
Fabrizio

Ing. Fabrizio Fioravanti, Ph.D.
Exitech
Tel./Fax.: +39055470958
Email: f.fioravanti at exitech.fi.it
ICQ: 296-222-577

Ing. Fabrizio Fioravanti, Ph.D.
Exitech
Tel./Fax.: +39055470958
Email: f.fioravanti at exitech.fi.it
ICQ: 296-222-577





More information about the freebsd-ports mailing list