From owner-freebsd-current@FreeBSD.ORG Thu Nov 24 18:47:58 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BDEFE16A41F; Thu, 24 Nov 2005 18:47:58 +0000 (GMT) (envelope-from nate@root.org) Received: from www.cryptography.com (li-22.members.linode.com [64.5.53.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id EB83643D53; Thu, 24 Nov 2005 18:47:57 +0000 (GMT) (envelope-from nate@root.org) Received: from [10.0.5.50] (ppp-71-139-30-140.dsl.snfc21.pacbell.net [71.139.30.140]) by www.cryptography.com (8.12.8/8.12.8) with ESMTP id jAOIlwZM032076 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 24 Nov 2005 10:48:00 -0800 Message-ID: <43860AD3.7090608@root.org> Date: Thu, 24 Nov 2005 10:47:47 -0800 From: Nate Lawson User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Mathieu Prevot References: <4383C083.6010300@root.org> <4383D58C.5040004@samsco.org> <20051123024911.GA99513@polands.org> <20051123144850.GA1613@polands.org> <74C4FED8-AFD1-4375-A875-438827BECC57@club-internet.fr> In-Reply-To: <74C4FED8-AFD1-4375-A875-438827BECC57@club-internet.fr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: Doug Poland , acpi@freebsd.org, FreeBSD Current Subject: Re: Build just one module (was Re: [Fwd: cvs commit: src/sys/dev/acpica acpi_cmbat.c]) 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: Thu, 24 Nov 2005 18:47:58 -0000 Mathieu Prevot wrote: > > Le 23 nov. 05 à 15:48, Doug Poland a écrit : > >> On Wed, Nov 23, 2005 at 11:49:20AM +0100, Mathieu Prevot wrote: >> >>> >>> Le 23 nov. 05 ? 03:49, Doug Poland a ?crit : >>> >>>>> Nate Lawson wrote: >>>>> >>>>>> Here is a patch that should fix the battery hangs on RELENG_6. It >>>>>> was tested to work fine, although I need testing from an affected >>>>>> user to verify it fixes the problem. It was committed to HEAD and >>>>>> will be MFCed if it fixes the problem. >>>>>> >>>> My Dell C600 is affected by this problem. I'm running 6.0-STABLE and >>>> would be glad to test the patch. Since I don't run patches often, if >>>> someone could point me to a doc on how to apply the patch, I'd >>>> appreciate it. >>> >>> You should think man 'subject', Unix for the impatient or google and >>> find things like: >>> >>> patch -i patchfile filetopatch >>> patch>> >> Thank you, that part is fairly obvious. What I'm unsure of is where in >> the source tree do I apply that patch from, and, must I to rebuild >> world, or just the affected part of sys/dev. > > > Try and see for the patch. 'patch -i patchfile filetopatch' works from > anywhere. > I don't think you need to rebuild world. I think you can just build > acpi module but I don't know how. > You may glance at /usr/src/Makefile* ... Look at the path in the patch start. If it's "sys/dev", then patch from your src dir. If it's "src/sys/dev", patch from above the src dir. If it's just "file.c", then you have to find file.c and patch from there (but few people generate diffs this way, it's bad form). For acpi, then just: cd /sys/modules/acpi/acpi && make && cp acpi.ko / Then at the loader prompt: load /acpi.ko You don't want to use "make install", otherwise you overwrite your known good acpi.ko -- Nate