Reinstall doesn't help.

The problematic line is in postinst:

[ -x /bin/systemctl ] && [ -d /run/systemd/system ] && systemctl enable
pcscd.socket

On my Trusty system, even calling this command from commandline (with
sudo at systemctl) fails with the same error.

Using strace I found out that on this system it looks for the socket
file in /lib/systemd/upstart/pcscd.socket, but the package only installs
/lib/systemd/system/pcscd.socket. Manually copying this file to the
correct directory fixes the issue (symlink is not enough since systemd
doesn't follow them).

It's probably caused by this systemd change from December 2016:
https://bugs.launchpad.net/ubuntu/trusty/+source/systemd/+bug/1616422/comments/21
. That would explain why I succeeded installing pcscd on trusty a few
years ago, but now it's broken.

It could be fixed in debian/rules:
override_dh_auto_configure:
        dh_auto_configure -- $(EXTRA_CONFIGURE_ARGS) 
--with-systemdsystemunitdir=/lib/systemd/system 
--enable-usbdropdir=/usr/lib/pcsc/drivers $(shell dpkg-buildflags 
--export=configure)

There's a config named --with-systemdsystemunitdir which points to the
ignored directory on trusty. Pointing it to /lib/systemd/upstart should
IMO fix the bug.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1700104

Title:
  package pcscd 1.8.10-1ubuntu1.1 failed to install/upgrade: subprocess
  installed post-installation script returned error exit status 1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pcsc-lite/+bug/1700104/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to