--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: runs fmtutil-sys --byhyphen twice when triggered
- From: Julian Gilbey <jdg@debian.org>
- Date: Mon, 25 Jan 2010 21:40:38 +0000
- Message-id: <20100125214038.8057.86161.reportbug@ip6-localhost>
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 ---
Source: tex-common
Source-Version: 2.07
We believe that the bug you reported is fixed in the latest version of
tex-common, which is due to be installed in the Debian FTP archive:
tex-common_2.07.dsc
to main/t/tex-common/tex-common_2.07.dsc
tex-common_2.07.tar.gz
to main/t/tex-common/tex-common_2.07.tar.gz
tex-common_2.07_all.deb
to main/t/tex-common/tex-common_2.07_all.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 566915@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Norbert Preining <preining@debian.org> (supplier of updated tex-common package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Sun, 28 Feb 2010 13:13:35 +0900
Source: tex-common
Binary: tex-common
Architecture: source all
Version: 2.07
Distribution: unstable
Urgency: high
Maintainer: Debian TeX maintainers <debian-tex-maint@lists.debian.org>
Changed-By: Norbert Preining <preining@debian.org>
Description:
tex-common - common infrastructure for building and installing TeX
Closes: 566915 571334
Changes:
tex-common (2.07) unstable; urgency=high
.
* reword the language.{dat,def} trigger action's message to include
the name of the base format (Closes: #566915)
* convert some files to UTF8
* work around an under-specification of dpkg-query that makes the calls
to it in the configure script break configuration, and thus creates
FTBFS of unrelated packages (Closes: #571334)
* bump standards version to 3.8.4, no changes necessary
Checksums-Sha1:
a839e9f7593afb4ad61125b6f76527ad4b81b8dd 1130 tex-common_2.07.dsc
172a24e8e87314250d0802229ca34f54c02e3a26 807316 tex-common_2.07.tar.gz
8b3050e21e38c91faf1b3fbea2f93c51fe30d375 724058 tex-common_2.07_all.deb
Checksums-Sha256:
4bda178df33d41480a369435997cac593b3f6513b5132db5490674a17584ad81 1130 tex-common_2.07.dsc
0f9fa404b223e65e2cf27f3eab394a5d9bea17ca75271d8ffd7945372542a3e8 807316 tex-common_2.07.tar.gz
b7f1a8e5ce50a3f1994a70f9c10abd227d0684d2bacc82a88911493178d778cd 724058 tex-common_2.07_all.deb
Files:
b80e1323a1aba7d3486aefcf72d44ab7 1130 tex optional tex-common_2.07.dsc
78b103e482387dd434edc155112f2f6b 807316 tex optional tex-common_2.07.tar.gz
9c8c0c5601d33e19b9b4ac5d4f7892a0 724058 tex optional tex-common_2.07_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iD8DBQFLie8T0r9KownFsJQRAmYsAJ0V4gqF3J2HMPgT868Yrn5+e42OYQCfWr8u
ueTex4xs8Vr5jvwDFgaEFeo=
=a2fW
-----END PGP SIGNATURE-----
--- End Message ---