On Wed, Oct 01, 2008 at 11:37:29AM +0100, Tamar Lea wrote: > Hello all > > I am trying to install the php 5.2.6 port with thttpd. I have a patch file > to make it compile with version 2.25b, because the standard version only > works with 2.21. The patch works but the files always get overwritten when I > run the build again. How do I do this? > > These are the commands I used > > cd /usr/ports/lang/php5 > make extract > make patch > cd work > patch -p0 < ~/ports/thttpd.diff > vi php-5.2.6/configure # and other checks to see if the patch worked > cd .. > make install > > This results in an error in the configure file, which has reverted to the > original. What am I doing wrong?
Never modify "configure" scripts. You need to modify the autoconf template the configure script is built off of. In the case of lang/php5, autoconf is run to build the configure script during the "make configure" stage (which is being executed during part of "make install"). Note the USE_AUTOTOOLS line in the Makefile. Make your changes to configure.in. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | _______________________________________________ firstname.lastname@example.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"