Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Jan 2012 13:03:27 -0500
From:      Maxim Khitrov <max@mxcrypt.com>
To:        FreeBSD <freebsd-questions@freebsd.org>
Subject:   Applying local patches after updating FreeBSD source
Message-ID:  <CAJcQMWeYb8joYx7tPCcCqDEhXAKmzucNpHjO5YNrAxTN_jze3w@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi all,

When I need to apply a custom patch to a port, I can set EXTRA_PATCHES
make variable in /usr/local/etc/ports.conf (when using portconf), and
the patch will be automatically applied whenever that port is built.
Is there equivalent functionality for building FreeBSD world and
kernel?

When I run 'make update' in /usr/src, csup overwrites all local
changes. There is a LOCAL_PATCHES variable, but it seems to apply only
to 'make release'.

If possible, I would like to avoid writing custom scripts for updating
and building world, because at some point I will forget to use the
script and build everything without the patches. How can I preserve
the current behavior of running 'make update && make buildworld
buildkernel' while automatically applying custom patches in between?

- Max



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