Your message dated Mon, 08 Dec 2014 22:25:11 +0000
with message-id <e1xy6jv-0006f9...@franck.debian.org>
and subject line Bug#770773: fixed in vdr 2.0.6-2
has caused the Debian Bug report #770773,
regarding vdr: Incorrect use of "getent" in postinst script makes the package
uninstallable
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
770773: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=770773
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
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
--- /var/lib/dpkg/info/vdr.postinst.broken 2014-11-23 21:45:22.493063539 +0000
+++ /var/lib/dpkg/info/vdr.postinst.working 2014-11-23 21:46:54.222673434 +0000
@@ -75,12 +75,12 @@
# ensure that user and group 'vdr' exist
USER=vdr
GROUP=vdr
- if ! getent group | grep -q "^$GROUP:" ; then
+ if ! getent group "$GROUP"| grep -q "^$GROUP:" ; then
echo -n "Adding group $GROUP.."
addgroup --quiet --system $GROUP
echo "..done"
fi
- if ! getent passwd | grep -q "^$USER:"; then
+ if ! getent passwd "$USER"| grep -q "^$USER:"; then
echo -n "Adding user $USER.."
adduser --system --home /var/lib/vdr --shell /bin/false \
--gecos "VDR user" --no-create-home \
--- End Message ---
--- Begin Message ---
Source: vdr
Source-Version: 2.0.6-2
We believe that the bug you reported is fixed in the latest version of
vdr, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 770...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Tobias Grimm <et...@debian.org> (supplier of updated vdr package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Mon, 08 Dec 2014 22:48:55 +0100
Source: vdr
Binary: vdr vdr-dev vdr-dbg vdr-plugin-dvbsddevice vdr-plugin-dvbsddevice-dbg
vdr-plugin-dvbhddevice vdr-plugin-dvbhddevice-dbg vdr-plugin-examples
Architecture: source amd64 all
Version: 2.0.6-2
Distribution: unstable
Urgency: medium
Maintainer: Debian VDR Team <pkg-vdr-dvb-de...@lists.alioth.debian.org>
Changed-By: Tobias Grimm <et...@debian.org>
Description:
vdr - Video Disk Recorder for DVB cards
vdr-dbg - Debug symbols for the VDR Video Disc Recorder
vdr-dev - Video Disk Recorder for DVB cards
vdr-plugin-dvbhddevice - Plugin that adds support for full featured HD-DVB
cards to VDR
vdr-plugin-dvbhddevice-dbg - Plugin that adds support for full featured HD-DVB
cards to VDR
vdr-plugin-dvbsddevice - Plugin that adds support for full featured SD-DVB
cards to VDR
vdr-plugin-dvbsddevice-dbg - Plugin that adds support for full featured SD-DVB
cards to VDR
vdr-plugin-examples - Plugins for vdr to show some possible features
Closes: 770773
Changes:
vdr (2.0.6-2) unstable; urgency=medium
.
* Merged from Jessie-version 2.0.3-3: Fixed use of getent in postinst script
for detecting existing vdr user and group (Closes: #770773)
* Standards-Version: 3.9.6
Checksums-Sha1:
2efc7f4a8f881d13e2f7862d2d0f90edb1bfe33d 2491 vdr_2.0.6-2.dsc
1c43cf49c8bc124fb5298d1a1037a5ae89bb9739 839575 vdr_2.0.6.orig.tar.bz2
19d85af4253a3acfd88c698bc118b2e156056f4e 47616 vdr_2.0.6-2.debian.tar.bz2
8070e9ff6f7de4117a13337f96b44de2f94513e1 947324 vdr_2.0.6-2_amd64.deb
42e5804ce4ba590bdd24743767fee168f05afd7b 349176 vdr-dev_2.0.6-2_all.deb
1b14b4ad003fb67c608b4d593db19b62fabffa50 1577326 vdr-dbg_2.0.6-2_amd64.deb
c141c3ce72f645c2f6c5588f7729b9bcc93947f1 184432
vdr-plugin-dvbsddevice_2.0.6-2_amd64.deb
52b0aeaf5c823e69c570d861cce35733b19b0df5 204328
vdr-plugin-dvbsddevice-dbg_2.0.6-2_amd64.deb
c603ec304787d33cae329d9fbcfbd52d5af85f1d 204958
vdr-plugin-dvbhddevice_2.0.6-2_amd64.deb
91da8db613e324eeb795650ecfe0a01c0a9bbbc9 276476
vdr-plugin-dvbhddevice-dbg_2.0.6-2_amd64.deb
32eba44bcae9453b96426634991d1ae8a7886b4b 227422
vdr-plugin-examples_2.0.6-2_amd64.deb
Checksums-Sha256:
45bc5912bab49469f0eb6f82195511b1c7565dea97189d182c3f804aaa75ff4f 2491
vdr_2.0.6-2.dsc
c33c6431726378d5af575d8cfcacd34a50d17334e091dc4a095b6b75bc99b972 839575
vdr_2.0.6.orig.tar.bz2
1ed58d8c24c4428330e58a79abfb4727528f498a0cede38b343edeb4d196dd43 47616
vdr_2.0.6-2.debian.tar.bz2
8ec810a85bb31c4a3080a90bbdb7c739c1281453f6c5ce75f0979fc51ae3789a 947324
vdr_2.0.6-2_amd64.deb
2283a46ab06a6cefe8eaef60129ae9257b5a0198897545dae91b9e0a72a32006 349176
vdr-dev_2.0.6-2_all.deb
1f20178a9f3a41e246a1e8bd5d22791771b8f9c5e46bea337fd1c4ab6267e4e4 1577326
vdr-dbg_2.0.6-2_amd64.deb
357344d0afd400ca37982558b25daecb09cbe44762f7024da09a452aa84a02c1 184432
vdr-plugin-dvbsddevice_2.0.6-2_amd64.deb
872dad9b64a73bff526e0a8e54e15a8b1249777c948a6eeb78915aee10d4d72a 204328
vdr-plugin-dvbsddevice-dbg_2.0.6-2_amd64.deb
b342589c4b1244a8fec2fc11cd4d0bc17cfdc574a963631ef556afaace99365c 204958
vdr-plugin-dvbhddevice_2.0.6-2_amd64.deb
a28aa5cc83aaf82c45faacf2feef790fc3a460a7b76a88dcdaaca98b7c05a923 276476
vdr-plugin-dvbhddevice-dbg_2.0.6-2_amd64.deb
1876c1de2d73e9010f5afa634b3e217e868d86d89da63f99b445b601ed6d8208 227422
vdr-plugin-examples_2.0.6-2_amd64.deb
Files:
beb0215e464e7471574df1846960be1a 2491 video extra vdr_2.0.6-2.dsc
f6916524c302f3209fd0af507ab97387 839575 video extra vdr_2.0.6.orig.tar.bz2
f84cc801c1495829ef0f22b768dcfb2f 47616 video extra vdr_2.0.6-2.debian.tar.bz2
1d48ba2c8b4c763f09f03cceaf9546ed 947324 video extra vdr_2.0.6-2_amd64.deb
56052599d49fd009a8a204dbf5505446 349176 video extra vdr-dev_2.0.6-2_all.deb
23877a49aa81c601ee70f4271da35809 1577326 debug extra vdr-dbg_2.0.6-2_amd64.deb
820381878d3037dcb0c7e09090e3e019 184432 video extra
vdr-plugin-dvbsddevice_2.0.6-2_amd64.deb
aa3629a13b80133501f9c2972b2ec4b3 204328 debug extra
vdr-plugin-dvbsddevice-dbg_2.0.6-2_amd64.deb
5f72084ed352f92b73c537c4ea36df16 204958 video extra
vdr-plugin-dvbhddevice_2.0.6-2_amd64.deb
3d8201c4811acc8148c4502627101814 276476 debug extra
vdr-plugin-dvbhddevice-dbg_2.0.6-2_amd64.deb
56301c0fee1954e1fadc58b8bbe918c4 227422 video extra
vdr-plugin-examples_2.0.6-2_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQIcBAEBAgAGBQJUhh83AAoJENYuT1sEE5C8EHMP/0J9meEvfCaFD9nTkaMunvjQ
6wKnL92ELGw9GCNSB0EzlmjIVmuiwvd+VblyPQdBZZ2OfSQy0q841zKDPUyeb59/
/9MlXR39SeAxbORUrWrbPN3LyGzppnwL6q4jtR631fTtYWtd7jdjI3OEKUOkGPtY
JLUcCY+2kp2LMuTA8KhGvfdweIjQhatne188F5bp9D5W7rTjzY+O2Vqaq68B4SxA
w9+ZnJLGFoD185sWBgWXhql/DaxdN/tbbafGd94KeUgfXsHBf1Kv3b2OEZ4O5vF2
28I82FYqTF0q7/BOOnLjIoneLZaKy034L3TOz0l/lwJza97jYeKwx8uCnCNKhpdv
QNhLR7rCm59jmcOsqzI3aR+PlyWlUUbfj7Q82hiu3pfCuoDL4gOReCJxSGpWCryG
bTiXH3Wuc6srtdOPtFl/Vst8uwyI9rwGVcNl8tHtfxerMoV62Z3vEP4b2b6s03zI
8abzYiCdevm/J47/hDFX3xjB9yBz6uiOBjYDaHZu42n1C/UmVF7PbkaiNfCNxbqQ
WSW4q9xlLMrBXwxhnwZZ+IlfDtOj84jxkStQukPfQ4UeE7wuh1V5lhtWoZBmYjvp
UAUoeEhDeWyWyODJo/tGSVZUG/xB+zpHdl/9KjzqNe7Fd0IJ8HTlu1mXmWGCqEFR
R1UxM9HHkBhnNtLSz1o8
=dbt8
-----END PGP SIGNATURE-----
--- End Message ---