sys-apps/pcsc-lite udev rule does not check whether the pcsc service is already started before attempting to start it resulting in errors like: "systemd-udevd[1234]: Process '/bin/env IN_HOTPLUG=1 /etc/init.d/pcscd --quiet start' failed with exit code 1." getting logged each time a smart card reader gets connected to the system. The proposed patch fixes the issue for me by checking whether the service is already started before attempting to start it.
Created attachment 574908 [details, diff] proposed fix
Have you followed the instructions and put rc_hotplug="pcscd" in /etc/rc.conf?
(In reply to Alon Bar-Lev from comment #2) > Have you followed the instructions and put rc_hotplug="pcscd" in > /etc/rc.conf? I have rc_hotplug="*" in /etc/rc.conf. Please note that this bug is not about a failure to start pcscd service, but about an error that is logged when this service is already running (for whatever reason, for example due to earlier hotplug event) and a new smart card reader gets connected.
Hello openrc, We see that: IN_HOTPLUG=1 /etc/init.d/pcscd start Exits with success on first start, then fails as service is already started. Maybe this case openrc should return success as well? Or maybe usage is incorrect... Please advise. Thanks!
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab104752fce208d3f26b4330fa13ab3272cef752 commit ab104752fce208d3f26b4330fa13ab3272cef752 Author: Christopher Byrne <salah.coronya@gmail.com> AuthorDate: 2024-07-18 03:54:56 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-12-01 12:03:03 +0000 sys-apps/pcsc-lite: add 2.2.3 pcsc-lite now uses meson instead of autotools, so the ebuild has been modified appropriately. Also patched a file getting installed in the wrong place. Licensing problems fixed, as the newer version solves some no-longer-relevant bugs. Closes: https://bugs.gentoo.org/684878 Closes: https://bugs.gentoo.org/912861 Closes: https://bugs.gentoo.org/871096 Closes: https://bugs.gentoo.org/618738 Closes: https://github.com/gentoo/gentoo/pull/35892 Signed-off-by: Christopher Byrne <salah.coronya@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/37600 Signed-off-by: Sam James <sam@gentoo.org> sys-apps/pcsc-lite/Manifest | 1 + ...te-2.2.3-change-setup-spy-script-location.patch | 13 +++ sys-apps/pcsc-lite/pcsc-lite-2.3.0.ebuild | 110 +++++++++++++++++++++ 3 files changed, 124 insertions(+)