[Debian-tex-commits] SVN tex-common commit + diffs: r4777 - tex-common/trunk/debian

Norbert Preining preining at alioth.debian.org
Sun Dec 26 05:18:32 UTC 2010


Author: preining
Date: 2010-12-26 05:18:31 +0000 (Sun, 26 Dec 2010)
New Revision: 4777

Modified:
   tex-common/trunk/debian/changelog
   tex-common/trunk/debian/postinst.in
Log:
prepare for new tex-common which fixes the ls-R file creation in /u/l/s/texmf


Modified: tex-common/trunk/debian/changelog
===================================================================
--- tex-common/trunk/debian/changelog	2010-12-14 02:24:23 UTC (rev 4776)
+++ tex-common/trunk/debian/changelog	2010-12-26 05:18:31 UTC (rev 4777)
@@ -1,3 +1,11 @@
+tex-common (2.09) unstable; urgency=low
+
+  * fix creation of ls-R files in /usr/local/share/texmf by updmap-sys
+    which is called in the trigger section of tex-common's postinst.
+    This fixes a policy violation. (Closes: #607857)
+
+ -- Norbert Preining <preining at debian.org>  Sun, 26 Dec 2010 14:14:18 +0900
+
 tex-common (2.08) unstable; urgency=low
 
   * include again 80DVIPDFMx.cnf and replace dvipdfmx (if it is still there)

Modified: tex-common/trunk/debian/postinst.in
===================================================================
--- tex-common/trunk/debian/postinst.in	2010-12-14 02:24:23 UTC (rev 4776)
+++ tex-common/trunk/debian/postinst.in	2010-12-26 05:18:31 UTC (rev 4777)
@@ -141,9 +141,31 @@
                     else
                         tempfile=$(mktemp -p /tmp updmap.XXXXXXXX)
                         printf "Running updmap-sys. This may take some time... "
-                        if updmap-sys > $tempfile 2>&1 ; then
+                        # call updmap with --nohash so that no ls-R files
+                        # are created in /usr/local/share/texmf/
+                        # see bug report #607857
+                        # instead of that we call mktexlsr /var/lib/texmf
+                        # afterwards. This can be done without checks as
+                        # we know that dhit_libkpathsea_configured and
+                        # since mktexlsr and updmap are in the same package
+                        # and we checked for updmap already
+                        if updmap-sys --nohash > $tempfile 2>&1 ; then
                             rm -f $tempfile
                             echo "done."
+                            tempfile=$(mktemp -p /tmp mktexlsr.XXXXXXXX)
+                            printf "Running mktexlsr /var/lib/texmf ... "
+                            if mktexlsr /var/lib/texmf > $tempfile 2>&1 ; then
+                                rm -f $tempfile
+                                echo "done."
+                            else
+                                exec >&2
+                                echo
+                                echo "mktexlsr /var/lib/texmf failed. Output has been stored in"
+                                echo "$tempfile"
+                                echo "Please include this file if you report a bug."
+                                echo
+                                exit 1
+                            fi
                         else
                             exec >&2
                             echo




More information about the Debian-tex-commits mailing list