From owner-freebsd-questions@FreeBSD.ORG Fri Nov 23 03:46:58 2007 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 303A216A419 for ; Fri, 23 Nov 2007 03:46:58 +0000 (UTC) (envelope-from fbsd06+QQ=612dd791@mlists.homeunix.com) Received: from turtle-out.mxes.net (turtle-out.mxes.net [216.86.168.191]) by mx1.freebsd.org (Postfix) with ESMTP id 1E17B13C447 for ; Fri, 23 Nov 2007 03:46:58 +0000 (UTC) (envelope-from fbsd06+QQ=612dd791@mlists.homeunix.com) Received: from mxout-04.mxes.net (mxout-04.mxes.net [216.86.168.179]) by turtle-in.mxes.net (Postfix) with ESMTP id 28C7A1643FE for ; Thu, 22 Nov 2007 22:20:23 -0500 (EST) Received: from gumby.homeunix.com. (unknown [87.81.140.128]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTP id 9549CD0501; Thu, 22 Nov 2007 22:20:14 -0500 (EST) Date: Fri, 23 Nov 2007 03:20:11 +0000 From: RW To: freebsd-questions@freebsd.org Message-ID: <20071123032011.57dcfc96@gumby.homeunix.com.> In-Reply-To: <20071121221955.10f80f09@tania.servebbs.org> References: <20071121221955.10f80f09@tania.servebbs.org> X-Mailer: Claws Mail 3.0.2 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: bob@tania.servebbs.org Subject: Re: Personalised patches in ports 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: Fri, 23 Nov 2007 03:46:58 -0000 On Wed, 21 Nov 2007 22:19:55 +0000 Bob wrote: > > Hi folks: > > What is the approved method of applying personalised patches to ports > sources? > > A current example, which was no problem under Linux, is giving me a > bit of a hassle under FreeBSD> > > I use pdftotext extensively to translate pdf files to ascii text. > Sometimes, a publicly posted PDF file has it's security option turned > on, making pdftotext refuse to translate the file into text. > > It's a simple hack on the source code to skip security checking, and > under Linux I just patch the sources to not check for same. > > How can I incorporate my patch into the portupgrade system, so that an > upgrade of Xpdf will apply my patch? If I download the bzip file, > apply the patch, re-bzip the sources, and then try to force an > upgrade, the checksum fails (as expected). > > How does one do thes properly? It's actually much easier than in Linux, since the ports system already has to do this. Each port has a files directory into which you can put patches, which will get applied automatically each time you build. See the porter's handbook for details: http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/slow-patch.html