[PATCH] Make udev rules work if installed into a non-std prefix

Kay Sievers kay.sievers at vrfy.org
Thu Jan 26 08:12:29 PST 2012

On Thu, Jan 26, 2012 at 16:01, Yury G. Kudryashov <urkud.urkud at gmail.com> wrote:
> Le 26 января 2012 15:35:08 Kay Sievers a écrit :
>> On Thu, Jan 26, 2012 at 14:48, Yury G. Kudryashov <urkud.urkud at gmail.com>
> wrote:
>> > From: "Yury G. Kudryashov" <urkud.urkud at gmail.com>
>> >
>> > Prefix all IMPORT{program} strings with @slashlibdir@ to produce
>> > absolute paths in the output 80-udisks.rules file.
>> It is built into udev since almost forever that programs in /lib/udev/
>> do not need an absolute path, they can just be referenced by
>> IMPORT="foo", and you should be able to just remove the absolute path.
> Yes, but I install udisks to a custom prefix (neither /usr, nor /), so all
> those tools end up in $prefix/lib/udev/.
> I can modify my patch so that it will write absolute paths only if
> $slashlibdir != /lib. In this case installation to /lib/udev will result in
> relative paths.

Just use this:


More information about the devkit-devel mailing list