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

Bug#415906: texlive-base-bin: config file xdvi.cfg is not preserved



Hi Frank!

On Fre, 23 Mär 2007, Frank Küster wrote:
> I have very little time (packing our flat's contents in boxes...), just

Ahh, you took the house you were talking about in Zürich, great. Let me
know your new address ASAP, I am passing through Switzerland quite often
as you know!

> - With the change you suggest, the teTeX version of xdvi.cfg would be
>   ignored completely?

Yes, my logic was wrong. But the logic in the script is indeed wrong:
Here an analysis:

- handle_config_file_preinst /etc/texmf/xdvi/xdvi.cfg is called.
- it sets conf_oldpath to /etc/texmf/texlive/xdvi/xdvi.cfg
	Note that this file NEVER existed, it was /e/t/texlive/xdvi.cfg
- check_move $conf_oldpath /e/texmf/xdvi/xdvi.cfg ... is called
- $conf_oldpath is not readable (of course), so touch
	/etc/texmf/xdvi/xdvi.cfg.preinst-deleted

The bug is that the first time it should be the tetex xdvi.cfg file
which is moved, and not the texlive one!

So I propose to change:
    conf_relpath=${cfgfile#/etc/texmf/}
    conf_oldpath="/etc/texmf/texlive/$conf_relpath"
    case "$cfgfile" in
        /etc/texmf/dvips/config/*)
            # special case for dvips config
            conf_oldpath="/etc/texmf/texlive/dvips/${conf_oldpath#/etc/texmf/texlive/dvips/config/}"
            ;;
        # files which were only present in tetex
        /etc/texmf/texdoctk/texdoctk.dat)
            conf_oldpath="/etc/texdoctk/texdoctk.dat"
            ;;
      # symlink target had a different name
      /etc/texmf/dvipdfm/config/config)
        conf_oldpath="/etc/texmf/texlive/dvipdfm.cfg"
        ;;
    esac
    check_move $conf_oldpath $cfgfile $version
    # special case for xdvi.cfg:
    # old texlive version takes precedence of old tetex version
    case $cfgfile in
        /etc/texmf/xdvi/xdvi.cfg)
            # old tetex version was moved already
            check_move /etc/texmf/texlive/xdvi.cfg $cfgfile $version
            ;;
    esac

add only the following stanza to the FIRST case:
        # xdvi.cfg should first be moved from tetex, then from texlive
        /etc/texmf/xdvi/xdvi.cfg)
            conf_oldpath="/etc/texmf/xdvi.cfg"
            ;;

Comments?

Best wishes

Norbert

-------------------------------------------------------------------------------
Dr. Norbert Preining <preining@logic.at>                    Università di Siena
Debian Developer <preining@debian.org>                         Debian TeX Group
gpg DSA: 0x09C5B094      fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
CLUNES (pl.n.)
People who just won't go.
			--- Douglas Adams, The Meaning of Liff



Reply to: