[gnome-split] 14/15: Fixed the build failure with Java 9 (Closes: #873215)

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Wed Mar 7 12:34:57 GMT 2018


This is an automated email from the git hooks/post-receive script.

ebourg-guest pushed a commit to branch master
in repository gnome-split.

commit 227496c8903a4833782c5943384ba85fc13e9a62
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Wed Mar 7 13:30:14 2018 +0100

    Fixed the build failure with Java 9 (Closes: #873215)
---
 debian/changelog                            |  1 +
 debian/patches/02_java9_compatibility.patch | 14 ++++++++++++++
 debian/patches/series                       |  1 +
 3 files changed, 16 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index d8ea09a..bf9dd26 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ gnome-split (1.2-2) UNRELEASED; urgency=low
   * Update Vcs and upstream URLs.
 
   [ Emmanuel Bourg ]
+  * Fixed the build failure with Java 9 (Closes: #873215)
   * Moved the package to Git
   * Standards-Version updated to 4.1.3
   * Switch to debhelper level 11
diff --git a/debian/patches/02_java9_compatibility.patch b/debian/patches/02_java9_compatibility.patch
new file mode 100644
index 0000000..369360d
--- /dev/null
+++ b/debian/patches/02_java9_compatibility.patch
@@ -0,0 +1,14 @@
+Description: Fixes the compatibility issues with Java 9
+Author: Emmanuel Bourg <ebourg at apache.org>
+Forwarded: no
+--- a/Makefile
++++ b/Makefile
+@@ -48,7 +48,7 @@
+ compile: tmp/stamp/compile
+ tmp/stamp/compile: $(SOURCES_DIST)
+ 	@/bin/echo -e "$(JAVAC_CMD)\ttmp/classes/*.class"
+-	$(JAVAC) -d tmp/classes -classpath tmp/classes:$(CLASSPATH) -sourcepath src/ $^
++	$(JAVAC) -source 1.7 -target 1.7 -d tmp/classes -classpath tmp/classes:$(CLASSPATH) -sourcepath src/ $^
+ 	touch $@
+ 
+ translation: tmp/i18n/gnome-split.pot $(TRANSLATIONS)
diff --git a/debian/patches/series b/debian/patches/series
index 7547d4c..0096a23 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 01_manifest_main_class.patch
+02_java9_compatibility.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/gnome-split.git



More information about the pkg-java-commits mailing list