tags 349330 patch
thanks

Ralf Angeli <[EMAIL PROTECTED]> wrote:

> * Frank Küster (2006-01-23) writes:
>
>> Christopher J Peikert <[EMAIL PROTECTED]> wrote:
>>
>>> After reading the install log for auctex, I installed autoconf, and
>>> auctex configured properly.  I can't imagine that this would be an
>>> intended dependency, but it suffices as a workaround.
>>
>> Indeed, auctex cannot be installed in a clean pbuilder chroot.  It
>> additionally needs autoconf and a gs implementation.
>>
>> I think in the long term, the packaging should be optimized so that the
>> autoconf dependency can be dropped - IMHO development packages should be
>> avoided as desktop packages' dependencies.
>
> autoconf is not required for configuring AUCTeX proper.  Maybe some
> file dates in the Debian package got messed up and the Makefile now
> thinks it has to regenerate the configure script?

autoconf -I is run in the preview subdirectory, after calling "make
install-el".  This is the listing in the directory before the postinst
is run:

# ls --time-style=full-iso -lt usr/share/emacs/site-lisp/auctex/preview/
total 352
drwxr-xr-x 2 root root   4096 2006-01-21 14:49:55.000000000 +0000 latex
-rw-r--r-- 1 root root   5051 2006-01-21 14:49:53.000000000 +0000 Makefile.in
-rw-r--r-- 1 root root    183 2006-01-21 14:49:53.000000000 +0000 auto.el
-rw-r--r-- 1 root root    124 2006-01-21 14:49:53.000000000 +0000 auto.el.in
-rw-r--r-- 1 root root   6997 2006-01-21 14:49:53.000000000 +0000 configure.ac
-rw-r--r-- 1 root root 125852 2006-01-21 14:49:53.000000000 +0000 preview.el
-rw-r--r-- 1 root root  21770 2006-01-21 14:49:53.000000000 +0000 prv-emacs.el
-rw-r--r-- 1 root root   4900 2006-01-21 14:49:53.000000000 +0000 prv-install.el
-rw-r--r-- 1 root root  28089 2006-01-21 14:49:53.000000000 +0000 prv-xemacs.el
-rwxr-xr-x 1 root root 134903 2006-01-21 14:49:52.000000000 +0000 configure

So every file has the same age (probably that of the packaging).  I'm
not sure why make is trying to to remake configure - obviously "as new
as" counts as "newer than", and it might well be that again this is a
question of kernel 2.4 vs. 2.6.

Anyway, this small patch fixes the autoconf problem:

diff -ur auctex-11.81.orig/debian/rules.in auctex-11.81/debian/rules.in
--- auctex-11.81.orig/debian/rules.in   2006-01-24 14:14:42.236917528 +0100
+++ auctex-11.81/debian/rules.in        2006-01-24 13:35:30.000000000 +0100
@@ -16,7 +16,7 @@
 SHELL := /bin/bash
 INSTDIR := install -m 755 -d
 INSTPROG := install -m 755 -s
-INSTDATA := install -m 644
+INSTDATA := install -p -m 644
 INSTSCRIPT := install -m 755
 STRIP := strip -R .note -R .comment

After this, I get in the deb:

$ ls -lt usr/share/emacs/site-lisp/auctex/preview/
total 352
-rwxr-xr-x  1 frank frank 134903 2006-01-24 13:43 configure
drwxr-xr-x  2 frank frank   4096 2006-01-24 13:43 latex
-rw-r--r--  1 frank frank    183 2006-01-24 13:42 auto.el
-rw-r--r--  1 frank frank   5051 2006-01-24 13:42 Makefile.in
-rw-r--r--  1 frank frank 125852 2005-09-24 21:15 preview.el
-rw-r--r--  1 frank frank   6997 2005-08-18 10:39 configure.ac
-rw-r--r--  1 frank frank  21770 2005-07-11 23:54 prv-emacs.el
-rw-r--r--  1 frank frank  28089 2005-07-11 23:54 prv-xemacs.el
-rw-r--r--  1 frank frank   4900 2005-06-24 10:14 prv-install.el
-rw-r--r--  1 frank frank    124 2005-04-11 11:01 auto.el.in

and it installs just fine.

So together with the added dependency on "gs-gpl | gs" (or any other gs
default, at Davide's discretion), this should fix the bug.

Regards, Frank
-- 
Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX)


Reply via email to