Package: erlang
Version: 1:18.3.4+dfsg-1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: origin-ubuntu yakkety ubuntu-patch

Hi Sergei,

In Ubuntu, we've applied a patch to erlang to specify the java bytecode
compatibility level to use when building.  This patch was first applied
during the transition to openjdk6, so it's quite old, and currently we only
support openjdk8 in testing/unstable/the Ubuntu devel series so there is
*currently* no effect on compatibility to not use this patch.  However,
there will be future java transitions again, so in discussion with the
Ubuntu Java maintainers we've agreed it's useful to keep this patch instead
of dropping it.

So as the same logic seems to apply to Debian, I am forwarding the patch for
your consideration.

Thanks,
-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
[email protected]                                     [email protected]
diff -Nru erlang-18.3.4+dfsg/debian/patches/bytecode-compat.patch erlang-18.3.4+dfsg/debian/patches/bytecode-compat.patch
--- erlang-18.3.4+dfsg/debian/patches/bytecode-compat.patch	1970-01-01 02:00:00.000000000 +0200
+++ erlang-18.3.4+dfsg/debian/patches/bytecode-compat.patch	2016-06-16 11:36:00.000000000 +0300
@@ -0,0 +1,32 @@
+Description: Build backwards compatible bytecode.
+ By default, javac compiles bytecode which is compatible
+ with the Java implementation the JDK originates from and
+ onwards.
+ .
+ This patch ensures that bytecode is compatible with Java
+ 1.8 and up.
+Author: James Page <[email protected]>
+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/erlang/+bug/1049769
+
+--- a/lib/ic/java_src/com/ericsson/otp/ic/Makefile
++++ b/lib/ic/java_src/com/ericsson/otp/ic/Makefile
+@@ -91,7 +91,7 @@ ifneq ($(V),0)
+ JARFLAGS= -cfv
+ endif
+ 
+-JAVA_OPTIONS = 
++JAVA_OPTIONS = -source 1.8 -target 1.8
+ 
+ # ----------------------------------------------------
+ # Make Rules
+--- a/lib/jinterface/java_src/com/ericsson/otp/erlang/Makefile
++++ b/lib/jinterface/java_src/com/ericsson/otp/erlang/Makefile
+@@ -79,7 +79,7 @@ ifneq ($(V),0)
+ JARFLAGS=-cfv
+ endif
+ 
+-JAVA_OPTIONS = -Xlint 
++JAVA_OPTIONS = -Xlint -source 1.8 -target 1.8
+ 
+ ifeq ($(TESTROOT),)
+ RELEASE_PATH="$(ERL_TOP)/release/$(TARGET)"

Reply via email to