Salut!

Am 11.05.2013 15:07, schrieb Ludovic Rousseau:
> Le 11/05/13 01:26, Holger Burkhardt a écrit :
>> Package: pcscd
>> Version: 1.8.4-1
>> Severity: grave
>> Tags: patch
>> Justification: renders package unusable
>>
>> Dear Maintainer,
> 
> Hello,
> 
>>     * What led up to the situation?
>> Upgrade squeeze -> wheezy failed due to the postinstall-script exiting
>> with
>> error code 1. Exact error code was:
>>
>> "dpkg: Fehler beim Bearbeiten von pcscd (--configure):
>>   Unterprozess installiertes post-installation-Skript gab den
>> Fehlerwert 1
>> zurück"
>>
>> A debug session on irc showed the following problems of the post-install-
>> scirpt:
>> a) The pcscd-group was already existing on my computer due to the
>> previous
>> install. However, it was not a system group at that time. Making the
>> output of
>> the postinstall-script more verbose, one could see that the script
>> breaks at
>> that point: ("addgroup: Die Gruppe »pcscd« existiert bereits und ist
>> keine
>> Systemgruppe. Programmende.").
>> -> Proposed patch from the IRC-experts: Replace the line
>> "addgroup --system pcscd --quiet"
>>   by
>> "if ! getent group pcscd > /dev/null 2>&1 ; then addgroup --system pcscd
>> --quiet; fi"
> 
> The use of the pcscd group was added with pcsc-lite 1.6.0 and removed
> with pcsc-lite 1.8.0.
> 
> Debian old-stable (squeeze) provided pcsc-lite 1.5.5-4
> Debian stable (wheezy) provides pcsc-lite 1.8.4-1
> 
> You had a problem with the upgrade because you created the pcscd group
> yourself. I guess you installed some pcsc-lite version by hand. Exact?
> 
> I upgrade pcscd from old-stable to stable without problem here:
> [...]
> Preparing to replace pcscd 1.5.5-4 (using .../pcscd_1.8.4-1_i386.deb) ...
> Unpacking replacement pcscd ...
> [...]
> Setting up pcscd (1.8.4-1) ...
> Installing new version of config file /etc/init.d/pcscd ...
> [...]

Hmmm, difficult question, as it was quite some time ago. For the first
part, I am quite confident that I had the official old-stable pcscd
installed. I found the follwoing traces in the logs:

taken from history.log of /var/log/apt:

Start-Date: 2013-05-10  20:41:38
Commandline: apt-get dist-upgrade
[...]
pcscd:amd64 (1.5.5-4, 1.8.4-1)
[...]

taken from dpkg.log:

2013-05-10 21:03:26 upgrade pcscd:amd64 1.5.5-4 1.8.4-1

What I do not know for sure is if I created the pcscd-group by hand or
not.....

If I did so (necessary or not), it was certainly following some
instructions that I found on the web to get my ReinerSCT RFID standard
reader to work.

Nevertheless, I believe it is highly desireable that the postinstall
script can properly handle an existing non-system pcscd-group or that it
gives at least a meaningful error message. :)


> I already removed the use of addgroup in pcsc-lite 1.8.8-1 (I should
> have done that for version 1.8.0-1 but "forgot").
> 
>> b) the follwoing line seems also to be problematic and the following
>> replacement was proposed:
>> Instead of
>> [ -x /bin/systemctl ] && [ -d /sys/fs/cgroup/systemd ] && systemctl
>> enable
>> pcscd.socket
>> rather
>> if [ -x /bin/systemctl -a -d /sys/fs/cgroup/systemd ]; then systemctl
>> enable
>> pcscd.socket; fi
> 
> Can you explain what the problem is with the previous version?

Unfortunately no. I am 99% user and only 1% comfortable with shell
scripts an others....

If I recall the reasoning right, at first glance this line seemed to be
the only one in the postinstall script that could lead to the error code
1 of the post-install script (what in the end was not the case). The
ideas was to modify the line in a way to avoid an error code, but from
my amateur eyes, the alternative seems just to be a different/easier to
read version of the same.

So sorry to not to be in a position to explain the "superiourity" of the
alternative code.


> 
> Thanks
> 


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to