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

Bug#206916: xserver-common: postinst fails if /var/lib/xfree86 does not exist



Package: xserver-common
Version: 4.2.1-10
Severity: grave
Tags: sid patch
Justification: renders package unusable

I was installing X on a new laptop and went from a testing version of 
woody DVD I had stright to sid (via ftp) so no Xfree86 packages had been
installed before.

The postinst script errored reporting that the file does not exist.  A
quick check showed that /var/lib/xfree86 does not exist.

246 XWRAPPER_CONFIG=/etc/X11/Xwrapper.config
247 CHECKSUM_DIR=/var/lib/xfree86
248 XWRAPPER_CONFIG_CHECKSUM="$CHECKSUM_DIR/$(basename "$XWRAPPER_CONFIG").md5sum"
249 XWRAPPER_CONFIG_ROSTER="$CHECKSUM_DIR/$(basename "$XWRAPPER_CONFIG").roster"
   .
   .
   .
260 # register this package as a (potential) handler of the X server wrapper config
261 # file
262 if ! fgrep -qsx "$THIS_PACKAGE" "$XWRAPPER_CONFIG_ROSTER" ]; then
263   echo "$THIS_PACKAGE" >> "$XWRAPPER_CONFIG_ROSTER"
264 fi

PATCH
-----
I suggest you add the line
   mkdir -p `dirname $XWRAPPER_CONFIG_ROSTER`
between lines 262 & 263

Steve
-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux guwush 2.2.20-idepci #1 Sat Apr 20 12:45:19 EST 2002 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages xserver-common depends on:
ii  debconf                       1.3.11     Debian configuration management sy
ii  libc6                         2.3.2-3    GNU C Library: Shared libraries an
ii  xfree86-common                4.2.1-10   X Window System (XFree86) infrastr

-- debconf information:
  xserver-common/xwrapper/nice_value/error: 
  xserver-common/xwrapper/allowed_users: Console Users Only
  xserver-common/xwrapper/actual_allowed_users: console
  xserver-common/xwrapper/nice_value: -10





Reply to: