Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Nov 2007 03:20:11 +0000
From:      RW <fbsd06@mlists.homeunix.com>
To:        freebsd-questions@freebsd.org
Cc:        bob@tania.servebbs.org
Subject:   Re: Personalised patches in ports
Message-ID:  <20071123032011.57dcfc96@gumby.homeunix.com.>
In-Reply-To: <20071121221955.10f80f09@tania.servebbs.org>
References:  <20071121221955.10f80f09@tania.servebbs.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 21 Nov 2007 22:19:55 +0000
Bob <bob@tania.servebbs.org> 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




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