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

Bug#276034: marked as done (xdm postinst dies when shared/default-x-display-manager/daemon_name not found)



Your message dated Mon, 18 Oct 2004 07:57:45 -0500
with message-id <20041018125745.GG7091@redwald.deadbeast.net>
and subject line Bug#276034: xdm postinst dies when shared/default-x-display-manager/daemon_name not found
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 11 Oct 2004 17:49:40 +0000
>From normanr@gmail.com Mon Oct 11 10:49:40 2004
Return-path: <normanr@gmail.com>
Received: from rproxy.gmail.com (mproxy.gmail.com) [64.233.170.197] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1CH4Im-0004kE-00; Mon, 11 Oct 2004 10:49:40 -0700
Received: by mproxy.gmail.com with SMTP id 77so555987rnl
        for <submit@bugs.debian.org>; Mon, 11 Oct 2004 10:49:39 -0700 (PDT)
Received: by 10.38.73.61 with SMTP id v61mr1753382rna;
        Mon, 11 Oct 2004 10:49:39 -0700 (PDT)
Received: by 10.38.82.25 with HTTP; Mon, 11 Oct 2004 10:49:39 -0700 (PDT)
Message-ID: <[🔎] 5b698f5a04101110496ae26c04@mail.gmail.com>
Date: Mon, 11 Oct 2004 19:49:39 +0200
From: Norman Rasmussen <normanr@gmail.com>
Reply-To: norman@rasmussen.org
To: submit@bugs.debian.org
Subject: xdm postinst dies when shared/default-x-display-manager/daemon_name not found
In-Reply-To: <E1CH46L-0007qv-25@darkskies.za.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
References: <E1CH46L-0007qv-25@darkskies.za.net>
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

Package: xdm
Version: 4.3.0.dfsg.1-8
Followup-For: Bug #226292

Hi there,

I am reporting this because it breaks on my system during upgrade, and
I assume that it will probably do it for lots of people that would
probably want it to work for the sarge release

dpkg dies during a standard apt-get upgrade, during the xdm postinst
step.

# /usr/share/debconf/frontend sh -x /var/lib/dpkg/info/xdm.postinst
(i have included the full listing, even though i know the last bit is
the good bit)
+ set -e
+ . /usr/share/debconf/confmodule
++ '[' '!' 1 ']'
++ '[' -z '' ']'
++ exec
++ DEBCONF_REDIR=1
++ export DEBCONF_REDIR
+ THIS_PACKAGE=xdm
+ THIS_SCRIPT=postinst
+ SOURCE_VERSION=4.3.0.dfsg.1-8
+ OFFICIAL_BUILD=yes
+ SHELL_LIB_INTERNAL_ERROR=86
+ SHELL_LIB_THROWN_ERROR=74
+ SHELL_LIB_USAGE_ERROR=99
+ '[' -z xdm ']'
+ '[' -z postinst ']'
+ trap 'message;      message "Received signal.  Aborting xdm package
postinst script.";      message;      exit 1' HUP INT QUIT TERM
++ stty size
++ awk '{print $2}'
+ DEFCOLUMNS=
+ expr '' : '[[:digit:]]\+$'
+ DEFCOLUMNS=80
+ which readlink
+ check_symlinks_and_bomb /usr/X11R6/lib/X11/xdm
+ local problem symlink
+ '[' 1 -lt 1 ']'
+ '[' -n /usr/X11R6/lib/X11/xdm ']'
+ problem=
+ symlink=/usr/X11R6/lib/X11/xdm
+ '[' -L /usr/X11R6/lib/X11/xdm ']'
+ check_symlink /usr/X11R6/lib/X11/xdm
+ local symlink
+ '[' 1 -ne 1 ']'
+ symlink=/usr/X11R6/lib/X11/xdm
++ maplink /usr/X11R6/lib/X11/xdm
++ echo /etc/X11/xdm
++ readlink /usr/X11R6/lib/X11/xdm
+ '[' /etc/X11/xdm = /etc/X11/xdm ']'
+ return 0
+ '[' -n '' ']'
+ shift
+ '[' -n '' ']'
+ '[' -e /usr/X11R6/lib/X11/xdm.moved-by-preinst ']'
+ remove_conffile_commit /etc/X11/xdm/Xreset
+ local conffile
+ '[' 1 -ne 1 ']'
+ conffile=/etc/X11/xdm/Xreset
+ '[' -e /etc/X11/xdm/Xreset.xdm-tmp ']'
+ remove_conffile_commit /etc/X11/xdm/Xsetup
+ local conffile
+ '[' 1 -ne 1 ']'
+ conffile=/etc/X11/xdm/Xsetup
+ '[' -e /etc/X11/xdm/Xsetup.xdm-tmp ']'
+ DEFAULT_DISPLAY_MANAGER_FILE=/etc/X11/default-display-manager
+ '[' '!' -e /etc/X11/default-display-manager ']'
+ DEFAULT_DISPLAY_MANAGER=
+ db_get shared/default-x-display-manager
+ _db_cmd 'GET shared/default-x-display-manager'
+ echo 'GET shared/default-x-display-manager'
+ local 'IFS=
'
+ local _LINE
+ read -r _LINE
+ RET=shared/default-x-display-manager
+ return 0
+ DEFAULT_DISPLAY_MANAGER=shared/default-x-display-manager
+ '[' -n shared/default-x-display-manager ']'
+ DAEMON_NAME=
+ db_get shared/default-x-display-manager/daemon_name
+ _db_cmd 'GET shared/default-x-display-manager/daemon_name'
+ echo 'GET shared/default-x-display-manager/daemon_name'
+ local 'IFS=
'
+ local _LINE
+ read -r _LINE
+ RET=10 shared/default-x-display-manager/daemon_name doesn't exist
+ return 10
+ '[' '!' -n '' ']'
++ which shared/default-x-display-manager
+ DAEMON_NAME=

