Package: libmecab-java Version: 0.99.3-1 Severity: important Tags: patch User: ubuntu-de...@lists.ubuntu.com Usertags: openjdk-7-transition
Hi, libmecab-java FTBFS with Java7 due to encoding issues. It is also building without -source/-target options, so the generated bytecode depends on the version of Java compiling it (i.e. if build by Java7 it can only be run by Java7+). Attached is an example patch that fixes both of these issues. ~Niels
diff -Nru libmecab-java-0.99.3/debian/changelog libmecab-java-0.99.3/debian/changelog --- libmecab-java-0.99.3/debian/changelog 2012-03-31 11:33:26.000000000 +0200 +++ libmecab-java-0.99.3/debian/changelog 2012-06-21 16:22:04.000000000 +0200 @@ -1,3 +1,13 @@ +libmecab-java (0.99.3-1.1) UNRELEASED; urgency=low + + * Non-maintainer upload. + * Pass -source 1.5 and -target 1.5 to ensure backwards that + backwards compatable Java byte code is generated. + * Pass -encoding to javac compiler so it is aware of the + encoding of the source files. + + -- Niels Thykier <ni...@thykier.net> Thu, 21 Jun 2012 16:19:00 +0200 + libmecab-java (0.99.3-1) unstable; urgency=low * New upstream. (Closes: #666327) diff -Nru libmecab-java-0.99.3/debian/rules libmecab-java-0.99.3/debian/rules --- libmecab-java-0.99.3/debian/rules 2012-03-31 11:33:26.000000000 +0200 +++ libmecab-java-0.99.3/debian/rules 2012-06-21 16:22:52.000000000 +0200 @@ -6,7 +6,8 @@ dh $@ override_dh_auto_build: - dh_auto_build -- INCLUDE=/usr/lib/jvm/default-java/include + dh_auto_build -- JAVAC="javac -source 1.5 -target 1.5 -encoding UTF-8" \ + INCLUDE=/usr/lib/jvm/default-java/include override_dh_install: cp MeCab.jar MeCab-$(DEB_UPSTREAM_VERSION).jar