[Spice-devel] [PATCH spice-streaming-agent v2 1/5] Install udev rule
Christophe Fergeau
cfergeau at redhat.com
Tue May 22 12:21:51 UTC 2018
On Tue, May 22, 2018 at 07:11:15AM -0400, Frediano Ziglio wrote:
> >
> > On Mon, May 21, 2018 at 11:45:27AM +0100, Frediano Ziglio wrote:
> > > The udev rule is used to do some action when the device is added to the
> > > system. Current rule change the permission of the special file to allow to
> > > open it by any user.
> >
> > I thought this was a temporary 'hack' until we have a better way of
> > handling this?
> >
>
> Yes, you can note the rule is changed in a following patch.
Realized after sending that the rest of the series would probably change
it ;)
>
> > > Some systems use /lib/udev while others use /usr/lib/udev.
> > > Allow to specify the full path to support both type of systems.
> >
> > Maybe $ pkg-config udev --variable udevdir
> > /usr/lib/udev
> > could be used for that?
> >
>
> I suppose we can use pkg-config to get the default.
> About rpm and spec file is not clear which dependency to add to
> get the pkg-config file. Maybe "pkgconfig(udev)" ?
Yes, pkgconfig(udev) should work,
$ rpm -qf /usr/share/pkgconfig/udev.pc
systemd-238-8.git0e0aa59.fc28.x86_64
$ rpm -q --provides systemd-238-8.git0e0aa59.fc28.x86_64
[snip]
pkgconfig(udev) = 238
[snip]
(slightly surprising that this is in systemd and not systemd-udev)
Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20180522/a69d3f27/attachment.sig>
More information about the Spice-devel
mailing list