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

Re: Bug#379089: Configuration file shadowed?

Dear all!

I am trying to fix this bug. AFAIS we have to:
- install the mktex.cnf back into /etc/texmf/web2c
- remove the debconf warning in config(.in)
- adapt NEWS and README

Here is a diff I prepared for current tex-common, please comment,
especially if we have to do more...

Index: rules
--- rules	(revision 1563)
+++ rules	(working copy)
@@ -91,8 +91,8 @@
 	grep -v '^[ \t]*#' scripts/postinst-tex > $(INSTDIR)/usr/share/debhelper/autoscripts/postinst-tex
         # fontcache stuff with proper permissions
-	install -d $(INSTDIR)/usr/share/texmf/web2c/
-	install -m 644 texmf/web2c/mktex.cnf $(INSTDIR)/usr/share/texmf/web2c/
+	install -d $(INSTDIR)/etc/texmf/web2c/
+	install -m 644 texmf/web2c/mktex.cnf $(INSTDIR)/etc/texmf/web2c/
 # 	mkdir --mode=1777 $(INSTDIR)/var/cache/fonts/pk
 # 	mkdir --mode=1777 $(INSTDIR)/var/cache/fonts/tfm
 # 	mkdir --mode=1777 $(INSTDIR)/var/cache/fonts/source
Index: config.in
--- config.in	(revision 1563)
+++ config.in	(working copy)
@@ -51,10 +51,12 @@
 # test whether mktex.cnf exists in TEXMFSYSCONFIG and warn the user
 # mktex.cnf in TEXMFCONFIG will have the same effect, but all we can provide
 # in this case is the message in NEWS.Debian
-if [ -f /etc/texmf/web2c/mktex.cnf ]; then
-  db_input medium tex-common/warn_mktexcnf || true
-  db_go
+# disabled, we ship mktex.cnf again in /etc/texmf/web2c/, see bug 379089
+#if [ -f /etc/texmf/web2c/mktex.cnf ]; then
+#  db_input medium tex-common/warn_mktexcnf || true
+#  db_go
Index: NEWS
--- NEWS	(revision 1563)
+++ NEWS	(working copy)
@@ -8,14 +8,6 @@
     where $HOME is not writable, fonts will be temporarily cached in
-  * mktex.cnf change
-    The change described above has been implemented by installing
-    /usr/share/texmf/web2c/mktex.cnf.  If you have a mktex.cnf in
-    TEXMFSYSCONFIG or TEXMFCONFIG with local additions, it would shadow
-    the new file, and font caching may not work until you transfer the
-    setting of MT_FEATURES to your configuration file.
   * Breakage with TeXLive
     The texlive packages as of version 2005-2 do not automatically create
Index: README.Debian
--- README.Debian	(revision 1563)
+++ README.Debian	(working copy)
@@ -17,9 +17,9 @@
  overwritten in a file that sorts before 05TeXMF.cnf, e.g.  
  /etc/texmf/texmf.d/04VARTEXFONTS.cnf.  Do not forget to run
  update-texmf after making the change.  To enable a side-wide font
- caching the admin should copy /usr/share/texmf/web2c/mktex.cnf to
- /etc/texmf/web2c/mktex.cnf and use 'varfonts' instead of 'texmfvar' in
- MT_FEATURES.  Care should be taken to specifiy appropriate permissions
+ caching the admin should edit /etc/texmf/web2c/mktex.cnf and use 
+ 'varfonts' instead of 'texmfvar' in MT_FEATURES.  
+ Care should be taken to specifiy appropriate permissions
  for the directory containing the font cache.  Either the local admin
  should create all available font data and not allow write access, or
  else write access should be limited to trusted users.  Yet an other

Comments? Did I miss something?

Best wishes


Dr. Norbert Preining <preining AT logic DOT at>             Università di Siena
gpg DSA: 0x09C5B094      fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
The person in front of you in the supermarket queue who has just
unloaded a bulging trolley on to the conveyor belt and is now in the
process of trying to work out which pocket they left their cheque book
in, and indeed which pair of trousers.
			--- Douglas Adams, The Meaning of Liff

Reply to: