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

Bug#443004: dexconf: error: cannot generate configuration file; shared/default-x-server not



On Tue, Sep 18, 2007 at 11:51:06 +0200, pier wrote:

> I tried to install x-window-system-core to use use xorg.
> After the debconf setup, i get this error:
> 
> dexconf: error: cannot generate configuration file; shared/default-x-server not
> set.  Aborting.  Reconfigure the X server with "dpkg-reconfigure" to correct
> this problem.
> 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
> 
> xorg.conf is actually empty.
> 
Hi,

this is caused by a change in 1:7.2.ds3-1 to drop the server detection
code, which actually dropped too much...
I think the following patch will help, and I'll commit something like
that once I've tested it.  It sets the shared/default-x-server variable
to 'xserver-xorg', which should allow dexconf to work again (at least in
theory).

Cheers,
Julien

diff --git a/debian/changelog b/debian/changelog
index 5ad2fc0..6602423 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+xorg (1:7.3+3) UNRELEASED; urgency=low
+
+  * xserver-xorg.postinst: set the shared/default-x-server debconf variable,
+    since dexconf uses it (closes: #443004).
+
+ -- Julien Cristau <jcristau@debian.org>  Tue, 18 Sep 2007 19:36:56 +0200
+
 xorg (1:7.3+2) unstable; urgency=low
 
   * Upload to unstable
diff --git a/debian/xserver-xorg.postinst.in b/debian/xserver-xorg.postinst.in
index 887f76c..c5c9ff7 100644
--- a/debian/xserver-xorg.postinst.in
+++ b/debian/xserver-xorg.postinst.in
@@ -759,6 +759,12 @@ if [ -n "$FIRSTINST" ] || [ -n "$RECONFIGURE" ]; then
           db_reset xserver-xorg/config/device/$param
       done
 
+      # now the default-x-server question may be asked
+      db_fget shared/default-x-server seen
+      debug_echo "seen flag of shared/default-x-server is $RET"
+      debug_echo "db_input $(priority_ceil low) shared/default-x-server"
+      auto_answer db_input $(priority_ceil low) shared/default-x-server "$THIS_PACKAGE"
+
       # priority of xserver-xorg/config/device/driver
       PRIORITY=medium
       if [ -n "$RECONFIGURE" ]; then




Reply to: