[Fingerforce-devel] Bug#683863: Bug#683863: libfprint0: udev rules not applied when libfprint0 is installed
Luca Capello
luca at pca.it
Fri Jan 4 12:34:40 UTC 2013
tags 683863 + patch
usertags 683863 + debian-packaging
thanks
Hi there!
On Sat, 11 Aug 2012 04:00:57 +0200, Marco d'Itri wrote:
> On Aug 05, Didier Raboud <didier at raboud.com> wrote:
>
>> > this can be done with the "udevadm trigger" command. By default, this
>> > will trigger change events for all devices. I'm not sure whether that
>> > could have undesirable consequences. You could limit the events to just
>> > fingerprint readers with a series of
>> >
>> > udevadm trigger --attr-match=idVendor=xxxx --attr-match=idProduct=xxxx
>> >
>> > Possible dh_installudev should help you with this.
>>
>> As mentionned above, I don't think it's libfprint's job to handle this: if
>> deemed useful, it should be done by dh_installudev (that doesn't do much else
>> than installing the udev rules file) or by a udev dpkg trigger.
>>
>> I'm CC'ing the udev maintainer to have his input on this. Marco: opinions?
> OP is correct: this kind of rules are not magically applied to existing
> devices when they are installed, so your package needs to use udevadm
> trigger in postinst to synthesize change uevents for the installed
> hardware.
Attached an untested Git patch, which limit the events to only the
devices the package support: I will push it in one week if no one
complains, as well as ask for a wheezy unblock.
Please note that IMHO dh_installudev should be expanded to handle the
creation of the `udevadm trigger` calls, see:
<http://bugs.debian.org/697362>
Thx, bye,
Gismo / Luca
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-debian-libfprint0.postinst-683863-apply-udev-rules-a.patch
Type: text/x-diff
Size: 2807 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/fingerforce-devel/attachments/20130104/02b03d6c/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/fingerforce-devel/attachments/20130104/02b03d6c/attachment.pgp>
More information about the Fingerforce-devel
mailing list