Gentoo Archives: gentoo-dev

From: Bruno <bonbons67@××××××××.lu>
To: gentoo-dev@l.g.o
Cc: zzam@g.o
Subject: Re: [gentoo-dev] About udev-145: new features / extras and kernel requirements
Date: Sun, 30 Aug 2009 09:56:55
Message-Id: 20090830170505.150f6242@neptune.home
In Reply to: [gentoo-dev] About udev-145: new features / extras and kernel requirements by Matthias Schwarzott
1 On Sun, 30 August 2009 Matthias Schwarzott <zzam@g.o> wrote:
2 > The new udev-145 and newer have some new kernel requirements. How
3 > should the ebuild verify they are met?
4 > Some possible ways:
5 > 1. Check config under /usr/src/linux
6
7 /usr/src/linux is not the best place to look at...
8
9 Checks should rather be done on first kernel config found in following
10 locations (checked in this order):
11 - KBUILD_OUTPUT
12 - KERNEL_DIR
13 - /usr/src/linux, /proc/config.gz, /lib/modules/$(uname -r)/build/.config
14
15 Maybe just use linux-info eclass for the checks
16
17 > 2. Check /proc/config.gz
18
19 This should rather happen in init script, if possible do not check
20 on every boot but only when a "new" kernel is used (e.g. when uname
21 output changes)
22
23 > 3. Print message for user in pkg_postinst
24
25 This makes sense in any case.
26
27 > Second point: udev-145 bundles a lot of new extras, but they can only
28 > be enabled/disabled all or nothing.
29 >
30 > These extras are:
31 > * udev-acl: Apply consolekit permissions to devices for users (audio,
32 > video, joysticks, scanner, cameras, ...)
33
34 Is this bound to consolekit or does it rather fall under 'acl' use-flag?
35 I guess this includes a kernel requirement (ACL support for tmpfs)
36
37 > * usb-db: Provide udev-rules with device names of pci and usb devices
38 > * hid2hci: Special utility to fix resume of some hid devices
39 > * keymap: Auto-configure model specific keys found on many laptops
40 > ("brightness up", "next song", "www browser", or "suspend")
41 > * modem-modeswitch: Switch modems that provide virtual cd-drive with
42 > drivers to modem mode
43 > * gudev: glib/gobject support for libudev
44
45 Is gudev just a binding or is it more? If it's just a binding it may
46 be nice to have it tied to a use-flag.
47
48 > This makes udev depend on these libs:
49 > libacl, libglib2, libusb, usbutils, pciutils, gperf
50
51 Bruno

Replies