tags 285198 patch
thanks

Osamu Aoki <[EMAIL PROTECTED]> wrote:

> After reviewing my package, IO realized cjk-latex has been removed from
> testing. Until some fix is done on postinst script, it will not enter
> testing due to  #285198  (Manual edit of texmf.cnf not recommended).
>
> It seems we need to add some script to /etc/texmf/texmf.d insted of
> screwing around with /etc/texmf/texmf.conf file.
>
> This needs to be fixed frst before my debian-reference since it depends
> on it.  Any idea how to fix this?

It's even easier:  Simply drop the code from postinst and depend on 

tex-common (>= 0.13) | tetex-bin (< 3.0)

This looks a little strange, but the explanation is that tetex-bin in
sarge and currently in etch already had the setting that cjk-latex wants
to introduce; when the configuration files where moved from tetex-bin to
tex-common we first forgot it, and I've now readded it in the SVN
repository of tex-common; the next release will again include it.  But
tex-common's release will not limit cjk-latex's testing migration,
because in testing it has tetex-bin (< 3.0) to satisfy the dependency.

Attached is a patch to achieve this.

Regards, Frank

diff -Nur cjk-latex-4.5.1.orig/debian/changelog cjk-latex-4.5.1/debian/changelog
--- cjk-latex-4.5.1.orig/debian/changelog	2005-12-11 14:50:58.459814408 +0100
+++ cjk-latex-4.5.1/debian/changelog	2005-12-11 14:44:22.003084992 +0100
@@ -1,3 +1,10 @@
+cjk-latex (4.5.1-4.1) unstable; urgency=low
+
+  * Do not mess around with the generated file texmf.cnf; instead depend
+    on tex-common (>= 0.13) which provides the font support we need.
+
+ -- Frank Küster <[EMAIL PROTECTED]>  Sun, 11 Dec 2005 14:31:05 +0100
+
 cjk-latex (4.5.1-4) unstable; urgency=low
 
   * CVS update as of 2003-02-11.
diff -Nur cjk-latex-4.5.1.orig/debian/control cjk-latex-4.5.1/debian/control
--- cjk-latex-4.5.1.orig/debian/control	2005-12-11 14:50:58.462813952 +0100
+++ cjk-latex-4.5.1/debian/control	2005-12-11 14:43:23.812931240 +0100
@@ -7,7 +7,7 @@
 
 Package: cjk-latex
 Architecture: any
-Depends: ${shlibs:Depends}, tetex-base (>= 1.0-1), tetex-bin (>= 1.0.6-1.1)
+Depends: ${shlibs:Depends}, tetex-base (>= 1.0-1), tetex-bin (>= 1.0.6-1.1), tex-common (>= 0.13)
 Recommends: freetype1-tools
 Suggests: tfm-arphic-bsmi00lp, tfm-arphic-bkai00mp, tfm-arphic-gbsn00lp, tfm-arphic-gkai00mp, hbf-jfs56, hbf-cns40-b5, hbf-kanji48
 Description: A LaTeX macro package for CJK (Chinese/Japanese/Korean)
diff -Nur cjk-latex-4.5.1.orig/debian/postinst cjk-latex-4.5.1/debian/postinst
--- cjk-latex-4.5.1.orig/debian/postinst	2005-12-11 14:50:58.463813800 +0100
+++ cjk-latex-4.5.1/debian/postinst	2005-12-11 14:44:50.159804520 +0100
@@ -18,10 +18,3 @@
 
 #DEBHELPER#
 
-# Fixes /etc/texmf/texmf.cnf.
-# Remove the following line when Debian's teTeX package comes with
-# the same setting.
-if ! /bin/grep -q '^T1FONTS.*;$TEXMF/fonts/hbf//' /etc/texmf/texmf.cnf; then
-    /usr/bin/perl -pi -e 's|^(T1FONTS.*)$|$1;\$TEXMF/fonts/hbf//|;' \
-	/etc/texmf/texmf.cnf
-fi
-- 
Frank Küster
Inst. f. Biochemie der Univ. Zürich
Debian Developer

Reply via email to