Bug#140927: Configuration files should be preserved on upgrades.
From: Santiago Vila <sanvila@unex.es>
Subject: Bug#140927: Configuration files should be preserved on upgrades.
Date: Tue, 2 Apr 2002 17:16:03 +0200 (CEST)
> What tetex-bin.postinst does, namely:
>
> if [ -e $FMTCNF -a ! -e $FMTCNF.dpkg-old ]
> then
> echo "$FMTCNF is now not a conffile and should be generated by $UPDFMT."
> echo "Old $FMTCNF would be moved as $FMTCNF.dpkg-old"
> mv $FMTCNF $FMTCNF.dpkg-old
> fi
> if [ -x $UPDFMT ] ; then
> $UPDFMT -v
> fi
>
> is incompatible with Debian policy when it says "local changes to
> configuration files *must* be preserved during a package upgrade".
>
> Since /etc/texmf/fmt.d/00tetex.cnf has now what fmtutil.cnf used to
> have, I suggest that in an upgrade from potato, /etc/texmf/fmtutil.cnf
> is not renamed but instead it's copied to /etc/texmf/fmt.d/00tetex.cnf
> before fmtutil is called. This would preserve user changes, at least.
I would like to say No. You said "/etc/texmf/fmt.d/00tetex.cnf
has now what fmtutil.cnf used to have" but it is not true.
Now tetex-bin changed the basic structure of fmtutil.cnf
- /etc/texmf/fmt.d/00tetex.cnf should be genuine (or at least
it is strongly recommended!)
- if a user wants to change it he/she should create
/etc/texmf/fmt.d/99private.cnf or something and run
update-fmtutil (only once).
Under this situation, tetex-bin or any other packages
which support update-fmtutil (e.g. jadetex) never asks
a user whether to replace /etc/texmf/fmt.d/00tetex.cnf
or not at upgrading and a user has the up-to-date fmtutil.cnf
any time in the future.
If /etc/texmf/fmtutil.cnf was copied to /etc/texmf/fmt.d/00tetex.cnf
and it contained some private modifications, it might cause
possible trouble and a user would be always asked whether to
replace /etc/texmf/fmt.d/00tetex.cnf or not at every upgrading.
So I guess it is much better to save the old contents
as fmtutil.cnf.dpkg-old because a user would have enough data
to create /etc/texmf/fmt.d/99private.cnf in it.
Best regards, 2002.4.3
--
Debian Developer & Debian JP Developer - much more I18N of Debian
Atsuhito Kohda <kohda@debian.org>
Department of Math., Tokushima Univ.
--
To UNSUBSCRIBE, email to debian-tetex-maint-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: