The batik sources are missing two import statements, causing these errors: compile: [javac] Compiling 1469 source files to $S/classes [javac] $S/sources/org/apache/batik/script/jacl/JaclInterpreterFactory.java:70: cannot find symbol [javac] symbol : class ImportInfo [javac] location: class org.apache.batik.script.jacl.JaclInterpreterFactory [javac] ImportInfo imports) { [javac] ^ [javac] $S/sources/org/apache/batik/script/jpython/JPythonInterpreterFactory.java:70: cannot find symbol [javac] symbol : class ImportInfo [javac] location: class org.apache.batik.script.jpython.JPythonInterpreterFactory [javac] ImportInfo imports) { [javac] ^ [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 2 errors The ImportInfo class exists one level up the package structure. The new implementations of these methods were added in svn commit 742654 from 2009 but if they ever worked, I don't know how. See also https://github.com/apache/batik/commit/f91fe2c4c0207d277e39c74f052137f3a1db93e9
Created attachment 405052 [details, diff] Add missing includes
Index: batik-1.8.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/dev-java/batik/batik-1.8.ebuild,v retrieving revision 1.1 diff -u -B -r1.1 batik-1.8.ebuild --- batik-1.8.ebuild 7 Jun 2015 23:38:39 -0000 1.1 +++ batik-1.8.ebuild 13 Jun 2015 09:49:50 -0000 @@ -37,6 +37,18 @@ java-ant_xml-rewrite -f ${file} -c -e javadoc -a failonerror -v no -a maxmemory -v 512m done + # Add some missing imports. + # https://bugs.gentoo.org/show_bug.cgi?id=551952 + # https://issues.apache.org/jira/browse/BATIK-1123 + local imports=() + imports+=(sources/org/apache/batik/script/jpython/JPythonInterpreterFactory.java) + imports+=(sources/org/apache/batik/script/jacl/JaclInterpreterFactory.java) + for import in ${imports[@]}; do + einfo "Fixing missing import in ${import}" + sed -i '23i import org.apache.batik.script.ImportInfo;' ${import} + eend $? + done + cd lib rm -v *.jar build/*.jar || die use python && java-pkg_jar-from jython In this case, I prefer sed over a patch for the sole purpose of adding some missing imports. ;)
+ 13 Jun 2015; Patrice Clement <monsieurp@gentoo.org> batik-1.8.ebuild: + Add some missing imports to avoid a compiling issue courtesy of Martin von + Gagern <Martin.vGagern@gmx.net>. Fix bug 551952. + Thanks for the heads up.
*** Bug 551964 has been marked as a duplicate of this bug. ***