Re: texmf.cnf again
* Marcelo E. Magallon
> After reading between the lines... how exactly do you picture these
> packages (tetex & Co.) achieving this:
>
> - Use ucf to avoid pushing users to the ghetto
> - Use only /etc/texmf/texmf.cnf (instead of /etc/texmf/texmf.d/...)
> - Conform to policy
>
> I'm not saying these are necessarely incompatible with each other, but
> I don't think it's straighforward. Maybe the second point is something
> you don't actually have in mind...
Something like this might do (completely untested, I do not use TeX):
1: Do not ask the question, run update-texmf on every reconfigure,
upgrade, and install (that is, every postinst run) of the TeX
package and "TeX modules" packages (or whatever it's called.
2: Apply the following patch to update-texmf (for Woody at least):
--- /usr/sbin/update-texmf Fri Nov 22 11:51:01 2002
+++ /tmp/update-texmf.ucf Tue Jun 10 12:05:42 2003
@@ -31,7 +31,8 @@
echo "%%%" ) > ${CNFDIR}/texmf.cnf_$$
cat ${CNFFILES} >> ${CNFDIR}/texmf.cnf_$$
-mv ${CNFDIR}/texmf.cnf_$$ ${CNFDIR}/texmf.cnf
+ucf ${CNFDIR}/texmf.cnf_$$ ${CNFDIR}/texmf.cnf
+rm ${CNFDIR}/texmf.cnf_$$
if [ "$VERBOSE" = "true" ]; then
echo "done"
..plus "ucf --purge" in the postrm if purging the TeX package,
and so on. If you want merging capabilities, add --three-way to
the ucf invocation.
I don't see what's un-straightforward about this approach.
--
Tore Anderson
Reply to: