Bug#770773: vdr: Incorrect use of "getent" in postinst script makes the package uninstallable
Juha Jäykkä
juhaj at iki.fi
Sun Nov 23 21:53:54 UTC 2014
Package: vdr
Version: 2.0.3-2+b1
Severity: serious
Tags: patch
Justification: The package is uninstallable: this is not a violation of DPM, but should not be in the archive at all instead.
Dear Maintainer,
Your package is uninstallable on a system where the user "vdr" and group "vdr" exist and
the passwd and group databases do not support enumeration or systems where there are more
than one such database and the vdr user and group are not defined in the primary one. Note
that the first condition is fulfilled by any system where vdr is already installed, thus
making it impossible to upgrade vdr (short of editing the postinst script).
As the man page of getent mentions, the command
getent passwd
is not guaranteed to enumerate all users (likewise for getent group), yet this is exactly
what the postinst script tries to do to determine if the user/group vdr exists. A very short
patch is attached which correctly enumerates said user and group and takes the appropriate
action in both cases.
Best regards,
Juha
-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (995, 'testing'), (990, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.13-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_GB.UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages vdr depends on:
ii adduser 3.113+nmu3
ii debconf [debconf-2.0] 1.5.53
ii libc6 2.19-13
ii libcap2 1:2.24-6
ii libfontconfig1 2.11.0-6.1
ii libfreetype6 2.5.2-2
ii libgcc1 1:4.9.1-19
ii libjpeg62-turbo 1:1.3.1-10
ii libstdc++6 4.9.1-19
ii psmisc 22.21-2
Versions of packages vdr recommends:
ii fonts-freefont-ttf [ttf-freefont] 20120503-4
ii lirc 0.9.0~pre1-1.1
ii ttf-bitstream-vera 1.10-8
ii ttf-freefont 20120503-4
Versions of packages vdr suggests:
pn vdr-plugin-dvbsddevice <none>
-- Configuration Files:
/etc/default/vdr changed [not included]
/etc/vdr/command-hooks/commands.custom.conf changed [not included]
/etc/vdr/command-hooks/order.commands.conf 6f3fafcaa16c454645c64a98bd064491 [Errno 2] No such file or directory: u'/etc/vdr/command-hooks/order.commands.conf 6f3fafcaa16c454645c64a98bd064491'
/etc/vdr/command-hooks/order.reccmds.conf 87e4187bd6121964ce054223570caac4 [Errno 2] No such file or directory: u'/etc/vdr/command-hooks/order.reccmds.conf 87e4187bd6121964ce054223570caac4'
/etc/vdr/groups.d/vdr.groups 01aa59f17312aeb7958106059937565f [Errno 2] No such file or directory: u'/etc/vdr/groups.d/vdr.groups 01aa59f17312aeb7958106059937565f'
/etc/vdr/keymacros.conf changed [not included]
/etc/vdr/svdrphosts.conf changed [not included]
-- debconf information excluded
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vdr.postinst.patch
Type: text/x-diff
Size: 826 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-vdr-dvb-devel/attachments/20141123/f40a34d2/attachment.patch>
More information about the pkg-vdr-dvb-devel
mailing list