Bug#915102: scilab: FTBFS on amd64: Could not find or use the Java package/jar jlatexmath-fop used by LaTex Rendering

Gilles Filippini pini at debian.org
Wed Dec 5 06:34:57 GMT 2018


Control: tags -1 + patch

Hi,

On Sun, 2 Dec 2018 19:06:53 +0100 Gilles Filippini <pini at debian.org> wrote:
> On Fri, 30 Nov 2018 14:57:04 +0100 Emilio Pozuelo Monfort
> <pochu at debian.org> wrote:
> > Source: scilab
> > Version: 6.0.1-6
> > Severity: serious
> > 
> > Hi,
> > 
> > On a rebuild against libhdf5-103, scilab has failed on amd64 twice. The second
> > failure was during configure:
> > 
> > checking commons-logging... /usr/share/java/fop-transcoder-allinone.jar
> > checking jlatexmath... /usr/share/java/jlatexmath-1.0.7.jar
> > checking jlatexmath-fop... no
> > configure: error: Could not find or use the Java package/jar jlatexmath-fop used by LaTex Rendering - FOP plugin (looking for package org.scilab.forge.jlatexmath.fop.JLaTeXMathObj)
> > make[1]: *** [debian/rules:38: override_dh_auto_configure] Error 1
> > 
> > Full logs at https://buildd.debian.org/status/logs.php?pkg=scilab&ver=6.0.1-6%2Bb1&arch=amd64
> 
> AIUI this is due to libfop-java 2.3 now providing subsets jar in
> addition to fop.jar:
> 
> $ dpkg -L libfop-java | grep usr/share/java/ | grep 2\.3
> /usr/share/java/fop-2.3.jar
> /usr/share/java/fop-core-2.3.jar
> /usr/share/java/fop-events-2.3.jar
> /usr/share/java/fop-sandbox-2.3.jar
> /usr/share/java/fop-transcoder-2.3.jar
> /usr/share/java/fop-transcoder-allinone-2.3.jar
> /usr/share/java/fop-util-2.3.jar
> 
> Then configure picks up fop-transcoder-allinone-2.3.jar instead of
> fop-2.3.jar when looking for class org.apache.fop.pdf.PDFInfo:
> 
> checking fop... /usr/share/java/fop-transcoder-allinone-2.3.jar
> 
> I don't know how to fix that, but a temporary workaround would be to
> patch configure.ac to force /usr/share/java/fop.jar into the classpath.

Please find attached a path proposal.

Thanks,

_g.
-------------- next part --------------
diff -Nru scilab-6.0.1/debian/changelog scilab-6.0.1/debian/changelog
--- scilab-6.0.1/debian/changelog	2018-11-11 18:51:45.000000000 +0100
+++ scilab-6.0.1/debian/changelog	2018-12-04 22:51:10.000000000 +0100
@@ -1,3 +1,11 @@
+scilab (6.0.1-6.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * New patch force-fop-jar-into-classpath.patch:
+    force /usr/share/java/fop.jar into the classpath (Closes: #915102)
+
+ -- Gilles Filippini <pini at debian.org>  Tue, 04 Dec 2018 22:51:10 +0100
+
 scilab (6.0.1-6) unstable; urgency=medium
 
   * Bump std-ver to 4.2.1.
diff -Nru scilab-6.0.1/debian/patches/force-fop-jar-into-classpath.patch scilab-6.0.1/debian/patches/force-fop-jar-into-classpath.patch
--- scilab-6.0.1/debian/patches/force-fop-jar-into-classpath.patch	1970-01-01 01:00:00.000000000 +0100
+++ scilab-6.0.1/debian/patches/force-fop-jar-into-classpath.patch	2018-12-04 22:51:10.000000000 +0100
@@ -0,0 +1,17 @@
+Description: Workaround for bug #915102 where AC_JAVA_CHECK_JAR picks up
+ one of the fop-<subset>.jar instead of fop.jar
+Index: scilab-6.0.1/configure.ac
+===================================================================
+--- scilab-6.0.1.orig/configure.ac
++++ scilab-6.0.1/configure.ac
+@@ -1040,7 +1040,9 @@ interface for JOGL2 - or libGL (OpenGL l
+ 
+                 ################ Mandatory for graphic_export features #####
+                 # XML to PDF/other Translator
+-                AC_JAVA_CHECK_JAR([fop],[org.apache.fop.pdf.PDFInfo],[XML to PDF Translator (fop)])
++                #AC_JAVA_CHECK_JAR([fop],[org.apache.fop.pdf.PDFInfo],[XML to PDF Translator (fop)])
++                PACKAGE_JAR_FILE=/usr/share/java/fop.jar
++                ac_java_classpath=$ac_java_classpath:$PACKAGE_JAR_FILE
+                 FOP=$PACKAGE_JAR_FILE
+                 AC_SUBST(FOP)
+ 
diff -Nru scilab-6.0.1/debian/patches/series scilab-6.0.1/debian/patches/series
--- scilab-6.0.1/debian/patches/series	2018-11-11 18:51:45.000000000 +0100
+++ scilab-6.0.1/debian/patches/series	2018-12-04 22:47:46.000000000 +0100
@@ -21,3 +21,4 @@
 set_class_path.patch
 use_outside_font.patch
 java11-compatibility.patch
+force-fop-jar-into-classpath.patch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20181205/504e8917/attachment.sig>


More information about the debian-science-maintainers mailing list