[subversion-commit] SVN tetex commit + diffs: r334 - in tex-common/trunk: debian doc

Frank Küster frank at costa.debian.org
Mon Nov 14 16:28:19 UTC 2005


Author: frank
Date: 2005-11-14 16:28:18 +0000 (Mon, 14 Nov 2005)
New Revision: 334

Modified:
   tex-common/trunk/debian/changelog
   tex-common/trunk/debian/common.functions.in
   tex-common/trunk/doc/Debian-TeX-Policy.pdf
   tex-common/trunk/doc/Debian-TeX-Policy.sgml
Log:
 * Add a function clean_texenvironment to common.functions, to be used
   from TeX package's postinst scripts, and document that in the Policy
   document. [frank]


Modified: tex-common/trunk/debian/changelog
===================================================================
--- tex-common/trunk/debian/changelog	2005-11-14 15:31:11 UTC (rev 333)
+++ tex-common/trunk/debian/changelog	2005-11-14 16:28:18 UTC (rev 334)
@@ -7,8 +7,11 @@
     interaction in postinst, and fail with a clear error message, instead
     waiting for teTeX's or TeXLive's updmap calls to fail (closes maybe:
     #338585) [frank]
+  * Add a function clean_texenvironment to common.functions, to be used
+    from TeX package's postinst scripts, and document that in the Policy
+    document. [frank]
 
- -- Frank Küster <frank at debian.org>  Mon, 14 Nov 2005 14:37:37 +0100
+ -- Frank Küster <frank at debian.org>  Mon, 14 Nov 2005 17:19:13 +0100
 
 tex-common (0.10) unstable; urgency=low
 

Modified: tex-common/trunk/debian/common.functions.in
===================================================================
--- tex-common/trunk/debian/common.functions.in	2005-11-14 15:31:11 UTC (rev 333)
+++ tex-common/trunk/debian/common.functions.in	2005-11-14 16:28:18 UTC (rev 334)
@@ -204,6 +204,23 @@
     echo $LSR
 }
 
+clean_texenvironment(){
+  envvars="AFMFONTS BIBINPUTS BSTINPUTS CMAPFONTS CWEBINPUTS ENCFONTS GFFONTS \
+GLYPHFONTS INDEXSTYLE LIGFONTS MAILCAPLIBDIR MFBASES MFINPUTS MFPOOL MFTINPUTS \
+MIMELIBDIR MISCFONTS MISSFONT_LOG MPINPUTS MPMEMS MPPOOL MPSUPPORT MPXCOMMAND \
+OCPINPUTS OFMFONTS OPENTYPEFONTS OPLFONTS OTPINPUTS OVFFONTS OVPFONTS PDFTEXCONFIG \
+PKFONTS PSHEADERS SFDFONTS SYSTEXMF T1FONTS T42FONTS T4HTINPUTS TEX4HTFONTSET \
+TEX4HTINPUTS TEXCONFIG TEXDOCEXT TEXDOCHTML TEXDOCS TEXDOCSCOMPRESS TEXDOCSSUFFIX \
+TEXFONTMAPS TEXFORMATS TEX_HUSH TEXINPUTS TEXMF TEXMFCNF TEXMFCONFIG TEXMFDBS \
+TEXMFDIST TEXMFHOME TEXMFLOCAL TEXMFMAIN TEXMFSCRIPTS TEXMFSYSCONFIG TEXMFSYSVAR \
+TEXMFVAR TEXPICTS TEXPOOL TEXPSHEADERS TEXSOURCES TFMFONTS TRFONTS TTFONTS \
+VARTEXFONTS VFFONTS WEB2C WEBINPUTS"
+  for var in $envvars; do
+    unset $var || true
+  done
+
+}
+
 #################################################################
 ##  End of function definitions from file common.functions
 #################################################################

Modified: tex-common/trunk/doc/Debian-TeX-Policy.pdf
===================================================================
(Binary files differ)

Modified: tex-common/trunk/doc/Debian-TeX-Policy.sgml
===================================================================
--- tex-common/trunk/doc/Debian-TeX-Policy.sgml	2005-11-14 15:31:11 UTC (rev 333)
+++ tex-common/trunk/doc/Debian-TeX-Policy.sgml	2005-11-14 16:28:18 UTC (rev 334)
@@ -707,6 +707,14 @@
 	internal changes (e.g. of format file extensions) to break the
 	depending package that does this check.
 	</p>
+	<p>
+	Local administrators can override settings from
+	<file>texmf.cnf</file> with environment variables; this has
+	sometimes lead to errors in <file>postinst</file> scripts.  It
+	is recommended that <file>postinst</file> scripts unset
+	relevant variables before format creation or other problematic
+	tasks. 
+	</p>
 <!-- 	<p> -->
 <!-- 	Format generation involves many configuration and input -->
 <!-- 	files.  In many cases format generation failed because of a bad -->




More information about the Pkg-tetex-commits mailing list