From owner-freebsd-current@FreeBSD.ORG Mon Sep 1 05:41:16 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9CFF01065677 for ; Mon, 1 Sep 2008 05:41:16 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mta3.srv.hcvlny.cv.net (mta3.srv.hcvlny.cv.net [167.206.4.198]) by mx1.freebsd.org (Postfix) with ESMTP id 756B48FC1A for ; Mon, 1 Sep 2008 05:41:16 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from flosoft.no-ip.biz (ool-435559b8.dyn.optonline.net [67.85.89.184]) by mta3.srv.hcvlny.cv.net (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTP id <0K6I00B2G3QRGAE0@mta3.srv.hcvlny.cv.net> for freebsd-current@freebsd.org; Mon, 01 Sep 2008 01:11:16 -0400 (EDT) Received: from flosoft.no-ip.biz (localhost [127.0.0.1]) by flosoft.no-ip.biz (8.14.3/8.14.3) with ESMTP id m8119b4Z085331; Sun, 31 Aug 2008 21:09:38 -0400 Date: Sun, 31 Aug 2008 21:09:37 -0400 From: "Aryeh M. Friedman" In-reply-to: <5fb5cdcd0808312001k419cd735r55c37a15f5f76ab5@mail.gmail.com> To: Tony Sim Message-id: <48BB40D1.4030104@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT References: <5fb5cdcd0808312001k419cd735r55c37a15f5f76ab5@mail.gmail.com> User-Agent: Thunderbird 2.0.0.16 (X11/20080824) Cc: freebsd-current@freebsd.org Subject: Re: Questions on how to use the Head files Pyun YongHyeon has created for re driver X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Sep 2008 05:41:16 -0000 Just to answer the basic question of how to apply a patch take a quick glance at the patch to determine: 1. Does it make sense to install it 2. Determine from what dir you need to install it from (the filenames will give a good clue) Then to apply it cd to that dir and do: patch -p < [file] where [file] is the filename of the patch (don't forget to reference its patch if needed also) If the patch is for something in /usr/src or /usr/src/sys use the normal methods of rebuilding world or the kernel. Disclaimer: c(v)sup will ignore the fact you patched a file and will overwrite it. You have two options at this point: 1. Repatch after csup is done [often hard to tell if you need to] 2. Use some variant of the method in development(8) to create your own local cvs repo of the source tree then update the actual /usr/src with cvs not c(v)sup because it understands how to preserve your changes while adding new content to the file