this then terminates with exit code 1, which stops dpkg processing,
blegh.

/var/cache/debconf/templates.dat contains:

Name: shared/default-x-display-manager
Choices: ${choices}
Description: Select the desired default display manager.
[...]
Type: select
Owners: shared/default-x-display-manager

/var/cache/debconf/config.dat contains

Name: shared/default-x-display-manager
Template: shared/default-x-display-manager
Value: shared/default-x-display-manager
Owners: shared/default-x-display-manager, xdm
Flags: seen
Variables:
choices = shared/default-x-display-manager, xdm

--
Norman Rasmussen
- Email: norman@rasmussen.org
- Home page: http://norman.rasmussen.org/

-- System Information:
Debian Release: 3.1
 APT prefers testing
 APT policy: (500, 'testing')
Architecture: i386 (i586)
Kernel: Linux 2.4.26-1-586tsc
Locale: LANG=en_ZA, LC_CTYPE=en_ZA

Versions of packages xdm depends on:
ii  cpp                       4:3.3.4-2      The GNU C preprocessor (cpp)
ii  debconf [debconf-2.0]     1.4.30.5      Debian configuration management sy
ii  libc6                     2.3.2.ds1-16   GNU C Library: Shared libraries an
ii  libice6                   4.3.0.dfsg.1-8 Inter-Client Exchange library
ii  libpam-modules            0.76-22        Pluggable Authentication Modules f
ii  libpam-runtime            0.76-22        Runtime support for the PAM librar
ii  libpam0g                  0.76-22        Pluggable Authentication Modules l
ii  libsm6                    4.3.0.dfsg.1-8 X Window System Session Management
ii  libxaw7                   4.3.0.dfsg.1-8 X Athena widget set library
ii  libxext6                  4.3.0.dfsg.1-8 X Window System miscellaneous exte
ii  libxmu6                   4.3.0.dfsg.1-8 X Window System miscellaneous util
ii  libxpm4                   4.3.0.dfsg.1-8 X pixmap library
ii  libxt6                    4.3.0.dfsg.1-8 X Toolkit Intrinsics
ii  xbase-clients             4.3.0.dfsg.1-8 miscellaneous X clients
ii  xlibs                     4.3.0.dfsg.1-8 X Window System client libraries m

-- debconf information:
* xdm/default_servers_100dpi:
* shared/default-x-display-manager: shared/default-x-display-manager
* xdm/default_servers_nolisten_tcp:
 xdm/stop_running_server_with_children: false
 xdm/daemon_name: /usr/bin/X11/xdm
* xdm/default_nolisten_udp:


-- 
- Norman Rasmussen
 - Email: norman@rasmussen.org
 - Home page: http://norman.rasmussen.org/

---------------------------------------
Received: (at 276034-done) by bugs.debian.org; 18 Oct 2004 12:57:46 +0000
>From branden@redwald.deadbeast.net Mon Oct 18 05:57:46 2004
Return-path: <branden@redwald.deadbeast.net>
Received: from dhcp065-026-182-085.indy.rr.com (sisyphus.deadbeast.net) [65.26.182.85] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1CJX58-00085Q-00; Mon, 18 Oct 2004 05:57:46 -0700
Received: by sisyphus.deadbeast.net (Postfix, from userid 1000)
	id 3FED368C044; Mon, 18 Oct 2004 07:57:45 -0500 (EST)
