From owner-freebsd-questions@FreeBSD.ORG Wed Oct 1 11:06:58 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1C827106568C for ; Wed, 1 Oct 2008 11:06:58 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from QMTA03.emeryville.ca.mail.comcast.net (qmta03.emeryville.ca.mail.comcast.net [76.96.30.32]) by mx1.freebsd.org (Postfix) with ESMTP id F29248FC2D for ; Wed, 1 Oct 2008 11:06:57 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from OMTA13.emeryville.ca.mail.comcast.net ([76.96.30.52]) by QMTA03.emeryville.ca.mail.comcast.net with comcast id MNuA1a00F17UAYkA3P6xyr; Wed, 01 Oct 2008 11:06:57 +0000 Received: from koitsu.dyndns.org ([67.180.253.227]) by OMTA13.emeryville.ca.mail.comcast.net with comcast id MP6w1a00B4v8bD78ZP6wl6; Wed, 01 Oct 2008 11:06:57 +0000 X-Authority-Analysis: v=1.0 c=1 a=QycZ5dHgAAAA:8 a=R0ikAQTG7sBKjufbhrsA:9 a=E5k5rRuyRk9UAEVKLh4xEJIkZdsA:4 a=EoioJ0NPDVgA:10 a=LY0hPdMaydYA:10 Received: by icarus.home.lan (Postfix, from userid 1000) id 8D96CC9432; Wed, 1 Oct 2008 04:06:56 -0700 (PDT) Date: Wed, 1 Oct 2008 04:06:56 -0700 From: Jeremy Chadwick To: Tamar Lea Message-ID: <20081001110656.GA18892@icarus.home.lan> References: <1ab57dc80810010337i646141e2hfabf00cf2aae186c@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1ab57dc80810010337i646141e2hfabf00cf2aae186c@mail.gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-questions@freebsd.org Subject: Re: Patching php port X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Oct 2008 11:06:58 -0000 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 |