From owner-freebsd-questions Tue Jul 23 19:18:35 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EA8F237B400 for ; Tue, 23 Jul 2002 19:18:31 -0700 (PDT) Received: from mail8.nc.rr.com (fe8.southeast.rr.com [24.93.67.55]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4AB1D43E42 for ; Tue, 23 Jul 2002 19:18:31 -0700 (PDT) (envelope-from bts@fake.com) Received: from this.is.fake.com ([66.26.254.93]) by mail8.nc.rr.com with Microsoft SMTPSVC(5.5.1877.757.75); Tue, 23 Jul 2002 22:17:58 -0400 Received: by this.is.fake.com (Postfix, from userid 111) id 985AFBA12; Tue, 23 Jul 2002 22:17:54 -0400 (EDT) Content-Type: text/plain; charset="iso-8859-1" From: "Brian T. Schellenberger" To: "Jon Reynolds" , Subject: Re: howto apply a diff file Date: Tue, 23 Jul 2002 22:17:53 -0400 User-Agent: KMail/1.4.2 References: <200207232011.08234.bts@babbleon.org> In-Reply-To: <200207232011.08234.bts@babbleon.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200207232217.53956.bts@babbleon.org> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tuesday 23 July 2002 08:11 pm, Brian T. Schellenberger wrote: | On Tuesday 23 July 2002 06:19 pm, Jon Reynolds wrote: | | I am new to freebsd and I need to update PHP because of the security hole | | found in it. I believe that I can use a diff file to update it without | | having to completely redownload and recompile it, is this right? I also | | have never tried this before and I can't find good documentation on how | | to do it. Can someone point me to a good doc or howto? | | No, a diff file applies to source, not exeutable, so if you have a diff | file, you'll need to get the source. | | I recommend the following: | | pkg_info # eg, pkg_info 'php*' to verify | pkg_delete # what this will do | | cd /usr/ports/*/ # if ambiguous, figure out which you want | make patch | cd work | cd | path < diff-file oops! That should be "patch < diff-file" | cd /usr/ports/*/ | make install | | That said, it's entirely likely that this will have already been applied to | the port, in which case you can just cvsup (or just grab the updated port | from the FTP site), and then | | pkg_delete 'foo*' | cd /usr/ports/*/whatever | make install | | | Jon | | | | | | To Unsubscribe: send mail to majordomo@FreeBSD.org | | with "unsubscribe freebsd-questions" in the body of the message -- Brian, the man from Babble-On . . . . bts@babbleon.org (personal) http://www.babbleon.org http://www.eff.org http://www.programming-freedom.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message