--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: tex4ht: oolatex doesn't like GNU's java [with a patch]
- From: giacomo boffi <boffi@stru.polimi.it>
- Date: Thu, 11 Dec 2008 15:23:05 +0100
- Message-id: <20081211142305.1607.41692.reportbug@boffi95.stru.polimi.it>
Package: tex4ht
Version: 20080701-2
Severity: normal
Tags: patch
-- System Information:
Debian Release: 5.0
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.18-4-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash
Versions of packages tex4ht depends on:
ii libc6 2.7-16 GNU C Library: Shared libraries
ii libkpathsea4 2007.dfsg.2-4 TeX Live: path search library for
ii tex4ht-common 20080701-2 LaTeX and TeX for Hypertext (HTML)
ii texlive-base-bin 2007.dfsg.2-4 TeX Live: Essential binaries
tex4ht recommends no packages.
tex4ht suggests no packages.
-- no debconf information
as you should know, oolatex (xtpipes) needs java from Sun
here it is a patch to let oolatex test which java implementation is run
by the command "java", and to exit with a meaningful error message (that can be
improved, of course)
the patch is relevant in the debian context, and is not intended for propagation
upstream
best regards
gb
--- /usr/share/tex4ht/oolatex 2008-09-14 05:53:15.000000000 +0200
+++ oolatex 2008-12-11 15:11:38.000000000 +0100
@@ -1,4 +1,7 @@
#!/bin/sh
+
+java -version 2>&1 | grep -q 'GNU libgcj' && printf "oolatex NEEDS Sun's Java\n" && exit
+
if command -v xhtex > /dev/null 2>&1 ; then
true
else
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
--- End Message ---