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

2018-12-04 Thread Gilles Filippini
Control: tags -1 + patch

Hi,

On Sun, 2 Dec 2018 19:06:53 +0100 Gilles Filippini  wrote:
> On Fri, 30 Nov 2018 14:57:04 +0100 Emilio Pozuelo Monfort
>  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=6.0.1-6%2Bb1=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.
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.0 +0100
+++ scilab-6.0.1/debian/changelog   2018-12-04 22:51:10.0 +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   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.0 +0100
+++ scilab-6.0.1/debian/patches/force-fop-jar-into-classpath.patch  
2018-12-04 22:51:10.0 +0100
@@ -0,0 +1,17 @@
+Description: Workaround for bug #915102 where AC_JAVA_CHECK_JAR picks up
+ one of the fop-.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.0 +0100
+++ scilab-6.0.1/debian/patches/series  2018-12-04 22:47:46.0 +0100
@@ -21,3 +21,4 @@
 set_class_path.patch
 use_outside_font.patch
 java11-compatibility.patch
+force-fop-jar-into-classpath.patch


signature.asc
Description: OpenPGP digital signature
-- 
debian-science-maintainers mailing list
debian-science-maintainers@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-maintainers

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

2018-12-02 Thread Gilles Filippini
On Fri, 30 Nov 2018 14:57:04 +0100 Emilio Pozuelo Monfort
 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=6.0.1-6%2Bb1=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.

Thanks,

_g.



signature.asc
Description: OpenPGP digital signature
-- 
debian-science-maintainers mailing list
debian-science-maintainers@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-maintainers