Your message dated Mon, 08 Dec 2014 00:19:01 +0000
with message-id <[email protected]>
and subject line Bug#770773: fixed in vdr 2.0.3-3
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 [email protected]
immediately.)


-- 
770773: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=770773
Debian Bug Tracking System
Contact [email protected] 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.3-3

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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Tobias Grimm <[email protected]> (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 [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Mon, 08 Dec 2014 00:20:19 +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.3-3
Distribution: testing
Urgency: medium
Maintainer: Debian VDR Team <[email protected]>
Changed-By: Tobias Grimm <[email protected]>
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.3-3) testing; urgency=medium
 .
   * Fixed use of getent in postinst script for detecting existing vdr user and
     group (Closes: #770773)
Checksums-Sha1:
 ee92527bc59b86352e716d61c8582c22e9c509c0 2491 vdr_2.0.3-3.dsc
 acfa9d459023b0461d9dacf31177e80582e476c6 838015 vdr_2.0.3.orig.tar.bz2
 147864e6b6c5da055b54055c0c948ecaf1d16493 47524 vdr_2.0.3-3.debian.tar.bz2
 ff4921a64297a076e3b7b9814efc59c17cfd9a77 942996 vdr_2.0.3-3_amd64.deb
 fdc9150a168ab3d9e9d66a63872a85a948640911 346402 vdr-dev_2.0.3-3_all.deb
 24ac4aaa5a6c6c78ba481c5799c9af62f79496d2 1574032 vdr-dbg_2.0.3-3_amd64.deb
 cdc1202fa4aa92b3c3a36bd094446f4b3ac708d4 182756 
vdr-plugin-dvbsddevice_2.0.3-3_amd64.deb
 451377231e9018ecbf0befd7d9411e8722f5f741 202672 
vdr-plugin-dvbsddevice-dbg_2.0.3-3_amd64.deb
 ee3af75ee413dbb00480ef64b795d3a749beb1e4 203240 
vdr-plugin-dvbhddevice_2.0.3-3_amd64.deb
 f0009eb840dc6b02ad619e349ea3fc808072ed53 274756 
vdr-plugin-dvbhddevice-dbg_2.0.3-3_amd64.deb
 971264498c675acf5adfdd44d297b258f6cf9573 225684 
vdr-plugin-examples_2.0.3-3_amd64.deb
Checksums-Sha256:
 6ee6be2d5a8defabba166bfe950fc352a847bdee5bb6337e2fc055fe097dbba5 2491 
vdr_2.0.3-3.dsc
 5bcb2b56f49dc9d1617f7e638de26c38eca1df3a33eed4b08412c00c0dfb4719 838015 
vdr_2.0.3.orig.tar.bz2
 425c1257ca66088c028edfd185b7610231c385afd0a689f475da29c1167b41bd 47524 
vdr_2.0.3-3.debian.tar.bz2
 48a73c97e11a14e95b882e2515e1d21f8a3195a2f6088c9371b56547a1727cad 942996 
vdr_2.0.3-3_amd64.deb
 a1e4364adbdd7c632cb6f02491cd33b44274a0b6fd9536821e2a493aba898b1c 346402 
vdr-dev_2.0.3-3_all.deb
 b8b02148d4cfb4b4777dc4a601f4ef8b5039901c16f944cabcea597c9f9c0013 1574032 
vdr-dbg_2.0.3-3_amd64.deb
 d2820b1e2ffa124a5036dd3437c9e9167dd496e98e3d6e8fd8fbec9b88e3a602 182756 
vdr-plugin-dvbsddevice_2.0.3-3_amd64.deb
 59efafe12489691088130f8f282e1c16aab440c6c2e26897825146fd03e89ad8 202672 
vdr-plugin-dvbsddevice-dbg_2.0.3-3_amd64.deb
 4b142de71b91ade50ede3b8df6019569e8de83342142f8b7b65664182059ba04 203240 
vdr-plugin-dvbhddevice_2.0.3-3_amd64.deb
 7f7bc7d5196b31cde9fa800f2894ed9ab4120764403a7c80b1f2ffe538c99c1c 274756 
vdr-plugin-dvbhddevice-dbg_2.0.3-3_amd64.deb
 b81f7ec3821f3347592209a7783e633168e5db42b708d9e144270280c5a4eee7 225684 
vdr-plugin-examples_2.0.3-3_amd64.deb
Files:
 65c8b63b1cfda03040c9cfbc80022470 2491 video extra vdr_2.0.3-3.dsc
 dd8fb1642bdfa7feb0e9a8ae41e9ef2f 838015 video extra vdr_2.0.3.orig.tar.bz2
 3b3a01c11eca80d1dbb1347e56d67d7e 47524 video extra vdr_2.0.3-3.debian.tar.bz2
 15d2f573f36915f541954d8d4b956a4a 942996 video extra vdr_2.0.3-3_amd64.deb
 026ef8c9de435ef6babb4ee8d120268b 346402 video extra vdr-dev_2.0.3-3_all.deb
 ff326c2a3732e037899968329088bc36 1574032 debug extra vdr-dbg_2.0.3-3_amd64.deb
 8976166007d871ef9f5ff05cc82f16c6 182756 video extra 
vdr-plugin-dvbsddevice_2.0.3-3_amd64.deb
 e51abbcbaa069c4712329b58c160f927 202672 debug extra 
vdr-plugin-dvbsddevice-dbg_2.0.3-3_amd64.deb
 64bdacf6f07be69ff06e8c3669e4a1ae 203240 video extra 
vdr-plugin-dvbhddevice_2.0.3-3_amd64.deb
 0efbddb19748d17c40c5c6990c0d2154 274756 debug extra 
vdr-plugin-dvbhddevice-dbg_2.0.3-3_amd64.deb
 3b02b0c456f4cfed20834ea19de54b94 225684 video extra 
vdr-plugin-examples_2.0.3-3_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJUhOsoAAoJENYuT1sEE5C8bJwP/R/UwLTW57k2phw7zlUoIV1H
adJIRsFlLc+kIsjCGAeA8ce+Ggo404tcpw1l2Q94eYhkJJC2194u4CPmYl+gTRlU
qI2X0EPsMwNy8qonP7rF3G+HaPYObD3XJyGLJfyd1VUnP2qS1jJeTxjbt1JMFUZu
k7DJc4LMbeBVpZVorI+yBGskwxVsnh0j2vISvqLBR0UycMYmfbpo0hi5xfq/KMSS
zgOAYiDWX3iO0OYjWM4IXPWTiJaCzuHD3eWGd0Ysk15ldx8gUMKZ0jHca08pZczZ
DVcKKvvQUaioA0f0EyCtMZDB9YccEtGxqW+LPXryYQpzxc7peFSFCPrnneiNyUTV
BwEiw0DBeuLS5kSWyRHEDqzwXQZ/OcYAylwSte7RAc6CtucakPoR5P+2T5Fh+aCr
eOtQUMJzkGHjg6JF1e1sOdyBRYH+kP8KvmA9d68cypF+TlbMRHxuaLvfaCpa1g1H
KftkM3cTaZSLvBsYv87NEJsTePHt44upYBK/DUhqvX0gkvXu8pCi2ka6DZTrGgen
Y9W5Z1Seg6v8FVRrxiToLcbURHXbjgTgbUwKsr90konVMHNLM2EGbKCQZDUAH8Kw
pHY/6UkNyv8zYgS3uHupEVHv0Mc6NzUFHt3cjc3XaPMqZEfkqWuD3z0Tj9lPCmbv
4/jVIq32u0jHEL3G9dBE
=EEo/
-----END PGP SIGNATURE-----

--- End Message ---
_______________________________________________
pkg-vdr-dvb-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-vdr-dvb-devel

Reply via email to