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 1Mhgr8-0002jp-1V for garchives@archives.gentoo.org; Sun, 30 Aug 2009 09:37:50 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 07E38E0854; Sun, 30 Aug 2009 14:46:48 +0000 (UTC) Received: from mail-iw0-f203.google.com (mail-iw0-f203.google.com [209.85.223.203]) by pigeon.gentoo.org (Postfix) with ESMTP id E4707E0854 for ; Sun, 30 Aug 2009 14:46:47 +0000 (UTC) Received: by iwn41 with SMTP id 41so1457189iwn.32 for ; Sun, 30 Aug 2009 07:46:47 -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; bh=NdlT0WqTNyB2N0pRFMbUagLAwUchu6AkAkIIHipY4rM=; b=ulud1oGVa2hirYc2EkvueoBTDPK7sHJOBbdDatFaKHesX3FbHpi8ghu0WV/JoiNPPx H/QBtBQQECmxOwy0jfDU6oXXGdnzkcVdFJxPih/iZwXwDcuILa/VfhGQAc7ZUu9xWE8q c9nsJeKqhqrtSrFZB2GH2uQKoeelcuM9BTQ9E= 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; b=DdKu9HKf1JbQB3z3TWb9rfPJVRDGCSJkVtsK8dAYmcNDNshc1S1GlaAHoWaxZOsJex H0Du97wWL884pzPTdSUBV3wOEfjdaTuMsitzfWXVZLFvpwj7zOYNsqXpCN9HggZqp6rM 21HwqlXNW8qRSNtzbdGvmBj/Y4LgJcGyBwC58= 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: nirbheek.chauhan@gmail.com Received: by 10.231.81.148 with SMTP id x20mr5000516ibk.2.1251643607402; Sun, 30 Aug 2009 07:46:47 -0700 (PDT) In-Reply-To: <200908301611.53087.zzam@gentoo.org> References: <200908301611.53087.zzam@gentoo.org> Date: Sun, 30 Aug 2009 20:16:47 +0530 X-Google-Sender-Auth: f85c0704f0b4a3bb Message-ID: <8b4c83ad0908300746s345728ekdff7fd710bda566a@mail.gmail.com> Subject: Re: [gentoo-dev] About udev-145: new features / extras and kernel requirements From: Nirbheek Chauhan To: gentoo-dev@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 X-Archives-Salt: cc0df5d4-90ee-464f-ada5-994110e15fac X-Archives-Hash: 9118a8f5325e6af55098e6a0f04a516a On Sun, Aug 30, 2009 at 7:41 PM, Matthias Schwarzott wrote: > Hi there! > > The new udev-145 and newer have some new kernel requirements. How should 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. Personally, I would also add an ewarn into pkg_postinst to prevent users from blundering into a broken system. > Second point: udev-145 bundles a lot of new extras, but they can only be > enabled/disabled all or nothing. > Eww. I suppose upstream is not open to making it a bit more granular? > These extras are: > * udev-acl: Apply consolekit permissions to devices for users (audio, video, > joysticks, scanner, cameras, ...) This looks very useful for desktop users. As long as it doesn't pull in ConsoleKit itself, enabling this by default should not be a problem. > * usb-db: Provide udev-rules with device names of pci and usb devices What are the consumers of this? > * hid2hci: Special utility to fix resume of some hid devices If the consumer of this is pm-suspend, pm-hibernate etc, I say enable by default. > * keymap: Auto-configure model specific keys found on many laptops > ("brightness up", "next song", "www browser", or "suspend") This should be enabled by default, especially since HAL is getting deprecated, and everything using HAL for this stuff will have to turn to udev (X, gnome, kde) > * gudev: glib/gobject support for libudev > This is the interface almost everything is going to turn to with GNOME 2.28 (via DeviceKit-power and DeviceKit-disks in most cases). By the time GNOME 2.30 and 3.0 are released, (theoretically) nothing will use HAL. I believe there are ongoing efforts to port X to use udev/gudev instead of HAL, as well as KDE[1] > This makes udev depend on these libs: > libacl, libglib2, libusb, usbutils, pciutils, gperf > > Up to now I have just added use-flag "extras" to control these. But I suppose > that udev-acl and maybe gudev is a hard requirement for newer hal or > devicekit versions. And upstream thinks these should be enabled by default. There are no "new" versions of HAL anymore (it's gone into maintenance mode), but all current DeviceKit-{power,disks} versions *need* gudev. In summation, I say hard-enable these: acl, keymap, hid2hci Put "gudev" under a USE-flag, enabled by +use, and put the rest under "extras", not enabled by default. 1. http://fedoraproject.org/wiki/KDE_Programming_Wishlist -- ~Nirbheek Chauhan GNOME+Mozilla Team, Gentoo