Bug#213310: tetex-base: the dvips database should not be in /etc
On 17.10.03 Atsuhito Kohda (kohda@pm.tokushima-u.ac.jp) wrote:
Hi,
> > > Basically, I guess /var/lib/texmf/dvips might be better as
> > > --outputdir and ln -s /var/lib/texmf/dvips/* /etc/texmf/dvips/
> > > might work.
> > >
> > Sorry, missed your idea. Sounds good. I would call that dir
> > /var/lib/texmf/web2c/dvips.
>
> You mean, with --outputdir /var/lib/texmf/web2c/dvips ?
>
> with --outputdir /var/lib/texmf/debian (or generated ?
> new directory anyway) and symlink it to
> /usr/share/texmf/dvips/debian (or generated)
>
> This could work without any modification of texmf.cnf (I'm
> not sure. Does anyone know precisely?)
>
I've attached two patches: The first implements my idea of generating
these files below /var/lib/texmf/web2c/. The second makes sure I
don't try to grep through dead softlinks during postrm.
The only problem lost: We have changed the behaviour in out postinst.
How about other packages, using that mechanism? Everytime, we change
something like that, we have to inform all of them about that and
file a bug. Therefore I wouldn't do these things quite often and
don't like my solution. Are there still packages, which try to call
/etc/texmf/dvips/updmap?
If we change it that way, we should leave a note in Readme.Debian and
maybe even in the manpage of updmap.
H.
--
sigmentation fault
--- postinst.orig Wed Oct 29 05:17:14 2003
+++ postinst Tue Nov 18 23:44:30 2003
@@ -250,7 +250,9 @@
# this would be right thing to do
if [ -f ${VUMAPC} -a -x /usr/bin/updmap ]; then
MAPTEMP=`tempfile -p updm`
- /usr/bin/updmap --outputdir /etc/texmf/dvips 2> ${MAPTEMP}
+ test -d ${VDIR}/dvips || mkdir ${VDIR}/dvips
+ /usr/bin/updmap --outputdir ${VDIR}/dvips 2> ${MAPTEMP}
+ ln -sf ${VDIR}/dvips/* /etc/texmf/dvips/
echo "Output of updmap is in ${MAPTEMP}"
else
echo "updmap.cfg seemed lost by accident!"
--- postrm Tue Nov 18 23:47:04 2003
+++ postrm.new Tue Nov 18 23:46:55 2003
@@ -10,13 +10,13 @@
if [ x"$1" = xpurge ] ; then
rm -f ${TEXMFC}* ${FMTCNF}* ${VLDAT}*
-# rm -rf ${TEXMFD} ## this could delete configuration files of other packages
-# rm -rf ${FMTD} ## this could delete configuration files of other packages
- rm -rf /var/lib/texmf/web2c
# removing generated map files
for i in /etc/texmf/dvips/*.map; do
grep -q "maintained by the script updmap" $i && rm -f $i
done
+# rm -rf ${TEXMFD} ## this could delete configuration files of other packages
+# rm -rf ${FMTD} ## this could delete configuration files of other packages
+ rm -rf /var/lib/texmf/web2c
VARFONTSFILE=/etc/texmf/varfontdirs.debian
if [ -f $VARFONTSFILE ] # and it should exist!
then
Reply to: