Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Oct 2008 04:06:56 -0700
From:      Jeremy Chadwick <koitsu@FreeBSD.org>
To:        Tamar Lea <tamarlea@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Patching php port
Message-ID:  <20081001110656.GA18892@icarus.home.lan>
In-Reply-To: <1ab57dc80810010337i646141e2hfabf00cf2aae186c@mail.gmail.com>
References:  <1ab57dc80810010337i646141e2hfabf00cf2aae186c@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 |




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