From owner-freebsd-questions@FreeBSD.ORG Fri Jan 4 06:06:44 2008 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 4A95F16A417 for ; Fri, 4 Jan 2008 06:06:44 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.176]) by mx1.freebsd.org (Postfix) with ESMTP id 054AA13C458 for ; Fri, 4 Jan 2008 06:06:43 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: by py-out-1112.google.com with SMTP id u52so10908623pyb.10 for ; Thu, 03 Jan 2008 22:06:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=iB3cgLaC48vMbV1kHtNRVv0Nw4Y+QYgvXuPzRsDYpQc=; b=GH6LsuF2Owd57iHrauloK8k6A7WwYMR5ZY34hVmrjusnK7kg8fgCoe4hdIbhfyG9WHlKYD7sx5ARexWqBiYVrhtmWRVUwLNtOVPnCdULM4VPhToorbwOfa+EiVhFsKvTRDQYrn4t2zQxCX0o/1OSID15/3iyHC4DbgMg1yhq4ME= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=R/WJ99rjXaKeIsVBqK2dgjRrPix8zUpZPzQBNCZu9GaRBU5N75AXDx/GbRazJzujYHuWABUziFivCHK+gr/ZAKZECGgLK7HyxEgmBYvckNRIFdJVonpuvHYAIVBNVnHXc1I2mK1749U0cUid9j1ORAGDzhimChXtV87/PhkvkCc= Received: by 10.65.219.20 with SMTP id w20mr34226827qbq.5.1199426802835; Thu, 03 Jan 2008 22:06:42 -0800 (PST) Received: by 10.65.105.13 with HTTP; Thu, 3 Jan 2008 22:06:42 -0800 (PST) Message-ID: Date: Fri, 4 Jan 2008 01:06:42 -0500 From: "Aryeh Friedman" To: RW In-Reply-To: <20080104050838.6d47a662@gumby.homeunix.com.> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <5a1835cd0801031653u34943657x76b80c53ec2a0ae1@mail.gmail.com> <20080104050838.6d47a662@gumby.homeunix.com.> Cc: freebsd-questions@freebsd.org Subject: Re: How to patch the kernel? 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: Fri, 04 Jan 2008 06:06:44 -0000 On 1/4/08, RW wrote: > On Thu, 3 Jan 2008 19:53:18 -0500 > "Lyle Scott III" wrote: > > > I don't have much experience patching anything, really. > > > > I was told by the port security/ipsec-tools to patch the kernel if i > > wanted to use nat-transversals. > > > > they provide me with > > http://vanhu.free.fr/FreeBSD/patch-natt-freebsd6-2007-05-31.diff, but > > I am now sure how to patch up the kernel so I can do a buildworld. > > > > Any help would be much appreciated. I took a quick read over the > > patch manpage, but simply 'patch < file' in /usr/src askes me what > > file to patch... > > Try /usr/src/sys/ instead, that's where the kernel source is. > > _______________________________________________ Keep in mind the next time you do a cvsup it will nuke the patch so you will have to reapply it... now if you do this often enough you might want to consider keeping a local cvs repository that way when you update your sources it will not overwrite the patch... see develop(8) for some ideas on how to set this up (even though the source tree layout they suggest is a little weird you just better off doing cvs -d /home/ncvs update in /usr/src)