Re: [gentoo-dev] rfc: udev-rules.eclass

2012-07-13 Thread William Hubbs
All, mgorny has written a patch for udev, which if it gets accepted, will make it read rules from /lib/udev/rules.d, so there will be nothing that we need to do on our side at all. William pgpBzeeg8CYM1.pgp Description: PGP signature

Re: [gentoo-dev] rfc: udev-rules.eclass

2012-07-12 Thread Brian Dolbec
On Thu, 2012-07-12 at 12:30 -0400, Alexis Ballier wrote: > On Wed, 11 Jul 2012 20:41:04 -0700 > Brian Dolbec wrote: > > > On Wed, 2012-07-11 at 18:48 -0500, William Hubbs wrote: > > > On Wed, Jul 11, 2012 at 04:59:11PM -0400, Alexis Ballier wrote: > > > > How do you plan to handle the following:

Re: [gentoo-dev] rfc: udev-rules.eclass

2012-07-12 Thread Samuli Suominen
On 07/13/2012 12:01 AM, Samuli Suominen wrote: On 07/13/2012 12:04 AM, Michał Górny wrote: On Thu, 12 Jul 2012 22:58:29 +0300 Samuli Suominen wrote: On 07/11/2012 10:11 PM, William Hubbs wrote: All, I am about to release udev-186-r1, which will move everything currently in /lib/udev to /usr/

Re: [gentoo-dev] rfc: udev-rules.eclass

2012-07-12 Thread Samuli Suominen
On 07/13/2012 12:04 AM, Michał Górny wrote: On Thu, 12 Jul 2012 22:58:29 +0300 Samuli Suominen wrote: On 07/11/2012 10:11 PM, William Hubbs wrote: All, I am about to release udev-186-r1, which will move everything currently in /lib/udev to /usr/lib/udev. For packages that install udev rules

Re: [gentoo-dev] rfc: udev-rules.eclass

2012-07-12 Thread Michał Górny
On Thu, 12 Jul 2012 22:58:29 +0300 Samuli Suominen wrote: > On 07/11/2012 10:11 PM, William Hubbs wrote: > > All, > > I am about to release udev-186-r1, which will move everything > > currently in /lib/udev to /usr/lib/udev. > > > > For packages that install udev rules in ${FILESDIR}, we need an

Re: [gentoo-dev] rfc: udev-rules.eclass

2012-07-12 Thread Mike Gilbert
On Thu, Jul 12, 2012 at 3:58 PM, Samuli Suominen wrote: > Please don't hardcode the path like this, use pkg-config instead: > > inherit toolchain-funcs > > dir="$($(tc-getPKG_CONFIG) --variable=udevdir udev)/rules.d" > Heh, I didn't realize udev installed a pkg-config file for that. Nice.

Re: [gentoo-dev] rfc: udev-rules.eclass

2012-07-12 Thread Samuli Suominen
On 07/11/2012 10:11 PM, William Hubbs wrote: All, I am about to release udev-186-r1, which will move everything currently in /lib/udev to /usr/lib/udev. For packages that install udev rules in ${FILESDIR}, we need an eclass that tests the version of udev installed on the user's system and instal

Re: [gentoo-dev] rfc: udev-rules.eclass

2012-07-12 Thread Alexis Ballier
On Wed, 11 Jul 2012 19:50:42 -0700 Zac Medico wrote: > On 07/11/2012 07:25 PM, Rick "Zero_Chaos" Farina wrote: > > On 07/11/2012 07:48 PM, William Hubbs wrote: > >> On Wed, Jul 11, 2012 at 04:59:11PM -0400, Alexis Ballier wrote: > >>> How do you plan to handle the following: > >>> - foo installs

Re: [gentoo-dev] rfc: udev-rules.eclass

2012-07-12 Thread Alexis Ballier
On Wed, 11 Jul 2012 20:41:04 -0700 Brian Dolbec wrote: > On Wed, 2012-07-11 at 18:48 -0500, William Hubbs wrote: > > On Wed, Jul 11, 2012 at 04:59:11PM -0400, Alexis Ballier wrote: > > > How do you plan to handle the following: > > > - foo installs an udev rule > > > - install foo with old udev

