[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#607857: tex-common: Hard-coded path in proposed patch



> To make it completely clear: Debian TeX Live does not support
> moving of arbitrary trees by changing variables in texmf.cnf.
>
> If we allow that this will be a huge set of worms we open up.

I withdraw my proposal.
I don't think being able to move trees is worth opening up the worms.

I think you can make yout patch cleaner
by replacing /var/lib/texmf with $TEXMFSYSVARDIR,
as this avoids new instances of hard-coded paths:

Index: debian/postinst.in
===================================================================
--- debian/postinst.in	(revision 4780)
+++ debian/postinst.in	(working copy)
@@ -144,7 +144,7 @@
                         # 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
+                        # instead of that we call mktexlsr $TEXMFSYSVARDIR
                         # afterwards. This can be done without checks as
                         # we know that dhit_libkpathsea_configured and
                         # since mktexlsr and updmap are in the same package
@@ -153,14 +153,14 @@
                             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
+                            printf "Running mktexlsr $TEXMFSYSVARDIR ... "
+                            if mktexlsr $TEXMFSYSVARDIR > $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 "mktexlsr $TEXMFSYSVARDIR failed. Output has 
been stored in"
                                 echo "$tempfile"
                                 echo "Please include this file if you report a bug."
                                 echo


Best wishes,

	Gábor Braun



Reply to: