From owner-freebsd-questions@FreeBSD.ORG Mon Jan 23 18:04:00 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 741F7106566C for ; Mon, 23 Jan 2012 18:04:00 +0000 (UTC) (envelope-from max@mxcrypt.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 342138FC0A for ; Mon, 23 Jan 2012 18:03:59 +0000 (UTC) Received: by vbbey12 with SMTP id ey12so3150103vbb.13 for ; Mon, 23 Jan 2012 10:03:59 -0800 (PST) Received: by 10.52.71.176 with SMTP id w16mr4481897vdu.47.1327341839344; Mon, 23 Jan 2012 10:03:59 -0800 (PST) MIME-Version: 1.0 Received: by 10.220.118.144 with HTTP; Mon, 23 Jan 2012 10:03:27 -0800 (PST) From: Maxim Khitrov Date: Mon, 23 Jan 2012 13:03:27 -0500 Message-ID: To: FreeBSD X-Gm-Message-State: ALoCoQlEpH396hc1FL2p70nwrI30ks4aHgewgp+ADGDI2ElNEhtnx0YHcGP/KDfjb2f0CHAhiOAh Content-Type: text/plain; charset=UTF-8 Subject: Applying local patches after updating FreeBSD source X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Jan 2012 18:04:00 -0000 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