Re: [gentoo-dev] rfc: udev-rules.eclass

2012-07-12 Thread Alexis Ballier
On Wed, 11 Jul 2012 18:48:08 -0500 William Hubbs wrote: > On Wed, Jul 11, 2012 at 04:59:11PM -0400, Alexis Ballier wrote: > > How do you plan to handle the following: > > - foo installs an udev rule > > - install foo with old udev > > - upgrade udev > > > > are rules installed by foo used by ne

Re: [gentoo-dev] rfc: udev-rules.eclass

2012-07-12 Thread Michał Górny
On Thu, 12 Jul 2012 10:34:56 -0400 Ian Stakenvicius wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > On 12/07/12 10:20 AM, Michał Górny wrote: > > On Thu, 12 Jul 2012 09:43:57 -0400 Ian Stakenvicius > > wrote: > > > >> -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 > >> > >> On

Re: [gentoo-dev] rfc: udev-rules.eclass

2012-07-12 Thread Ciaran McCreesh
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, 12 Jul 2012 10:34:12 -0400 Ian Stakenvicius wrote: > ..i'm not following this -- so it's common (ie, portage, paludis, etc > all use it) because it's always been there? It's sort of commonish because there's some disgusting code in some eclas

Re: [gentoo-dev] rfc: udev-rules.eclass

2012-07-12 Thread William Hubbs
On Thu, Jul 12, 2012 at 04:22:20PM +0200, Michał Górny wrote: > On Wed, 11 Jul 2012 14:11:42 -0500 > William Hubbs wrote: > > > # @FUNCTION: _udev_get_rulesdir > > # @INTERNAL > > # @DESCRIPTION: > > # Get unprefixed udev rules directory. > > _udev_get_rulesdir() { > > local dir > > if ha

Re: [gentoo-dev] rfc: udev-rules.eclass

2012-07-12 Thread Ian Stakenvicius
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 12/07/12 10:20 AM, Michał Górny wrote: > On Thu, 12 Jul 2012 09:43:57 -0400 Ian Stakenvicius > wrote: > >> -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 >> >> On 12/07/12 01:01 AM, Ben de Groot wrote: >>> On 12 July 2012 07:42, William Hubbs

Re: [gentoo-dev] rfc: udev-rules.eclass

2012-07-12 Thread Ian Stakenvicius
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 12/07/12 10:19 AM, Michał Górny wrote: > On Thu, 12 Jul 2012 09:47:33 -0400 Ian Stakenvicius > wrote: >> Updating vdb shouldn't be an issue here, as long as pkg_postinst >> doesn't crash mid-stream. Is the vdb common between package >> managers

Re: [gentoo-dev] rfc: udev-rules.eclass

2012-07-12 Thread Michał Górny
On Wed, 11 Jul 2012 14:11:42 -0500 William Hubbs wrote: > # @FUNCTION: _udev_get_rulesdir > # @INTERNAL > # @DESCRIPTION: > # Get unprefixed udev rules directory. > _udev_get_rulesdir() { > local dir > if has_version ' dir=/lib/udev/rules.d > else > d

Re: [gentoo-dev] rfc: udev-rules.eclass

2012-07-12 Thread Michał Górny
On Thu, 12 Jul 2012 09:43:57 -0400 Ian Stakenvicius wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > On 12/07/12 01:01 AM, Ben de Groot wrote: > > On 12 July 2012 07:42, William Hubbs wrote: > >> On Wed, Jul 11, 2012 at 10:57:42PM +0200, Diego Elio Pettenò > >> wrote: > >>> Il 11/

Re: [gentoo-dev] rfc: udev-rules.eclass

2012-07-12 Thread Michał Górny
On Thu, 12 Jul 2012 09:47:33 -0400 Ian Stakenvicius wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > On 12/07/12 03:17 AM, Michał Górny wrote: > > On Thu, 12 Jul 2012 13:01:21 +0800 Ben de Groot > > wrote: > > > >> On 12 July 2012 07:42, William Hubbs > >> wrote: > >>> On Wed, J

Re: [gentoo-dev] rfc: udev-rules.eclass

