Gentoo Archives: gentoo-dev

From: William Hubbs <williamh@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] About udev-145: new features / extras and kernel requirements
Date: Sun, 30 Aug 2009 10:36:32
Message-Id: 20090830154520.GA32569@linux1
In Reply to: Re: [gentoo-dev] About udev-145: new features / extras and kernel requirements by Nirbheek Chauhan
1 On Sun, Aug 30, 2009 at 08:16:47PM +0530, Nirbheek Chauhan wrote:
2 > On Sun, Aug 30, 2009 at 7:41 PM, Matthias Schwarzott<zzam@g.o> wrote:
3 > > Hi there!
4 > >
5 > > The new udev-145 and newer have some new kernel requirements. How should the
6 > > ebuild verify they are met?
7 > > Some possible ways:
8 > > 1. Check config under /usr/src/linux
9 > > 2. Check /proc/config.gz
10 > > 3. Print message for user in pkg_postinst
11 > >
12 >
13 > ebuilds usually use linux-info.eclass for this, but that only checks
14 > /usr/src/linux -- although checking /proc/config.gz *as well* would be
15 > better. That change should be made in the eclass.
16
17 I agree here. The eclass should check /proc/config.gz.
18 Also, another reason to use the eclass is it respects KBUILD_OUTPUT if
19 it is set.
20
21 If /proc/config.gz is the first thing we check, I don't think we need to
22 bother at all with checking .config since we know the setup of the
23 running kernel. What does everyone think?
24
25 --
26 William Hubbs
27 gentoo accessibility team lead
28 williamh@g.o

Replies