Locally modifying ports

Fabian Keil freebsd-listen at fabiankeil.de
Tue Jul 24 10:14:50 UTC 2012


Chris Ross <cross+freebsd at distal.com> wrote:

>   So, I've been a NetBSD user for many years, and am looking more
> at FreeBSD now.  Trying to build myself a system, I find that I have a
> long-held delta to a package on my NetBSD system, and I keep it
> in a patch-local-* file in NetBSD pkgsrc.
> 
>   I can't figure out if FreeBSD ports has a way to keep and automatically
> apply "local" patches to ports.  I want to modify the way the internals of
> a package/port operate, and not in a way that makes sense to move up-
> stream.  It's just my preference.
> 
>   Is there a way in FreeBSD ports to keep a "make this change to the
> source code after extracting and before compiling" type of thing in the
> tree?

I'm not aware of something similar to pkgsrc's $LOCALPATCHES, but you
can still drop local patches in the "files" directory of the port:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/slow-patch.html

Fabian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20120724/564a8ea8/signature.pgp


More information about the freebsd-questions mailing list