2012-07-12 Thread Ian Stakenvicius
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 12/07/12 03:17 AM, Michał Górny wrote: > On Thu, 12 Jul 2012 13:01:21 +0800 Ben de Groot > wrote: > >> On 12 July 2012 07:42, William Hubbs >> wrote: >>> On Wed, Jul 11, 2012 at 10:57:42PM +0200, Diego Elio Pettenò >>> wrote: Il 11/07/2012

Re: [gentoo-dev] rfc: udev-rules.eclass

2012-07-12 Thread Ian Stakenvicius
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 12/07/12 01:01 AM, Ben de Groot wrote: > On 12 July 2012 07:42, William Hubbs wrote: >> On Wed, Jul 11, 2012 at 10:57:42PM +0200, Diego Elio Pettenò >> wrote: >>> Il 11/07/2012 21:11, William Hubbs ha scritto: I am about to release udev-186-

Re: [gentoo-dev] rfc: udev-rules.eclass

2012-07-12 Thread Zac Medico
On 07/12/2012 12:17 AM, Michał Górny wrote: > On Thu, 12 Jul 2012 13:01:21 +0800 > Ben de Groot wrote: > >> On 12 July 2012 07:42, William Hubbs wrote: >>> On Wed, Jul 11, 2012 at 10:57:42PM +0200, Diego Elio Pettenò wrote: Il 11/07/2012 21:11, William Hubbs ha scritto: > I am about to

Re: [gentoo-dev] rfc: udev-rules.eclass

2012-07-12 Thread Michał Górny
On Thu, 12 Jul 2012 13:01:21 +0800 Ben de Groot wrote: > On 12 July 2012 07:42, William Hubbs wrote: > > On Wed, Jul 11, 2012 at 10:57:42PM +0200, Diego Elio Pettenò wrote: > >> Il 11/07/2012 21:11, William Hubbs ha scritto: > >> > I am about to release udev-186-r1, which will move everything >

Re: [gentoo-dev] rfc: udev-rules.eclass

2012-07-11 Thread Zac Medico
On 07/11/2012 10:01 PM, Ben de Groot wrote: > On 12 July 2012 07:42, William Hubbs wrote: >> On Wed, Jul 11, 2012 at 10:57:42PM +0200, Diego Elio Pettenò wrote: >>> Il 11/07/2012 21:11, William Hubbs ha scritto: I am about to release udev-186-r1, which will move everything currently in /

Re: [gentoo-dev] rfc: udev-rules.eclass

2012-07-11 Thread Ben de Groot
On 12 July 2012 07:42, William Hubbs wrote: > On Wed, Jul 11, 2012 at 10:57:42PM +0200, Diego Elio Pettenò wrote: >> Il 11/07/2012 21:11, William Hubbs ha scritto: >> > I am about to release udev-186-r1, which will move everything currently >> > in /lib/udev to /usr/lib/udev. >> >> Unless you're g

Re: [gentoo-dev] rfc: udev-rules.eclass

2012-07-11 Thread Brian Dolbec
On Wed, 2012-07-11 at 18:48 -0500, William Hubbs wrote: > On Wed, Jul 11, 2012 at 04:59:11PM -0400, Alexis Ballier wrote: > > How do you plan to handle the following: > > - foo installs an udev rule > > - install foo with old udev > > - upgrade udev > > > > are rules installed by foo used by new

Re: [gentoo-dev] rfc: udev-rules.eclass

2012-07-11 Thread Rick "Zero_Chaos" Farina
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/11/2012 10:50 PM, Zac Medico wrote: > On 07/11/2012 07:25 PM, Rick "Zero_Chaos" Farina wrote: >> On 07/11/2012 07:48 PM, William Hubbs wrote: >>> On Wed, Jul 11, 2012 at 04:59:11PM -0400, Alexis Ballier wrote: How do you plan to handle the f

Re: [gentoo-dev] rfc: udev-rules.eclass

2012-07-11 Thread Zac Medico
On 07/11/2012 07:25 PM, Rick "Zero_Chaos" Farina wrote: > On 07/11/2012 07:48 PM, William Hubbs wrote: >> On Wed, Jul 11, 2012 at 04:59:11PM -0400, Alexis Ballier wrote: >>> How do you plan to handle the following: >>> - foo installs an udev rule >>> - install foo with old udev >>> - upgrade udev

