Bug#170592: tetex-base: improperly handling /usr/share/texmf/doc symlink
From: Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>
Subject: Bug#170592: tetex-base: improperly handling /usr/share/texmf/doc symlink
Date: Fri, 29 Nov 2002 17:02:41 +0900 (JST)
> In rules, there is a line
>
> (cd debian/tmp/usr/share/texmf; ln -s ../doc/texmf doc)
>
> and in postinst, there are lines
>
> if [ ! -e /usr/share/texmf/doc ]
> then
> ln -s /usr/share/doc/texmf /usr/share/texmf/doc
> fi
>
> so I cann't imagine what is wrong...
I believe I found the reason of the lost of the symlink
and it is tetex-extra which removed the symlink!
In the tetex-extra.preinst, there was lines;
if (-l "/usr/share/texmf/doc") {
unlink "/usr/share/texmf/doc";
}
so if one installed tetex-extra after tetex-base, then
the symlink was removed, right?
(I don't understand Perl, in fact, but it is easy to
guess the meaning of the above by analogy of sh script ;)
It should be
if (! -l "/usr/share/texmf/doc") {
unlink "/usr/share/texmf/doc";
}
or something similar, shouldn't it?
(Yes, I know it is tetex-preinst.m4 which has really the
problem.)
Best regards, 2002/12/5
--
Debian Developer & Debian JP Developer - much more I18N of Debian
Atsuhito Kohda <kohda@debian.org>
Department of Math., Tokushima Univ.
Reply to: