[subversion-commit] SVN tex-common commit + diffs: r1677 -
tex-common/trunk/debian
Frank Küster
frank at costa.debian.org
Fri Oct 6 10:46:38 UTC 2006
Author: frank
Date: 2006-10-06 10:46:37 +0000 (Fri, 06 Oct 2006)
New Revision: 1677
Modified:
tex-common/trunk/debian/changelog
tex-common/trunk/debian/postinst.in
Log:
back out the installation of tetex-bin-upgrade, instead install
cleanup code in postinst
Modified: tex-common/trunk/debian/changelog
===================================================================
--- tex-common/trunk/debian/changelog 2006-10-06 10:44:39 UTC (rev 1676)
+++ tex-common/trunk/debian/changelog 2006-10-06 10:46:37 UTC (rev 1677)
@@ -1,9 +1,13 @@
-tex-common (0.31~1) unstable; urgency=low
+tex-common (0.31~1) unstable; urgency=medium
* Document in policy that font cache data have to be cleaned by packages
- that Build-Depend on TeX, and how to do that [frank]
+ that Build-Depend on TeX, and how to do that (closes: #388399) [frank]
+ * On systems upgraded from woody to sarge, tetex-bin generated a bogus
+ local configuration file with entries that were erroneously detected
+ as locally changed. These entries are now harmful and break texlive,
+ and the file is therefore renamed if it meets our expectations [frank]
- -- Frank Küster <frank at debian.org> Thu, 5 Oct 2006 18:48:12 +0200
+ -- Frank Küster <frank at debian.org> Fri, 6 Oct 2006 12:19:30 +0200
tex-common (0.30) unstable; urgency=high
Modified: tex-common/trunk/debian/postinst.in
===================================================================
--- tex-common/trunk/debian/postinst.in 2006-10-06 10:44:39 UTC (rev 1676)
+++ tex-common/trunk/debian/postinst.in 2006-10-06 10:46:37 UTC (rev 1677)
@@ -89,6 +89,38 @@
done
fi
+# if the machine was originally upgraded from woody to sarge, and now
+# to etch, it will have a bogus generated configuration file. This
+# will break with TeXlive, therefore we remove it
+ bogusfile=/etc/texmf/fmt.d/99postinst.cnf
+ if [ -f $bogusfile ]; then
+ tmpfile=`mktemp`
+ egrep -v \
+ "mf[[:space:]]*mf[[:space:]]*-[[:space:]]*mf.ini|\
+mfw[[:space:]]*mfw[[:space:]]*-[[:space:]]*mf.ini|\
+pdftex[[:space:]]*pdftex[[:space:]]*language.dat[[:space:]]*pdftex.ini|\
+omega[[:space:]]*omega[[:space:]]*language.dat*[[:space:]]*omega.ini" \
+ $bogusfile > $tmpfile
+ if ! egrep -v '^#|^[[:space:]]*$' $DESTFILE >/dev/null; then
+ # only comments in tmpfile
+ cat >> $bogusfile.bak <<EOF
+
+This file has been renamed by the post-installation script of
+tex-common. It is unused and contains only lines that were
+erroneously detected as being a local configuration file change.
+
+
+EOF
+ cat $bogusfile >> $bogusfile.bak
+ chmod 664 $bogusfile.bak
+ chown root:root $bogusfile.bak
+ rm $bogusfile
+ fi
+ rm $tmpfile
+ fi
+
+
+
update-texmf
# Now we check for some essential settings
checkfailed=false
More information about the Pkg-tetex-commits
mailing list