[rxtx] 05/17: Add java9.patch and support Java 9 by building with -source/-target 1.8.

Markus Koschany apo at moszumanska.debian.org
Fri Oct 27 13:06:05 UTC 2017


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

apo pushed a commit to branch master
in repository rxtx.

commit a4c8893a2bfcb92438b9b9c7dcdbcdd9b7b6259d
Author: Markus Koschany <apo at debian.org>
Date:   Fri Oct 27 13:51:30 2017 +0200

    Add java9.patch and support Java 9 by building with -source/-target 1.8.
    
    Closes: #873999
    Thanks: Chris West for the report.
---
 debian/patches/java9.patch | 32 ++++++++++++++++++++++++++++++++
 debian/patches/series      |  1 +
 2 files changed, 33 insertions(+)

diff --git a/debian/patches/java9.patch b/debian/patches/java9.patch
new file mode 100644
index 0000000..ca20194
--- /dev/null
+++ b/debian/patches/java9.patch
@@ -0,0 +1,32 @@
+From: Markus Koschany <apo at debian.org>
+Date: Fri, 27 Oct 2017 13:48:51 +0200
+Subject: java9
+
+Bug-Debian: https://bugs.debian.org/873999
+Forwarded: no
+---
+ configure.in | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/configure.in b/configure.in
+index 1778a52..a1c7710 100644
+--- a/configure.in
++++ b/configure.in
+@@ -473,7 +473,7 @@ if test "$CC" = "gcc" || test "$CC"="egcs"; then
+ 	Tran*)
+ 		find_java_native_include jni.h
+ 		JAVAH="\$(JPATH)/bin/kaffeh -classpath \$(CLASSPATH) -d \$(DEST) -jni"
+-		JAVAC="\$(JPATH)/bin/javac -classpath \$(CLASSPATH) -d \$(TOP)/ -O -source 1.3 -target 1.3"
++		JAVAC="\$(JPATH)/bin/javac -classpath \$(CLASSPATH) -d \$(TOP)/ -O -source 1.8 -target 1.8"
+ 		JAR="\$(JPATH)/bin/jar"
+ 		JAVADOC="\$(JPATH)/bin/javadoc -classpath \$(CLASSPATH)"
+ 		CFLAGS=$CFLAGS" -D_BSD_SOURCE"
+@@ -485,7 +485,7 @@ if test "$CC" = "gcc" || test "$CC"="egcs"; then
+ 	*)
+ 		find_java_native_include jni_md.h
+ 		JAVAH="\$(JPATH)/bin/javah -classpath \$(CLASSPATH) -d \$(DEST) -jni"
+-		JAVAC="\$(JPATH)/bin/javac -classpath \$(CLASSPATH) -d \$(TOP)/ -O -source 1.3 -target 1.3"
++		JAVAC="\$(JPATH)/bin/javac -classpath \$(CLASSPATH) -d \$(TOP)/ -O -source 1.8 -target 1.8"
+ 		JAR="\$(JPATH)/bin/jar"
+ 		JAVADOC="\$(JPATH)/bin/javadoc"
+ 		CFLAGS=$CFLAGS" -D_BSD_SOURCE"
diff --git a/debian/patches/series b/debian/patches/series
index f1551a1..9f25e93 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -12,3 +12,4 @@ MonitorThread-daemon.patch
 usb_38400.patch
 fix_snprintf.patch
 format_security.patch
+java9.patch

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



More information about the pkg-java-commits mailing list