Luca Capello a écrit :
Package: pcscd
Version: 1.4.100-2
Severity: normal
Tags: patch

Hello,

From version 1.4.100-2 pcscd depends on hal [1], but the LSB headers in
the init script doesn't show this dependency.  This should mean that
when using the dependency based boot [2], pcscd isn't started after hal.

Exact.

I wrote "should" because while this is true on my sid (/etc/rc2.d/ has
S20pcscd and S21hal), I cannot reproduce it on a minimal cowbuilder
chroot (/etc/rc2.d/ has S12hal and S12pcscd).

pcscd should be installed at level 50.
debian/rules contains:
        # use 50 to start _after_ usbmgr with level 45 (see #146151)
        dh_installinit --update-rcd-params="defaults 50"

My /etc/rc2.d/ contains S50pcscd

The patch is trivial and attached: according to [3], I think
Should-Start/Stop are the correct keywords, because AFAIK hal is
necessary for USB readers only, so PCMCIA ones shouldn't require it
(unfortunately I don't have a PCMCIA one here ATM, so I cannot confirm).
Moreover, pcscd doesn't fail to start if hal isn't present, but it only
print a message:

I guess that USB hotplug will then _not_ work.

Here's the patch against the SVN repository (tested on my sid):

Thanks.

Index: debian/pcscd.init
===================================================================
--- debian/pcscd.init   (revision 9029)
+++ debian/pcscd.init   (working copy)
@@ -10,8 +10,8 @@
 # Provides: pcscd
 # Required-Start: $local_fs $remote_fs $syslog
 # Required-Stop: $local_fs $remote_fs $syslog
-# Should-Start: usbmgr udev hotplug
-# Should-Stop: usbmgr udev hotplug
+# Should-Start: usbmgr udev hotplug hal
+# Should-Stop: usbmgr udev hotplug hal
 # Default-Start: 2 3 4 5
 # Default-Stop: 0 1 6
 # Short-Description: Daemon to access a smart card using PC/SC

I will also remove usbmgr and hotplug since these packages are no more available in lenny.

Regards,

--
 Dr. Ludovic Rousseau


Reply via email to