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

Yury G. Kudryashov urkud.urkud at gmail.com
Thu Jan 26 07:01:04 PST 2012

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> 
> > 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.
Yury G. Kudryashov,
mailto: urkud at mccme.ru
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 230 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/devkit-devel/attachments/20120126/a3a41422/attachment-0001.pgp>

More information about the devkit-devel mailing list