[Git][java-team/java-common][master] 3 commits: New macro java_compat_level giving the minimum source/target level supported by the default JDK

Emmanuel Bourg (@ebourg) gitlab at salsa.debian.org
Wed Oct 4 23:57:37 BST 2023



Emmanuel Bourg pushed to branch master at Debian Java Maintainers / java-common


Commits:
fb542820 by Emmanuel Bourg at 2023-10-04T23:44:29+02:00
New macro java_compat_level giving the minimum source/target level supported by the default JDK

- - - - -
7a883125 by Emmanuel Bourg at 2023-10-05T00:25:57+02:00
Added loong64 to the list of Java 17 architectures (Closes: #1051305)

- - - - -
577ad5b0 by Emmanuel Bourg at 2023-10-05T00:56:39+02:00
Upload to unstable

- - - - -


2 changed files:

- debian/changelog
- debian/java_defaults.mk


Changes:

=====================================
debian/changelog
=====================================
@@ -1,4 +1,4 @@
-java-common (0.75) UNRELEASED; urgency=medium
+java-common (0.75) unstable; urgency=medium
 
   * Team upload.
 
@@ -7,7 +7,12 @@ java-common (0.75) UNRELEASED; urgency=medium
   * No longer call do_auto during do_set (Closes: #829008)
   * Freshen years in debian/copyright
 
- -- tony mancill <tmancill at debian.org>  Tue, 05 Sep 2023 20:24:46 -0700
+  [ Emmanuel Bourg ]
+  * Added loong64 to the list of Java 17 architectures (Closes: #1051305)
+  * New macro java_compat_level giving the minimum source/target
+    compatibility level supported by the default JDK
+
+ -- Emmanuel Bourg <ebourg at apache.org>  Thu, 05 Oct 2023 00:56:32 +0200
 
 java-common (0.74) unstable; urgency=medium
 


=====================================
debian/java_defaults.mk
=====================================
@@ -3,7 +3,7 @@
 
 java17_architectures = \
 		alpha amd64 arm64 armel armhf i386 \
-		ia64 m68k mipsel mips64el \
+		ia64 loong64 m68k mipsel mips64el \
 		powerpc ppc64 ppc64el \
 		riscv64 s390x sh4 sparc64 x32
 java11_architectures = $(java17_architectures) \
@@ -27,6 +27,15 @@ else ifneq (,$(filter $(_java_host_arch),$(java8_architectures)))
   java_default_version = 8
 endif
 
+# The minimum source/target compatibility level supported by the default JDK
+# This variable can be used by build scripts invoking directly javac with
+# the -source, -target or --release options.
+ifneq (,$(filter $(_java_host_arch),$(java17_architectures)))
+  java_compat_level = 7
+else
+  java_compat_level = 6
+endif
+
 # jvm_archdir is the directory for architecture specific files / libraries
 # in <JAVA_HOME>/jre/lib/<jvm_archdir> or <JAVA_HOME>/lib/<jvm_archdir>
 # jvm_archpath is the relative path of jvm_archdir in JAVA_HOME.
@@ -34,7 +43,7 @@ endif
 _java_host_cpu := $(if $(DEB_HOST_ARCH_CPU),$(DEB_HOST_ARCH_CPU),$(shell dpkg-architecture -qDEB_HOST_ARCH_CPU))
 jvm_archdir_map = \
 	alpha=alpha armel=arm armhf=arm arm64=aarch64 amd64=amd64 \
-	i386=i386 m68k=m68k mips=mips mipsel=mipsel mips64=mips64 mips64el=mips64el \
+	i386=i386 loong64=loong64 m68k=m68k mips=mips mipsel=mipsel mips64=mips64 mips64el=mips64el \
 	powerpc=ppc ppc64=ppc64 ppc64el=ppc64le riscv64=riscv64 \
 	sparc64=sparc64 sh4=sh s390x=s390x ia64=ia64 x32=x32
 



View it on GitLab: https://salsa.debian.org/java-team/java-common/-/compare/cff0f68ab1a12974cce3a4e3363947736a346634...577ad5b0516c7d3e511bb14ab9e6c009e8c2ffa7

-- 
View it on GitLab: https://salsa.debian.org/java-team/java-common/-/compare/cff0f68ab1a12974cce3a4e3363947736a346634...577ad5b0516c7d3e511bb14ab9e6c009e8c2ffa7
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20231004/c8b37fdb/attachment.htm>


More information about the pkg-java-commits mailing list