Your message dated Sat, 16 Sep 2023 12:14:02 +0000
with message-id <[email protected]>
and subject line Bug#1051906: fixed in openjdk-17 17.0.9~6ea-1
has caused the Debian Bug report #1051906,
regarding openjdk-17 adds zero build for loong64
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.)


-- 
1051906: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1051906
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: openjdk-17

Version: 17.0.9~4ea-1

Severity: wishlist

Tags: patch

User: [email protected]

Usertags: loongarch64


Dear Maintainers,


I hope this email finds you well. We would like to add openjdk-17 zero build support for loong64.


The attached patch includes three parts of changes:


(1) Add the loong64 variable to debian/rules and debian/control.


(2) Synchronization with code in JDK-8315020. This part of the code has not been backported to jdk17u, so we need to handle it additionally.


(3 patches/add-basic_machine-in-autoconf-config.patch adds loongarch info.


Thank you for your time and consideration of this request.


Thanks,

Xuefeng Pan



commit c36214ebd3d6e0b2652fcafa95706dc4da4cf7ce
Author: panxuefeng <[email protected]>
Date:   Thu Sep 14 01:50:48 2023 +0000

    Support zero build for loong64

diff --git a/changelog b/changelog
index 7541fd7..1ba8363 100644
--- a/changelog
+++ b/changelog
@@ -1,3 +1,9 @@
+openjdk-17 (17.0.9~4ea-1+loong64) unreleased; urgency=medium
+
+  * Add openjdk-17 zero support for loong64
+
+ -- Xuefeng Pan <[email protected]>  Wed, 13 Sep 2023 16:36:56 +0800
+
 openjdk-17 (17.0.9~4ea-1) unstable; urgency=medium
 
   * OpenJDK 17.0.9 early access, build 4.
diff --git a/control b/control
index 2172a5d..3513955 100644
--- a/control
+++ b/control
@@ -24,7 +24,7 @@ Vcs-Browser: https://salsa.debian.org/openjdk-team/openjdk/tree/openjdk-17
 Vcs-Git: https://salsa.debian.org/openjdk-team/openjdk.git -b openjdk-17
 
 Package: openjdk-17-jdk-headless
-Architecture: alpha amd64 armel armhf arm64 i386 ia64 mips mipsel mips64 mips64el powerpc ppc64 ppc64el m68k riscv64 sh4 sparc sparc64 s390x x32
+Architecture: alpha amd64 armel armhf arm64 i386 ia64 loong64 mips mipsel mips64 mips64el powerpc ppc64 ppc64el m68k riscv64 sh4 sparc sparc64 s390x x32
 Multi-Arch: same
 Pre-Depends: ${dpkg:Depends}
 Depends: openjdk-17-jre-headless (= ${binary:Version}),
@@ -45,7 +45,7 @@ Description: OpenJDK Development Kit (JDK) (headless)
  applets, and components using the Java programming language.
 
 Package: openjdk-17-jre-headless
-Architecture: alpha amd64 armel armhf arm64 i386 ia64 mips mipsel mips64 mips64el powerpc ppc64 ppc64el m68k riscv64 sh4 sparc sparc64 s390x x32
+Architecture: alpha amd64 armel armhf arm64 i386 ia64 loong64 mips mipsel mips64 mips64el powerpc ppc64 ppc64el m68k riscv64 sh4 sparc sparc64 s390x x32
 Multi-Arch: same
 Pre-Depends: ${dpkg:Depends}
 Depends: ${jredefault:Depends}, ${cacert:Depends},
@@ -72,7 +72,7 @@ Description: OpenJDK Java runtime, using ${vm:Name} (headless)
  using ${vm:Name}.
 
 Package: openjdk-17-jdk
-Architecture: alpha amd64 armel armhf arm64 i386 ia64 mips mipsel mips64 mips64el powerpc ppc64 ppc64el m68k riscv64 sh4 sparc sparc64 s390x x32
+Architecture: alpha amd64 armel armhf arm64 i386 ia64 loong64 mips mipsel mips64 mips64el powerpc ppc64 ppc64el m68k riscv64 sh4 sparc sparc64 s390x x32
 Multi-Arch: same
 Pre-Depends: ${dpkg:Depends}
 Depends: openjdk-17-jre (= ${binary:Version}),
@@ -89,7 +89,7 @@ Description: OpenJDK Development Kit (JDK)
  applets, and components using the Java programming language.
 
 Package: openjdk-17-jre
-Architecture: alpha amd64 armel armhf arm64 i386 ia64 mips mipsel mips64 mips64el powerpc ppc64 ppc64el m68k riscv64 sh4 sparc sparc64 s390x x32
+Architecture: alpha amd64 armel armhf arm64 i386 ia64 loong64 mips mipsel mips64 mips64el powerpc ppc64 ppc64el m68k riscv64 sh4 sparc sparc64 s390x x32
 Multi-Arch: same
 Pre-Depends: ${dpkg:Depends}
 Depends: openjdk-17-jre-headless (= ${binary:Version}),
@@ -110,7 +110,7 @@ Description: OpenJDK Java runtime, using ${vm:Name}
  programs, using ${vm:Name}.
 
 Package: openjdk-17-demo
-Architecture: alpha amd64 armel armhf arm64 i386 ia64 mips mipsel mips64 mips64el powerpc ppc64 ppc64el m68k riscv64 sh4 sparc sparc64 s390x x32
+Architecture: alpha amd64 armel armhf arm64 i386 ia64 loong64 mips mipsel mips64 mips64el powerpc ppc64 ppc64el m68k riscv64 sh4 sparc sparc64 s390x x32
 Priority: optional
 Pre-Depends: ${dpkg:Depends}
 Depends: openjdk-17-jre (= ${binary:Version}),
@@ -150,7 +150,7 @@ Description: OpenJDK Development Kit (JDK) documentation
  This package contains the API documentation.
 
 Package: openjdk-17-dbg
-Architecture: alpha amd64 armel armhf arm64 i386 ia64 mips mipsel mips64 mips64el powerpc ppc64 ppc64el m68k riscv64 sh4 sparc sparc64 s390x x32
+Architecture: alpha amd64 armel armhf arm64 i386 ia64 loong64 mips mipsel mips64 mips64el powerpc ppc64 ppc64el m68k riscv64 sh4 sparc sparc64 s390x x32
 Multi-Arch: same
 Priority: optional
 Section: debug
diff --git a/patches/add-basic_machine-in-autoconf-config.patch b/patches/add-basic_machine-in-autoconf-config.patch
new file mode 100644
index 0000000..1044de3
--- /dev/null
+++ b/patches/add-basic_machine-in-autoconf-config.patch
@@ -0,0 +1,12 @@
+diff --git a/make/autoconf/build-aux/autoconf-config.sub b/make/autoconf/build-aux/autoconf-config.sub
+index 1aab2b303e3..df7cfd4034a 100644
+--- a/make/autoconf/build-aux/autoconf-config.sub
++++ b/make/autoconf/build-aux/autoconf-config.sub
+@@ -275,6 +275,7 @@ case $basic_machine in
+ 	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
+ 	| i370 | i860 | i960 | ia64 \
+ 	| ip2k | iq2000 \
++	| loongarch32 | loongarch64 \
+ 	| m32c | m32r | m32rle | m68000 | m68k | m88k \
+ 	| maxq | mb | microblaze | mcore | mep \
+ 	| mips | mipsbe | mipseb | mipsel | mipsle \
diff --git a/patches/series b/patches/series
index ba70a3a..71394a8 100644
--- a/patches/series
+++ b/patches/series
@@ -36,3 +36,5 @@ update-permission-test.patch
 ldap-timeout-test-use-ip.patch
 test-use-ip-address.patch
 exclude-broken-tests.patch
+add-basic_machine-in-autoconf-config.patch
+sync-with-jdk-8315020.patch
diff --git a/patches/sync-with-jdk-8315020.patch b/patches/sync-with-jdk-8315020.patch
new file mode 100644
index 0000000..d76b38b
--- /dev/null
+++ b/patches/sync-with-jdk-8315020.patch
@@ -0,0 +1,31 @@
+diff --git a/make/autoconf/platform.m4 b/make/autoconf/platform.m4
+index 5752d3bd1a6..eb66266262b 100644
+--- a/make/autoconf/platform.m4
++++ b/make/autoconf/platform.m4
+@@ -573,6 +573,8 @@ AC_DEFUN([PLATFORM_SETUP_LEGACY_VARS_HELPER],
+     HOTSPOT_$1_CPU_DEFINE=S390
+   elif test "x$OPENJDK_$1_CPU" = xs390x; then
+     HOTSPOT_$1_CPU_DEFINE=S390
++  elif test "x$OPENJDK_$1_CPU" = xloongarch64; then
++    HOTSPOT_$1_CPU_DEFINE=LOONGARCH64
+   elif test "x$OPENJDK_$1_CPU" != x; then
+     HOTSPOT_$1_CPU_DEFINE=$(echo $OPENJDK_$1_CPU | tr a-z A-Z)
+   fi
+diff --git a/src/hotspot/os/linux/os_linux.cpp b/src/hotspot/os/linux/os_linux.cpp
+index 99dd4c82420..4c63f292e86 100644
+--- a/src/hotspot/os/linux/os_linux.cpp
++++ b/src/hotspot/os/linux/os_linux.cpp
+@@ -1791,11 +1791,11 @@ void * os::dll_load(const char *filename, char *ebuf, int ebuflen) {
+   static  Elf32_Half running_arch_code=EM_SH;
+ #elif  (defined RISCV)
+   static  Elf32_Half running_arch_code=EM_RISCV;
+-#elif  (defined LOONGARCH)
++#elif  (defined LOONGARCH64)
+   static  Elf32_Half running_arch_code=EM_LOONGARCH;
+ #else
+     #error Method os::dll_load requires that one of following is defined:\
+-        AARCH64, ALPHA, ARM, AMD64, IA32, IA64, LOONGARCH, M68K, MIPS, MIPSEL, PARISC, __powerpc__, __powerpc64__, RISCV, S390, SH, __sparc
++        AARCH64, ALPHA, ARM, AMD64, IA32, IA64, LOONGARCH64, M68K, MIPS, MIPSEL, PARISC, __powerpc__, __powerpc64__, RISCV, S390, SH, __sparc
+ #endif
+ 
+   // Identify compatibility class for VM's architecture and library's architecture
diff --git a/rules b/rules
index 2648034..b5497e4 100755
--- a/rules
+++ b/rules
@@ -57,7 +57,7 @@ multiarch_dir = /$(DEB_HOST_MULTIARCH)
 
 hotspot_archs	= amd64 i386 arm64 armhf ppc64 ppc64el riscv64 s390x
 jtreg_archs	= $(hotspot_archs) alpha ia64 powerpc ppc64 sh4 x32
-jtreg_archs	+= armel mipsel mips64el
+jtreg_archs	+= armel loong64 mipsel mips64el
 jtreg_archs	+= riscv64
 
 # FIXME: use bootcycle builds for zero archs?
@@ -161,7 +161,7 @@ jtreg_pkg = jtreg6
 testng_pkg= libtestng7-java
 
 with_check = $(if $(findstring nocheck, $(DEB_BUILD_OPTIONS)),,yes)
-ifneq (,$(filter $(DEB_HOST_ARCH), alpha armel ia64 mipsel mips64el powerpc x32))
+ifneq (,$(filter $(DEB_HOST_ARCH), alpha armel ia64 loong64 mipsel mips64el powerpc x32))
   with_check = disabled running check on $(DEB_HOST_ARCH)
 endif
 ifeq ($(distribution)-$(distrel),Ubuntu-riscv64)
@@ -181,7 +181,7 @@ endif
 
 with_wqy_zenhai = $(if $(filter $(distrel),lenny),,yes)
 
-arch_map	:= alpha=alpha arm=arm armel=arm armhf=arm arm64=aarch64 amd64=amd64 hppa=parisc i386=i586 m68k=m68k mips=mips mipsel=mipsel mips64=mips64 mips64el=mips64el powerpc=ppc ppc64=ppc64 ppc64el=ppc64le riscv64=riscv64 sparc=sparc sparc64=sparcv9 sh4=sh s390x=s390x ia64=ia64 x32=x32
+arch_map	:= alpha=alpha arm=arm armel=arm armhf=arm arm64=aarch64 amd64=amd64 hppa=parisc i386=i586 loong64=loong64 m68k=m68k mips=mips mipsel=mipsel mips64=mips64 mips64el=mips64el powerpc=ppc ppc64=ppc64 ppc64el=ppc64le riscv64=riscv64 sparc=sparc sparc64=sparcv9 sh4=sh s390x=s390x ia64=ia64 x32=x32
 
 jvmarch		:= $(strip $(patsubst $(DEB_HOST_ARCH_CPU)=%, %, \
 			$(filter $(DEB_HOST_ARCH_CPU)=%, $(arch_map))))
@@ -191,7 +191,7 @@ endif
 
 default_vm = $(if $(filter $(DEB_HOST_ARCH), $(hotspot_archs)),hotspot,zero)
 
-any_archs = alpha amd64 armel armhf arm64 i386 ia64 mips mipsel mips64 mips64el powerpc ppc64 ppc64el m68k riscv64 sh4 sparc sparc64 s390x x32
+any_archs = alpha amd64 armel armhf arm64 i386 ia64 loong64 mips mipsel mips64 mips64el powerpc ppc64 ppc64el m68k riscv64 sh4 sparc sparc64 s390x x32
 
 altzero_archs = $(hotspot_archs)
 ifneq (,$(filter $(distrel),trusty))
@@ -598,7 +598,7 @@ all_tools	=  jar jarsigner java javac javadoc javap jcmd \
 jdk_hl_tools	= jar jarsigner javac javadoc javap jcmd jdb \
 	jdeprscan jdeps jfr jimage jinfo jlink jmap jmod jps \
 	jrunscript jshell jstack jstat jstatd serialver
-ifeq (,$(filter $(DEB_HOST_ARCH), alpha armel ia64 m68k mips mipsel mips64el powerpc s390x sh4 sparc64 x32))
+ifeq (,$(filter $(DEB_HOST_ARCH), alpha armel ia64 loong64 m68k mips mipsel mips64el powerpc s390x sh4 sparc64 x32))
   all_tools	+= jhsdb
   jdk_hl_tools	+= jhsdb
 endif
@@ -979,7 +979,7 @@ stamps/configure: stamps/unpack
 
 	mkdir -p bin
 ifeq (0,1)
-ifeq (,$(filter $(DEB_HOST_ARCH), alpha amd64 arm64 hppa mips64 mips64el ppc64 ppc64el s390x sparc64 x32))
+ifeq (,$(filter $(DEB_HOST_ARCH), alpha amd64 arm64 hppa loong64 mips64 mips64el ppc64 ppc64el s390x sparc64 x32))
 	( \
 	  echo '#! /bin/sh'; \
 	  echo 'if [ -x /usr/bin/linux32 ]; then'; \
@@ -1083,7 +1083,7 @@ build: pre-build $(build_stamps)
 
 stamps/build: stamps/configure
 	@echo '========== $@ =========='
-ifneq (,$(filter $(DEB_HOST_ARCH), alpha armel armhf ia64 m68k mips mipsel mips64 mips64el powerpc riscv64 s390x sh4 sparc sparc64))
+ifneq (,$(filter $(DEB_HOST_ARCH), alpha armel armhf ia64 loong64 m68k mips mipsel mips64 mips64el powerpc riscv64 s390x sh4 sparc sparc64))
 	sh -c 'sh debian/buildwatch.sh $(CURDIR)/$(builddir) &'
 endif
 	if $(EXTRA_BUILD_ENV) $(MAKE) --no-print-directory -C $(builddir) $(build_target); then \

--- End Message ---
--- Begin Message ---
Source: openjdk-17
Source-Version: 17.0.9~6ea-1
Done: Matthias Klose <[email protected]>

We believe that the bug you reported is fixed in the latest version of
openjdk-17, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Matthias Klose <[email protected]> (supplier of updated openjdk-17 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sat, 16 Sep 2023 13:35:34 +0200
Source: openjdk-17
Architecture: source
Version: 17.0.9~6ea-1
Distribution: unstable
Urgency: medium
Maintainer: OpenJDK Team <[email protected]>
Changed-By: Matthias Klose <[email protected]>
Closes: 998763 1051906
Changes:
 openjdk-17 (17.0.9~6ea-1) unstable; urgency=medium
 .
   * OpenJDK 17.0.9 early access, build 6.
 .
   [ Matthias Klose ]
   * Build-depend on the unversioned libfreetype-dev.
   * Backport the openjdk-17 zero support for loong64 (Xuefeng Pan).
     Closes: #1051906.
   * Build using GCC 13 on development versions.
 .
   [ Vladimir Petko ]
   * Fix jquery-min.js symlink. Closes: #998763.
Checksums-Sha1:
 e719b46eafab0811cacbaef7b44b66cf117b1814 4616 openjdk-17_17.0.9~6ea-1.dsc
 e27d3d9dae6bc7842d1069045c72fc59d4afec9b 62418992 
openjdk-17_17.0.9~6ea.orig.tar.xz
 91dc4873cc0ca3b0b26c4659e26a71e8050d12c1 199952 
openjdk-17_17.0.9~6ea-1.debian.tar.xz
 4a58ef4a3383cd9e81a32b7bbe42ae4d9aa17c8b 15580 
openjdk-17_17.0.9~6ea-1_source.buildinfo
Checksums-Sha256:
 d99a4bbd7097a50284860b5aa40847cb15e1c2b1224a6f92d9494d3465f83a18 4616 
openjdk-17_17.0.9~6ea-1.dsc
 cfa68526753b27b546a4ca5778b3e9120152125fbb1ffe653ce5537d7d7dc66f 62418992 
openjdk-17_17.0.9~6ea.orig.tar.xz
 a4b298dbeaa8a6288d966c7007ebe99c039deaefa7e498b62341e020718d287b 199952 
openjdk-17_17.0.9~6ea-1.debian.tar.xz
 25e3b2f68394c70e2dfea2578e235538a9466a6a239324086ee5ba8f4cf52a8b 15580 
openjdk-17_17.0.9~6ea-1_source.buildinfo
Files:
 09b8da7241c78f9f8948a302b10ae3b1 4616 java optional openjdk-17_17.0.9~6ea-1.dsc
 c5c5baf6b27e165b621e7ea822797469 62418992 java optional 
openjdk-17_17.0.9~6ea.orig.tar.xz
 0561811ddc856e7fcac489df84d344e3 199952 java optional 
openjdk-17_17.0.9~6ea-1.debian.tar.xz
 0f1293c52feeb87b52bf5d9b9b765132 15580 java optional 
openjdk-17_17.0.9~6ea-1_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJEBAEBCgAuFiEE1WVxuIqLuvFAv2PWvX6qYHePpvUFAmUFkywQHGRva29AdWJ1
bnR1LmNvbQAKCRC9fqpgd4+m9btaEADZyGgtej5yFhmgGMcdrAgR1v1gelnIAtKV
AVM/XWnUaapWpMw3WuX7d+r+PV6s/1U9CxRaU8y77VQBOuVQNgU18Egjrd1VQsiT
OZRkjp7IQXzyXK8ZofQv7yvWmd+gsQKvRAhH0iuX6MQrr0OanimHk/o/UZuCmEKf
liVyABCl3kkRPvLRjwpuEv11nWnhckq+xb970XivR3hHpVTkbLmldBFdQ6jUEN5D
BhUXHooL3b9ljcY9BweFiwewdQlmlMmhsTWjLIuMAS5qx9+RBmzVwYe0evDzmWp/
bwnVDgJUwCGihMYULGCx4Z058qrll9bW7AzT0mr0o7jIcd9L7LxN3V9t32ct+ffi
9LiYAX4iD4Ko277MNkYIIyaCidz97TbLkyiFRMdTfE726zKP1ckQxmqqf/SJefGM
jxoIB7fJEQoTjKWkOIsn4bQMh/Mwb+0R2WuT8KxZ/n2sx7es7mj1deWIMxn9AfpM
7QTUEiJkm4Ez0Ed3FtMWPMM131HnyF9gFyVgWC1pEJEVjqRc5HcetfEd8jldSMJ+
JjA87dXdTLPHtyXt4FdJd1pwSO7CrdSJGujEPyJXeFeDnwytk629l07kc6oMXNKy
VBzvXDsbxCl/sjBK1eNIMd0P1zyQj7gG9wEqHXog3pGoylqRbYW8PRYq76a4a/Oi
00NwmXh0wA==
=Fqij
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to