From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Mi4Gz-0003Zx-Bp for garchives@archives.gentoo.org; Mon, 31 Aug 2009 10:38:05 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 88C8CE071E; Mon, 31 Aug 2009 15:46:57 +0000 (UTC) Received: from mail-vw0-f175.google.com (mail-vw0-f175.google.com [209.85.212.175]) by pigeon.gentoo.org (Postfix) with ESMTP id 650DBE071E for ; Mon, 31 Aug 2009 15:46:57 +0000 (UTC) Received: by vws5 with SMTP id 5so2575283vws.32 for ; Mon, 31 Aug 2009 08:46:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type:content-transfer-encoding; bh=K32Hw/0Ivpvd/Em1GEazMkRKJFRjjKu6WIFkl6Mr4nU=; b=xsJUhUbTPKYVEquVzaigM1VPQ8w1w57Kr1y6ozFcPROGNv7/O8aO5rQwPVu+DTSQGJ iAlu46qiW+IdcOiHOS3IQZOejYAe7sblw+XmiDUu8KS/CSIitJmRATwqje+f/GrgdLm6 VafcHYauoPveQJ+yYjlRUUJYDGrD8VJF3lIVQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=PKgb7PEgnUoibfNGlMQQ3m0zK3F8Ns3KLXIMKA78wbE6BsaiICKJlQA4r1dE8AtviQ E80P3DGAp1UMgo5JAxYrzc5KksiHilp+ZFBJiBf5vZPrrb/6WcKCb/bQk4CV2H9wdMqb L3Yas3lsk0B+UJJarLwDwfn2FQudMu5SuPbqA= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Sender: jer.gentoo@gmail.com Received: by 10.220.108.102 with SMTP id e38mr6484447vcp.71.1251733616936; Mon, 31 Aug 2009 08:46:56 -0700 (PDT) In-Reply-To: <20090830154520.GA32569@linux1> References: <200908301611.53087.zzam@gentoo.org> <8b4c83ad0908300746s345728ekdff7fd710bda566a@mail.gmail.com> <20090830154520.GA32569@linux1> Date: Mon, 31 Aug 2009 10:46:56 -0500 X-Google-Sender-Auth: 66340da616dcc02a Message-ID: <90b936c0908310846s4b398761x154d464242fedb3e@mail.gmail.com> Subject: Re: [gentoo-dev] About udev-145: new features / extras and kernel requirements From: Jeremy Olexa To: gentoo-dev@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: b35645e4-367b-4d55-8c81-57f875345096 X-Archives-Hash: ee056af982edf3a26642749b9e9afe35 On Sun, Aug 30, 2009 at 10:45 AM, William Hubbs wrote: > On Sun, Aug 30, 2009 at 08:16:47PM +0530, Nirbheek Chauhan wrote: >> On Sun, Aug 30, 2009 at 7:41 PM, Matthias Schwarzott wr= ote: >> > Hi there! >> > >> > The new udev-145 and newer have some new kernel requirements. How shou= ld the >> > ebuild verify they are met? >> > Some possible ways: >> > 1. Check config under /usr/src/linux >> > 2. Check /proc/config.gz >> > 3. Print message for user in pkg_postinst >> > >> >> ebuilds usually use linux-info.eclass for this, but that only checks >> /usr/src/linux -- although checking /proc/config.gz *as well* would be >> better. That change should be made in the eclass. > > =C2=A0I agree here. =C2=A0The eclass should check /proc/config.gz. > =C2=A0Also, another reason to use the eclass is it respects KBUILD_OUTPUT= if > =C2=A0it is set. > > If /proc/config.gz is the first thing we check, I don't think we need to > bother at all with checking .config since we know the setup of the > running kernel. =C2=A0What does everyone think? William, not picking on you, just replying in general. People that suggest to only check /proc/config.gz only are pretty crazy considering that file is a tunable option. What if the user has CONFIG_IKCONFIG_PROC=3Dn?? The ebuild fails?! Of course, I haven't seen any code yet, so maybe people are just suggesting to check config.gz if is exists, then proceed via other means? ;-) -Jeremy