Date: Tue, 23 Jul 2002 20:11:08 -0400 From: "Brian T. Schellenberger" <bts@babbleon.org> To: "Jon Reynolds" <jonr@destar.net>, <freebsd-questions@FreeBSD.ORG> Subject: Re: howto apply a diff file Message-ID: <200207232011.08234.bts@babbleon.org> In-Reply-To: <IMEDIGOECABKBHJDKLNOIEGNCCAA.jonr@destar.net> References: <IMEDIGOECABKBHJDKLNOIEGNCCAA.jonr@destar.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <name of package> # eg, pkg_info 'php*' to verify pkg_delete <name of package> # what this will do cd /usr/ports/*/<name of port> # if ambiguous, figure out which you want make patch cd work cd <directory you find there where the source code lives> path < diff-file cd /usr/ports/*/<name of port> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207232011.08234.bts>