tags 370659 + confirmed patch thanks >>>>> fant == Frank Küster [2006-6-6]
fant> Package: auctex fant> Version: 11.82-1 fant> Severity: normal fant> $ apt-get install auctex fant> ... emacs21 is also installed... fant> Setting up emacs21 (21.4a-3) ... fant> emacs-install emacs21 fant> install/auctex: Setting up for emacs21... done. fant> auctex: Debconf passed unknown value `10 auctex/doauto doesn't exist'. fant> emacsen-common: Handling install of emacsen flavor emacs21 Hi Frank, I can confirm this bug. I tested it on a minimal sid chroot and it resulted in the following log (aptitude was used to install auctex): --8<---------------cut here---------------start------------->8--- [...] Setting up emacs21 (21.4a-6) ... emacs-install emacs21 install/auctex: Setting up for emacs21... emacs-install: /usr/lib/emacsen-common/packages/install/auctex emacs21 failed at /usr/lib/emacsen-common/emacs-install line 28, <TSORT> line 3. dpkg: error processing emacs21 (--configure): subprocess post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of auctex: auctex depends on emacs21 | emacs-snapshot; however: Package emacs21 is not configured yet. Package emacs-snapshot is not installed. dpkg: error processing auctex (--configure): dependency problems - leaving unconfigured [...] Errors were encountered while processing: emacs21 auctex E: Sub-process /usr/bin/dpkg returned an error code (1) A package failed to install. Trying to recover: Setting up emacs21 (21.4a-6) ... emacs-install emacs21 install/auctex: Setting up for emacs21... done. auctex: Debconf passed unknown value `10 auctex/doauto doesn't exist'. [...] Setting up auctex (11.83-1) ... install/auctex: Setting up for emacs21... done. update-auctex-elisp[11330]: Further output will appear in: /tmp/update-auctex-elisp.XMrDx83. [...] --8<---------------cut here---------------end--------------->8--- Note that the first attempt failed. I retested the install with "apt-get install auctex" and it resulted in the following log: --8<---------------cut here---------------start------------->8--- [...] Setting up emacs21 (21.4a-6) ... emacs-install emacs21 install/auctex: Setting up for emacs21... emacs-install: /usr/lib/emacsen-common/packages/install/auctex emacs21 failed at /usr/lib/emacsen-common/emacs-install line 28, <TSORT> line 2. dpkg: error processing emacs21 (--configure): subprocess post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of auctex: auctex depends on emacs21 | emacs-snapshot; however: Package emacs21 is not configured yet. Package emacs-snapshot is not installed. dpkg: error processing auctex (--configure): dependency problems - leaving unconfigured [...] Setting up gs-gpl (8.50-1.1) ... [...] Errors were encountered while processing: emacs21 auctex E: Sub-process /usr/bin/dpkg returned an error code (1) --8<---------------cut here---------------end--------------->8--- The CompilationLog read: --8<---------------cut here---------------start------------->8--- checking for make... make checking whether make sets $(MAKE)... yes checking for a BSD-compatible install... /usr/bin/install -c checking for date in ChangeLog... 2006-06-07 checking for release in ChangeLog... 11.83 checking for emacs21... /usr/bin/emacs21 checking if /usr/bin/emacs21 is XEmacs... no checking for Emacs prefix... "/usr" checking if Emacs is recent enough... yes checking for mule support... yes checking where lisp files go... /usr/share/emacs21/site-lisp/ checking what file to use for auctex startup... /usr/share/emacs21/site-lisp//auctex.el checking where the package lisp files go... /usr/share/emacs21/site-lisp//auctex checking where the data files go... /usr/share/emacs21/site-lisp//auctex checking where the info files go... ${prefix}/info checking where automatically generated global style hooks go... /var/lib/auctex/emacs21/ checking for tex... /usr/bin/tex checking for pdftex... /usr/bin/pdftex checking for dvips... /usr/bin/dvips checking for perl... /usr/bin/perl checking for makeinfo... : checking for texi2html... : checking for texi2dvi... : checking for texi2pdf... : checking for install-info... /usr/sbin/install-info configure: creating ./config.status config.status: creating Makefile config.status: creating tex-site.el.out config.status: creating doc/Makefile config.status: creating auctex.el configure: configuring in preview configure: running /bin/sh './configure' --prefix=/usr/ '--disable-build-dir-test' '--prefix=/usr/' '--with-emacs=emacs21' '--with-lispdir=/usr/share/emacs21/site-lisp/' '--with-texmf-dir=/usr/share/texmf/' '--with-auto-dir=/var/lib/auctex/emacs21/' --cache-file=/dev/null --srcdir=. checking whether make sets $(MAKE)... yes checking for a BSD-compatible install... /usr/bin/install -c checking for emacs21... /usr/bin/emacs21 checking if /usr/bin/emacs21 is XEmacs... no checking for Emacs prefix... "/usr" checking if Emacs is recent enough... yes checking where lisp files go... /usr/share/emacs21/site-lisp/ checking what file to use for preview startup... /usr/share/emacs21/site-lisp//preview-latex.el checking where the package lisp files go... /usr/share/emacs21/site-lisp//auctex checking where the data files go... /usr/share/emacs21/site-lisp//auctex checking for the location of AUCTeX's tex-site.el... .. checking for gs... no checking for GSWIN32C.EXE... no configure: error: Ghostscript not found! Aborting! You need Ghostscript in your PATH for preview to work. configure: error: /bin/sh './configure' failed for preview --8<---------------cut here---------------end--------------->8--- Then I retested the whole thing doing an "apt-get install gs-gpl" before "apt-get install auctex": --8<---------------cut here---------------start------------->8--- [...] Setting up emacs21 (21.4a-6) ... emacs-install emacs21 install/auctex: Setting up for emacs21... done. update-auctex-elisp[12015]: Further output will appear in: /tmp/update-auctex-elisp.lqk6669. [...] Setting up auctex (11.83-1) ... install/auctex: Setting up for emacs21... done. update-auctex-elisp[13515]: Further output will appear in: /tmp/update-auctex-elisp.Fs12132. --8<---------------cut here---------------end--------------->8--- It seems we need a "Pre-Depends: gs-gpl | gs" (I think this is because "/usr/bin/gs" is managed through the alternatives mechanism, so that it does not exist until a Ghostscript providing package has been configured). Can you confirm that installing a Ghostscript providing package will solve the issue? P.S. Also note that "install/auctex" gets called two times, one at emacs21 setting up time, the other at auctex's. This is a general issue with emacsen add-on packages. I don't know if anyone has proposed a solution to avoid the unneeded double call: suggestions and workarounds are appreciated. -- Thanks, Davide