Your message dated Thu, 16 Jun 2016 12:04:20 +0300
with message-id <[email protected]>
and subject line Re: erlang: Be explicit about java bytecode target
has caused the Debian Bug report #827449,
regarding erlang: Be explicit about java bytecode target
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
827449: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=827449
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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)"
--- End Message ---
--- Begin Message ---
On Thu, Jun 16, 2016 at 11:52:50AM +0300, Steve Langasek wrote:
> 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.
Sorry, I've just noticed that you've solved this problem separately in
Debian by encoding JAVA_OPTIONS in debian/rules. So please disregard this
bug report.
--
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]
signature.asc
Description: PGP signature
--- End Message ---