[Pkg-utopia-maintainers] Bug#477759: dbus: postinst script notice

Alexander Davydenko alex at topconps.org
Fri Apr 25 02:55:38 UTC 2008


Package: dbus
Version: 1.2.1-1
Severity: important
Tags: patch


The postinst script on configure stage try to adduser,
which is present on system, as such package installation failed.


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.24-amd64-custom (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages dbus depends on:
ii  adduser                       3.107      add and remove users and groups
ii  debianutils                   2.28.4     Miscellaneous utilities specific t
ii  libc6                         2.7-10     GNU C Library: Shared libraries
ii  libdbus-1-3                   1.2.1-1    simple interprocess messaging syst
ii  libexpat1                     1.95.8-4   XML parsing C library - runtime li
ii  libselinux1                   2.0.59-1   SELinux shared libraries
ii  lsb-base                      3.2-10     Linux Standard Base 3.2 init scrip

Versions of packages dbus recommends:
ii  dbus-x11                      1.2.1-1    simple interprocess messaging syst

-- no debconf information
-------------- next part --------------
--- dbus.postinst	2008-04-18 20:09:26.000000000 +0400
+++ /var/lib/dpkg/info/dbus.postinst	2008-04-18 20:11:19.000000000 +0400
@@ -9,13 +9,15 @@
 LAUNCHER=/usr/lib/dbus-1.0/dbus-daemon-launch-helper
 
 if [ "$1" = configure ]; then
-    adduser --system \
-            --home "$MESSAGEHOME" \
-            --no-create-home \
-            --disabled-password \
-            --group "$MESSAGEUSER"
+    if ! getent passwd messagebus &>/dev/null; then
+        adduser --system \
+                --home "$MESSAGEHOME" \
+                --no-create-home \
+                --disabled-password \
+                --group "$MESSAGEUSER"
 
-    chown "$MESSAGEUSER":"$MESSAGEUSER" "$MESSAGEHOME"
+        chown "$MESSAGEUSER":"$MESSAGEUSER" "$MESSAGEHOME"
+    fi
 
     if ! dpkg-statoverride --list "$LAUNCHER" >/dev/null 2>&1; then
             chown root:"$MESSAGEUSER" "$LAUNCHER"


More information about the Pkg-utopia-maintainers mailing list