[PATCH v2][UPower] build: detect udev rules dir

2013-03-20 Thread Tom Gundersen
Udev rules may live in either /lib/udev/rules.d or /usr/lib/udev/rules.d depending on the distro. Remove the heuristic for deciding the dir, use pkgconfig to detect the location and allow it to be set manually. v2: fix specifying --with-udevrulesdir --- configure.ac | 12 +--- rule

Re: [PATCH][UPower] build: detect udev rules dir

2013-03-20 Thread Tom Gundersen
On Wed, Mar 20, 2013 at 3:00 PM, Dan Nicholson wrote: > > On Mar 19, 2013 5:31 AM, "Tom Gundersen" wrote: >> -# udev rules go in /lib, not /usr/lib >> -if test "$prefix" = "/usr" -o "$prefix" = "/usr/local" ; then >> - slashlibdir=/lib >> -else >> - slashlibdir=$prefix/lib >> -fi >> -AC_SUBST(s

Re: [PATCH][UPower] build: detect udev rules dir

2013-03-20 Thread Dan Nicholson
On Mar 19, 2013 5:31 AM, "Tom Gundersen" wrote: > > Udev rules may live in either /lib/udev/rules.d or /usr/lib/udev/rules.d depending on the distro. > Remove the heuristic for deciding the dir, use pkgconfig to detect the location and allow it to be > set manually. > --- > configure.ac | 12

Re: [PATCH][UPower] build: detect udev rules dir

2013-03-20 Thread Tom Gundersen
On Wed, Mar 20, 2013 at 1:59 PM, Tom Gundersen wrote: >> What distro uses /usr/lib/udev/rules.d? > > At least Arch does. PS Currently we do: . -t ___ devki

Re: [PATCH][UPower] build: detect udev rules dir

2013-03-20 Thread Tom Gundersen
On Wed, Mar 20, 2013 at 1:55 PM, Richard Hughes wrote: > On 19 March 2013 12:33, Tom Gundersen wrote: >> Udev rules may live in either /lib/udev/rules.d or /usr/lib/udev/rules.d >> depending on the distro. >> Remove the heuristic for deciding the dir, use pkgconfig to detect the >> location and

Re: [PATCH][UPower] build: detect udev rules dir

2013-03-20 Thread Andrey Borzenkov
On Wed, Mar 20, 2013 at 4:55 PM, Richard Hughes wrote: > On 19 March 2013 12:33, Tom Gundersen wrote: >> Udev rules may live in either /lib/udev/rules.d or /usr/lib/udev/rules.d >> depending on the distro. >> Remove the heuristic for deciding the dir, use pkgconfig to detect the >> location and

Re: [PATCH][UPower] build: detect udev rules dir

2013-03-20 Thread Richard Hughes
On 19 March 2013 12:33, Tom Gundersen wrote: > Udev rules may live in either /lib/udev/rules.d or /usr/lib/udev/rules.d > depending on the distro. > Remove the heuristic for deciding the dir, use pkgconfig to detect the > location and allow it to be > set manually. What distro uses /usr/lib/ude