Re: [gentoo-dev] rfc: udev-rules.eclass

2012-07-11 Thread Rick "Zero_Chaos" Farina
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/11/2012 07:48 PM, William Hubbs wrote: > On Wed, Jul 11, 2012 at 04:59:11PM -0400, Alexis Ballier wrote: >> How do you plan to handle the following: >> - foo installs an udev rule >> - install foo with old udev >> - upgrade udev >> >> are rules

Re: [gentoo-dev] rfc: udev-rules.eclass

2012-07-11 Thread William Hubbs
On Wed, Jul 11, 2012 at 04:59:11PM -0400, Alexis Ballier wrote: > How do you plan to handle the following: > - foo installs an udev rule > - install foo with old udev > - upgrade udev > > are rules installed by foo used by new udev ? No, they wouldn't be; that is a good reason to question the va

Re: [gentoo-dev] rfc: udev-rules.eclass

2012-07-11 Thread Diego Elio Pettenò
Tinderbox will help you there. On Thursday, July 12, 2012, William Hubbs wrote: > On Wed, Jul 11, 2012 at 10:57:42PM +0200, Diego Elio Pettenò wrote: > > Il 11/07/2012 21:11, William Hubbs ha scritto: > > > I am about to release udev-186-r1, which will move everything currently > > > in /lib/udev

Re: [gentoo-dev] rfc: udev-rules.eclass

2012-07-11 Thread William Hubbs
On Wed, Jul 11, 2012 at 10:57:42PM +0200, Diego Elio Pettenò wrote: > Il 11/07/2012 21:11, William Hubbs ha scritto: > > I am about to release udev-186-r1, which will move everything currently > > in /lib/udev to /usr/lib/udev. > > Unless you're going to establish a symlink, please keep it under p

Re: [gentoo-dev] rfc: udev-rules.eclass

2012-07-11 Thread Rick "Zero_Chaos" Farina
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/11/2012 03:11 PM, William Hubbs wrote: > All, > I am about to release udev-186-r1, which will move everything currently > in /lib/udev to /usr/lib/udev. > > For packages that install udev rules in ${FILESDIR}, we need an eclass > that tests the

Re: [gentoo-dev] rfc: udev-rules.eclass

2012-07-11 Thread Alexis Ballier
On Wed, 11 Jul 2012 14:11:42 -0500 William Hubbs wrote: > All, > I am about to release udev-186-r1, which will move everything > currently in /lib/udev to /usr/lib/udev. > > For packages that install udev rules in ${FILESDIR}, we need an eclass > that tests the version of udev installed on the u

Re: [gentoo-dev] rfc: udev-rules.eclass

2012-07-11 Thread William Hubbs
On Wed, Jul 11, 2012 at 02:11:42PM -0500, William Hubbs wrote: > All, > I am about to release udev-186-r1, which will move everything currently > in /lib/udev to /usr/lib/udev. > > For packages that install udev rules in ${FILESDIR}, we need an eclass > that tests the version of udev installed on

Re: [gentoo-dev] rfc: udev-rules.eclass

2012-07-11 Thread Diego Elio Pettenò
Il 11/07/2012 21:11, William Hubbs ha scritto: > I am about to release udev-186-r1, which will move everything currently > in /lib/udev to /usr/lib/udev. Unless you're going to establish a symlink, please keep it under p.mask until everything is using some common code — otherwise things _will_ bre

Re: [gentoo-dev] rfc: udev-rules.eclass

2012-07-11 Thread W. Trevor King
On Wed, Jul 11, 2012 at 02:11:42PM -0500, William Hubbs wrote: > For packages that install udev rules in ${FILESDIR}, we need an eclass > that tests the version of udev installed on the user's system and > installs the udev rules in the proper place. I'm not sure how many > packages do this, so if

[gentoo-dev] rfc: udev-rules.eclass

2012-07-11 Thread William Hubbs
All, I am about to release udev-186-r1, which will move everything currently in /lib/udev to /usr/lib/udev. For packages that install udev rules in ${FILESDIR}, we need an eclass that tests the version of udev installed on the user's system and installs the udev rules in the proper place. I'm not