Applying local patches after updating FreeBSD source
m.seaman at infracaninophile.co.uk
Mon Jan 23 18:25:50 UTC 2012
On 23/01/2012 18:03, Maxim Khitrov wrote:
> 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
> 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?
Check the system sources out of svn?
This way, you can apply your patches and the result is automatically
merged when you update the sources by 'svn up' -- unless there has been
a conflicting commit to the same file, when you may be required to
Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matthew at infracaninophile.co.uk Kent, CT11 9PW
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 267 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20120123/88bdd38c/signature.pgp
More information about the freebsd-questions