--- Begin Message ---
Package: tex-common
Version: 2.06
Severity: normal
Tags: patch
When tex-common is triggered, it tests to see whether latex is
installed, and if so runs fmtutil-sys --byhypen. Then it does the
same test for plain tex, and so if both are installed, fmtutil-sys
--byhyphen will be run twice. The attached patch should fix this
problem.
Also, when I tried to save the file, emacs complained as Frank's name
was written with a legacy encoding, so I have changed this to Unicode
in this same patch.
Congrats on texlive 2009 making it into testing!
Julian
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.30-2-686 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_GB.UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages tex-common depends on:
ii debconf [debconf-2.0] 1.5.28 Debian configuration management sy
ii dpkg 1.15.5.6 Debian package management system
ii ucf 3.0025 Update Configuration File: preserv
tex-common recommends no packages.
Versions of packages tex-common suggests:
ii debhelper 7.4.11 helper programs for debian/rules
Versions of packages texlive-base depends on:
ii dpkg 1.15.5.6 Debian package management system
ii install-info 4.13a.dfsg.1-5 Manage installed documentation in
ii luatex 0.50.0-1 next generation TeX engine
ii mime-support 3.48-1 MIME files 'mime.types' & 'mailcap
ii texlive-binaries 2009-5 Binaries for TeX Live
ii texlive-common 2009-7 TeX Live: Base component
ii texlive-doc-base 2009-2 TeX Live: TeX Live documentation
-- debconf information:
tetex-base/olddat: true
tetex-base/fmtutil-failed:
tex-common/check_texmf_wrong:
tex-common/check_texmf_missing:
tex-common/singleuser: false
tetex-base/oldupdm:
tetex-base/updmap-failed:
--- /var/lib/dpkg/info/tex-common.postinst 2010-01-12 11:38:24.000000000 +0000
+++ /tmp/tex-common.postinst 2010-01-25 21:36:53.000000000 +0000
@@ -3,7 +3,7 @@
# postinst maintainer script for the Debian package.
# $Id: postinst.in 4537 2010-01-12 11:33:17Z preining $
-# Copyright (C) 2004 by Frank Küster <frank@kuesterei.ch>.
+# Copyright (C) 2004 by Frank Küster <frank@kuesterei.ch>.
#
# The eperl code is taken from the auctex package, Copyright (C) 1999,
# 2000, 01, 02, 03, 04 by Davide Giovanni Maria Salvetti.
@@ -138,7 +138,7 @@
# # #################################################################
## Function definitions - included from file common.functions
#################################################################
-# Copyright (C) 2004, 05, 06 by Frank Küster <frank@debian.org>.
+# Copyright (C) 2004, 05, 06 by Frank Küster <frank@debian.org>.
# Copyright (C) 2006 by Julian Gilbey <jdg@debian.org>.
# $Id: common.functions.in 3911 2009-05-10 13:38:40Z preining $
@@ -906,28 +906,10 @@
export TEXMFVAR TEXMFCONFIG
fmtcnffile=$(kpsewhich --format='web2c files' fmtutil.cnf)
X=$(grep "^[[:space:]]*latex[[:space:]]" $fmtcnffile || true)
- if [ -n "$X" ] ; then
- # latex is installed so we can actually try to recreate
- # formats based on language.dat
- tempfile=$(mktemp -p /tmp fmtutil.XXXXXXXX)
- printf "Building formats --byhyphen $(kpsewhich language.dat).\n\tThis may take some time... "
- if fmtutil-sys --byhyphen "$(kpsewhich language.dat)" > $tempfile 2>&1 ; then
- rm -f $tempfile
- echo "done."
- else
- exec >&2
- echo
- echo "fmtutil-sys failed. Output has been stored in"
- echo "$tempfile"
- echo "Please include this file if you report a bug."
- echo
- exit 1
- fi
- fi
Y=$(grep "^[[:space:]]*tex[[:space:]]" $fmtcnffile || true)
- if [ -n "$Y" ] ; then
- # tex is installed so we can actually try to recreate
- # formats based on language.def
+ if [ -n "$X" -o -n "$Y" ] ; then
+ # latex or tex is installed so we can actually try to
+ # recreate formats based on language.def
tempfile=$(mktemp -p /tmp fmtutil.XXXXXXXX)
printf "Building formats --byhyphen $(kpsewhich language.def).\n\tThis may take some time... "
if fmtutil-sys --byhyphen "$(kpsewhich language.def)" > $tempfile 2>&1 ; then
--- End Message ---
--- Begin Message ---
Hi Julian,
great that you look into our scripts .... but ...
On Mo, 25 Jan 2010, Julian Gilbey wrote:
> When tex-common is triggered, it tests to see whether latex is
> installed, and if so runs fmtutil-sys --byhypen. Then it does the
Yes, once for
language.dat
once for
language.def
That is intended this way.
Those recreate *different* formats, they *have* to be run both!
Your patch would make latex based formats not be updated because
latex based formats use language.DAT and with your patch only
language.DEF, that is plain (e)tex based formats are updated.
> - if fmtutil-sys --byhyphen "$(kpsewhich language.dat)" > $tempfile 2>&1 ; then
...
> if fmtutil-sys --byhyphen "$(kpsewhich language.def)" > $tempfile 2>&1 ; then
It *is* a slight difference, but important ....
Closing this bug, I hope you agree ;-)
Best wishes
Norbert
------------------------------------------------------------------------
Norbert Preining preining@{jaist.ac.jp, logic.at, debian.org}
JAIST, Japan TU Wien, Austria Debian TeX Task Force
DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094
------------------------------------------------------------------------
SNITTERBY (n.)
Someone who pins snitters (q.v.) on to snitterfields (q.v.) and is
also suspected of being responsible for the extinction of virginstows
(q.v.)
--- Douglas Adams, The Meaning of Liff
--- End Message ---