Bug#405782: [xserver-xorg] dpkg-reconfigure xserver-xorg stuck

2007-01-06 Thread Boris Dores
Package: xserver-xorg
Version: 1:7.1.0-9
Severity: grave

  Hi everyone,

  It would seem that dpkg-reconfigure xserver-xorg never succeeds to
update /etc/X11/xorg.conf any more.

  At the end of the questions part, the following is displayed on the
console :

xserver-xorg postinst warning: overwriting possibly-customised configuration
   file; backup in /etc/X11/xorg.conf.20070106082628
rm: cannot remove directory `/tmp/dexconf-tmp-6475': Directory not empty.
xserver-xorg postinst warning: error while preparing new Xorg X server
   configuration file in /etc/X11/xorg.conf.dpkg-new; not attempting to
   update existing configuration

  However, /tmp/dexconf-tmp-* is always empty (afterwards at
least), and manually running dexconf generates a perfectly working
/etc/X11/xorg.conf (even though it displays the same Directory not
empty warning).

  I tried the same procedure on 4 newly installed hosts (debootstrap of
etch to a nfsroot), and again after manually running dexconf, it always
fails.

  Thanks.
  Best regards.

-- 
Boris Dorès



Bug#405782: [xserver-xorg] dpkg-reconfigure xserver-xorg stuck

2007-01-06 Thread Boris Dores
On Sat, Jan 06, 2007 at 06:04:54PM (GMT+0100), Brice Goglin wrote:
 Ok great, thanks. I have reproduced the problem with a chroot and a
 locally-nfs-mounted /tmp. The problem is caused by /usr/bin/dexconf not
 closing a redirection before exiting. File descriptor 4 was kept open,
 pointing to /tmp/dexconf-tmp-/DRI. Adding exec 4- solves the
 problem. Patch attached.

  I confirm. Works fine now.
  Thanks a lot.

-- 
Boris Dorès