Date: Mon, 23 Jan 2012 18:25:36 +0000 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: freebsd-questions@freebsd.org Subject: Re: Applying local patches after updating FreeBSD source Message-ID: <4F1DA620.4040207@infracaninophile.co.uk> In-Reply-To: <CAJcQMWeYb8joYx7tPCcCqDEhXAKmzucNpHjO5YNrAxTN_jze3w@mail.gmail.com> References: <CAJcQMWeYb8joYx7tPCcCqDEhXAKmzucNpHjO5YNrAxTN_jze3w@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig303616463F4D261D525AECAB Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 23/01/2012 18:03, Maxim Khitrov wrote: > Hi all, >=20 > 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? >=20 > 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'. >=20 > 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 intervene manually. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matthew@infracaninophile.co.uk Kent, CT11 9PW --------------enig303616463F4D261D525AECAB Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk8dpigACgkQ8Mjk52CukIyjjQCffSsx9hpB7U66IPaJZWWlc3Bf Uq8AoJBAX6bCdhKvLPQ6aDrNFGXdzwGf =mjq7 -----END PGP SIGNATURE----- --------------enig303616463F4D261D525AECAB--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F1DA620.4040207>