From owner-freebsd-hackers@FreeBSD.ORG Sat Sep 27 12:52:18 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A0FB216A4B3 for ; Sat, 27 Sep 2003 12:52:18 -0700 (PDT) Received: from falcon.midgard.homeip.net (h76n3fls24o1048.bredband.comhem.se [213.67.148.76]) by mx1.FreeBSD.org (Postfix) with SMTP id 4DF0A44030 for ; Sat, 27 Sep 2003 12:52:15 -0700 (PDT) (envelope-from ertr1013@student.uu.se) Received: (qmail 40699 invoked by uid 1001); 27 Sep 2003 19:52:13 -0000 Date: Sat, 27 Sep 2003 21:52:13 +0200 From: Erik Trulsson To: "Walter C. Pelissero" Message-ID: <20030927195213.GA40669@falcon.midgard.homeip.net> Mail-Followup-To: "Walter C. Pelissero" , questions@freebsd.org, hackers@freebsd.org References: <16245.50389.246629.356670@hyde.home.loc> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <16245.50389.246629.356670@hyde.home.loc> User-Agent: Mutt/1.5.4i cc: hackers@freebsd.org cc: questions@freebsd.org Subject: Re: auto-patching the system X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Sep 2003 19:52:18 -0000 On Sat, Sep 27, 2003 at 07:11:49PM +0200, Walter C. Pelissero wrote: > I keep my src tree updated with cvsup, but I start to accumulate > patches to kernel or programs that I'd like to include automatically > each time I recompile the kernel (pretty often) or I do a "make world" > (much less often). > > Those are usually patches that have been already put forward to the > attention of the maintainers with a send-pr, but got forgotten or > simply ignored possibly because considered not interesting. > > At the moment I simply manually copy the modified files into the > source tree before recompiling, but, of course, next time I do a > cvsup, the changes are gone, requiring me to repeat the process next > time I compile (and likely forgetting some stuff). > > Is there already any pre-canned way to include those patches at > compile time? (A parallel source tree, for instance.) There are probably more than one way to keep local patches to the source, but the way I do it is: Use cvsup to get a local copy of the whole cvs repository (instead of just a checked out source tree). Then use cvs to check out the source tree from the local repository. Unlike cvsup, cvs knows how to handle local modifications. -- Erik Trulsson ertr1013@student.uu.se