one or more patch files / optional patch ?

Kris Kennaway kris at obsecurity.org
Thu Feb 26 13:25:40 PST 2004


On Thu, Feb 26, 2004 at 11:23:58PM +0200, Ion-Mihai Tetcu wrote:
> Hi,
> 
> 
> The Porters Handbook says "To make fixes and upgrades easier, you should
> avoid having more than one patch fix the same file"; I'm in the reverse
> situation, e.g. I have to patch 4 files for adding a feature to a port.
> It will only make sense to patch all the files or none. Should the patch
> be split in 4 files or not ?

Yes, I think this is also documented in the porter's handbook.  It's a
real pain in the ass to update patches when there's more than one
patch per file.

> I also want to use OPTIONS to allow the user to choose if he wants this
> feature or not. How can I integrate this with patch target (e.g. having
> the patch in files/ but only applied if WITH_ is set) ?

EXTRA_PATCHES

Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20040226/a3027bde/attachment.bin


More information about the freebsd-ports mailing list