Date: Mon, 18 Oct 2004 07:57:45 -0500
From: Branden Robinson <branden@debian.org>
To: 276034-done@bugs.debian.org
Subject: Re: Bug#276034: xdm postinst dies when shared/default-x-display-manager/daemon_name not found
Message-ID: <20041018125745.GG7091@redwald.deadbeast.net>
References: <E1CH46L-0007qv-25@darkskies.za.net> <[🔎] 5b698f5a04101110496ae26c04@mail.gmail.com>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="ZilngB4jitXEoqOO"
Content-Disposition: inline
In-Reply-To: <[🔎] 5b698f5a04101110496ae26c04@mail.gmail.com>
Mail-Copies-To: nobody
X-No-CC: I subscribe to this list; do not CC me on replies.
User-Agent: Mutt/1.5.6+20040907i
Delivered-To: 276034-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 


--ZilngB4jitXEoqOO
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Oct 11, 2004 at 07:49:39PM +0200, Norman Rasmussen wrote:
> Package: xdm
> Version: 4.3.0.dfsg.1-8
> Followup-For: Bug #226292
>=20
> Hi there,
>=20
> I am reporting this because it breaks on my system during upgrade, and
> I assume that it will probably do it for lots of people that would
> probably want it to work for the sarge release
>=20
> dpkg dies during a standard apt-get upgrade, during the xdm postinst
> step.
>=20
> # /usr/share/debconf/frontend sh -x /var/lib/dpkg/info/xdm.postinst
> (i have included the full listing, even though i know the last bit is
> the good bit)
[...]
> + DEFAULT_DISPLAY_MANAGER=3D
> + db_get shared/default-x-display-manager
> + _db_cmd 'GET shared/default-x-display-manager'
> + echo 'GET shared/default-x-display-manager'
> + local 'IFS=3D
> '
> + local _LINE
> + read -r _LINE
> + RET=3Dshared/default-x-display-manager
> + return 0
> + DEFAULT_DISPLAY_MANAGER=3Dshared/default-x-display-manager
> + '[' -n shared/default-x-display-manager ']'
> + DAEMON_NAME=3D
> + db_get shared/default-x-display-manager/daemon_name
> + _db_cmd 'GET shared/default-x-display-manager/daemon_name'
> + echo 'GET shared/default-x-display-manager/daemon_name'
> + local 'IFS=3D
> '
> + local _LINE
> + read -r _LINE
> + RET=3D10 shared/default-x-display-manager/daemon_name doesn't exist
> + return 10
> + '[' '!' -n '' ']'
> ++ which shared/default-x-display-manager
> + DAEMON_NAME=3D
>=20
> this then terminates with exit code 1, which stops dpkg processing,
> blegh.

Your debconf database is corrupt.

> /var/cache/debconf/templates.dat contains:
>=20
> Name: shared/default-x-display-manager
> Choices: ${choices}
> Description: Select the desired default display manager.
> [...]
> Type: select
> Owners: shared/default-x-display-manager
>=20
> /var/cache/debconf/config.dat contains
>=20
> Name: shared/default-x-display-manager
> Template: shared/default-x-display-manager
> Value: shared/default-x-display-manager
> Owners: shared/default-x-display-manager, xdm
> Flags: seen
> Variables:
> choices =3D shared/default-x-display-manager, xdm

The template's own name should not be a choice.

I have seen this myself on some systems that have been steadily upgraded
through the lifetime of unstable since woody was released; but Joey Hess
was never able to find the cause.

It is possible some brain-damaged maintainer script in a display manager
package did this.  I'm pretty sure xdm never did, as I have always used the
method documented in the debconf manual.

That is:

db_metaget $template owners
owners=3D$RET
db_subst $template choice "$owners"

You might see if one of your installed display managers is doing things a
bit differently.

If no package in woody did things wrongly, I'm not sure this is worth
cleaning up after in the packages.  You can un-corrupt your debconf
database from the command line with debconf-communicate(1).

Closing.

--=20
G. Branden Robinson                |      Mob rule isn't any prettier just
Debian GNU/Linux                   |      because you call your mob a
branden@debian.org                 |      government.
http://people.debian.org/~branden/ |

--ZilngB4jitXEoqOO
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iEYEARECAAYFAkFzvckACgkQ6kxmHytGonz1rQCfXwdVDDcUSLRjViYfPV+csIkR
3pkAmwYiqCEWbsb7hPnKqBdsF2utOpn4
=n+Uf
-----END PGP SIGNATURE-----

--ZilngB4jitXEoqOO--



Reply to: