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 Desktop
Packages, which is subscribed to pcsc-lite in 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

Status in pcsc-lite package in Ubuntu:
  Confirmed

Bug description:
  .

  ProblemType: Package
  DistroRelease: Ubuntu 14.04
  Package: pcscd 1.8.10-1ubuntu1.1
  ProcVersionSignature: Ubuntu 4.4.0-81.104~14.04.1-generic 4.4.67
  Uname: Linux 4.4.0-81-generic x86_64
  ApportVersion: 2.14.1-0ubuntu3.24
  AptOrdering:
   pcscd: Install
   pcscd: Configure
  Architecture: amd64
  Date: Fri Jun 23 12:21:31 2017
  DuplicateSignature: package:pcscd:1.8.10-1ubuntu1.1:subprocess installed 
post-installation script returned error exit status 1
  ErrorMessage: subprocess installed post-installation script returned error 
exit status 1
  InstallationDate: Installed on 2016-12-28 (177 days ago)
  InstallationMedia: Ubuntu 14.04.5 LTS "Trusty Tahr" - Release amd64 (20160803)
  RelatedPackageVersions:
   dpkg 1.17.5ubuntu5.7
   apt  1.0.1ubuntu2.17
  SourcePackage: pcsc-lite
  Title: package pcscd 1.8.10-1ubuntu1.1 failed to install/upgrade: subprocess 
installed post-installation script returned error exit status 1
  UpgradeStatus: No upgrade log present (probably fresh install)

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

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to