1 |
On 07/13/2012 12:04 AM, Michał Górny wrote: |
2 |
> On Thu, 12 Jul 2012 22:58:29 +0300 |
3 |
> Samuli Suominen <ssuominen@g.o> wrote: |
4 |
> |
5 |
>> On 07/11/2012 10:11 PM, William Hubbs wrote: |
6 |
>>> All, |
7 |
>>> I am about to release udev-186-r1, which will move everything |
8 |
>>> currently in /lib/udev to /usr/lib/udev. |
9 |
>>> |
10 |
>>> For packages that install udev rules in ${FILESDIR}, we need an |
11 |
>>> eclass that tests the version of udev installed on the user's |
12 |
>>> system and installs the udev rules in the proper place. I'm not |
13 |
>>> sure how many packages do this, so if it is a very small number of |
14 |
>>> packages, it may not be worth the eclass. It would be good to |
15 |
>>> discuss that as well as reviewing the proposed eclass. |
16 |
>>> |
17 |
>>> Thanks, |
18 |
>>> |
19 |
>>> William |
20 |
>>> |
21 |
>> |
22 |
>> Please don't hardcode the path like this, use pkg-config instead: |
23 |
>> |
24 |
>> inherit toolchain-funcs |
25 |
>> |
26 |
>> dir="$($(tc-getPKG_CONFIG) --variable=udevdir udev)/rules.d" |
27 |
> |
28 |
> Don't forget to add udev to DEPEND of every package using the eclass |
29 |
> then. Oh wait... |
30 |
> |
31 |
|
32 |
Obviously the pkg-config should be only the primary method and there |
33 |
should be a fallback, like what has already been posted. |
34 |
|
35 |
See attachment. |