[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#407342: postinst fails when run within d-i



Package: xdm
Version: 1:1.0.5-1
Severity: normal
Tags: d-i

I'd like to include xdm in the xfce task, but I can't since it fails as
follows:

Warning: Fake start-stop-daemon called, doing nothing.
cat: /var/run/xdm.pid: No such file or directory
dpkg: error processing xdm (--configure);
  subprocess post-installation script returned error exit status 1

This is due to the following code:

# Don't start the daemon if it's already running...
if start-stop-daemon --stop --quiet --signal 0 --pid /var/run/xdm.pid \
                     --name $(basename $DAEMON) ; then
  # Note our refusal to start the daemon if we were supposed to start it.
  [ -n "$NOSTART" ] || DENYSTART=yes
  DENIAL_REASON="xdm is already running at pid $(cat /var/run/xdm.pid)"

The fake start-stop-daemon that d-i uses, like the one debootstrap uses,
always returns true, so this test doesn't work. (This could be considered
a bug in debian-installer-utils..)

It seems to me that the easiest fix for this is to not check for a running
xdm if xdm is being freshly installed ($1 = install, $2 = "").

-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages xdm depends on:
ii  cdebconf [debconf-2.0]      0.112        Debian Configuration Management Sy
ii  cpp                         4:4.1.1-15   The GNU C preprocessor (cpp)
ii  debconf [debconf-2.0]       1.5.11       Debian configuration management sy
ii  libc6                       2.3.6.ds1-10 GNU C Library: Shared libraries
ii  libice6                     1:1.0.1-2    X11 Inter-Client Exchange library
ii  libpam0g                    0.79-4       Pluggable Authentication Modules l
ii  libselinux1                 1.32-3       SELinux shared libraries
ii  libsm6                      1:1.0.1-3    X11 Session Management library
ii  libx11-6                    2:1.0.3-4    X11 client-side library
ii  libxau6                     1:1.0.1-2    X11 authorisation library
ii  libxaw7                     1:1.0.2-4    X11 Athena Widget library
ii  libxdmcp6                   1:1.0.1-2    X11 Display Manager Control Protoc
ii  libxext6                    1:1.0.1-2    X11 miscellaneous extension librar
ii  libxinerama1                1:1.0.1-4.1  X11 Xinerama extension library
ii  libxmu6                     1:1.0.2-2    X11 miscellaneous utility library
ii  libxpm4                     1:3.5.5-2    X11 pixmap library
ii  libxt6                      1:1.0.2-2    X11 toolkit intrinsics library
ii  x11-common                  1:7.1.0-10   X Window System (X.Org) infrastruc
ii  xbase-clients               1:7.1.ds1-2  miscellaneous X clients

xdm recommends no packages.

-- debconf information excluded

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature


Reply to: