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

texlive should use xdvi alternatives mechanism (was: xdvi of texlive)



Package: texlive-base-bin
Version: 2005.dfsg.1-1
Severity: normal

Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp> wrote:

> Hi all,
>
> I was taught today by a maintainer of xdvik-ja that
> xdvi script provided with texlive-base-bin used xdvi-xaw.bin
> as the real binary which was different from the name xdvi.bin
> used with tetex-bin and was defined by alternative mechanism 
> in case of tetex-bin and xdvik-ja so this alternative didn't 
> work with texlive anymore.
>
> I suspect that this would break smooth transition from tetex
> to texlive and it is nice if texlive could follow the same
> method as tetex and provide xdvi script which call xdvi.bin
> and xdvi.bin is defined as xdvi-xaw.bin through alternative
> mechanism.
>
> I hope it is possible to do as I requested.

This should indeed be done, and it's easily possible.  That's the diff
between the installed xdvi script and the source file xdvi-sh.in:

--- texlive-bin-2005.dfsg.1/source/TeX/texk/xdvik/xdvi-sh.in	2004-03-22 21:59:26.000000000 +0100
+++ /sid/usr/bin/xdvi	2006-08-09 18:48:58.000000000 +0200
@@ -43,4 +43,4 @@
   XFILESEARCHPATH="$xdviapppath:${XFILESEARCHPATH-%D}"; export XFILESEARCHPATH
 fi
 
-exec @final_exec_name@ $NAMEOPT ${1+"$@"}
+exec xdvi-xaw.bin $NAMEOPT ${1+"$@"}

I guess we only need to s/@final_exec_name@/xdvi.bin/ in that line, and
add the usual calls to update-alternatives to the maintainer scripts.

Regards, Frank

-- 
Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)



Reply to: