Your message dated Sun, 13 Apr 2025 22:23:06 +0000
with message-id <[email protected]>
and subject line Bug#1061730: fixed in openjfx 11.0.11+1-7
has caused the Debian Bug report #1061730,
regarding openjfx: add loongarch64 support
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.)
--
1061730: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1061730
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: openjfx
Version: 11.0.11+1-3.1
Severity: normal
X-Debbugs-Cc: [email protected]
Dear Maintainer,
I have a patch and a suggestion!
Firstly, I submitted a loongarch64's patch for openjfx-11, but it does not
support webkit as the minimum version of LoongArch's g++ is 13;
Secondly, I suggest upgrading to the latest version of openjfx, which already
supports LoongArch and also supports g++13, looking forward to your reply. Of
course, I also saw the same question(#1023702 and #1041527), but there was no
response, but I still look forward to it.
Thanks!
-- System Information:
Debian Release: trixie/sid
APT prefers unreleased
APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)
Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=zh_CN.UTF-8, LC_CTYPE=zh_CN.UTF-8 (charmap=ANSI_X3.4-1968)
(ignored: LC_ALL set to C), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
>From fc418a426205deb8e198f51a374bcfc125f96111 Mon Sep 17 00:00:00 2001
From: Zhang Na <[email protected]>
Date: Mon, 29 Jan 2024 08:37:58 +0000
Subject: [PATCH] Add LoongArch support
---
debian/control | 2 +-
debian/gradle.properties.loong64 | 4 ++++
debian/rules | 4 ++++
.../gstreamer/gstreamer-lite/gstreamer/gst/gstconfig.h | 2 +-
modules/javafx.web/src/main/native/CMakeLists.txt | 2 ++
.../src/main/native/Source/JavaScriptCore/CMakeLists.txt | 7 +++++++
.../ThirdParty/icu/source/i18n/double-conversion-utils.h | 2 +-
.../javafx.web/src/main/native/Source/WTF/wtf/PageBlock.h | 2 +-
.../src/main/native/Source/WTF/wtf/PlatformCPU.h | 6 ++++++
.../javafx.web/src/main/native/Source/WTF/wtf/dtoa/utils.h | 2 +-
10 files changed, 28 insertions(+), 5 deletions(-)
create mode 100644 debian/gradle.properties.loong64
diff --git a/debian/control b/debian/control
index d6bff1a3..aff82e6a 100644
--- a/debian/control
+++ b/debian/control
@@ -10,7 +10,7 @@ Build-Depends: antlr4,
default-jdk,
default-jdk-doc,
flex,
- g++-11,
+ g++-11 [!loong64],
gperf,
gradle (>= 4.4),
gradle-debian-helper (>= 2.0),
diff --git a/debian/gradle.properties.loong64 b/debian/gradle.properties.loong64
new file mode 100644
index 00000000..47cc7b48
--- /dev/null
+++ b/debian/gradle.properties.loong64
@@ -0,0 +1,4 @@
+COMPILE_WEBKIT = false
+COMPILE_MEDIA = true
+GRADLE_VERSION_CHECK = false
+CONF = Release
diff --git a/debian/rules b/debian/rules
index 63f7f36a..4e4aafc0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -19,7 +19,11 @@ export NUMBER_OF_PROCESSORS ?= $(shell nproc)
dh $@ --buildsystem=gradle --no-parallel --with maven-repo-helper
override_dh_auto_configure-arch:
+ifneq (,$(filter $(DEB_HOST_ARCH), loong64))
+ cp debian/gradle.properties.loong64 gradle.properties
+else
cp debian/gradle.properties .
+endif
override_dh_auto_configure-indep:
echo "GRADLE_VERSION_CHECK = false" >> gradle.properties
diff --git
a/modules/javafx.media/src/main/native/gstreamer/gstreamer-lite/gstreamer/gst/gstconfig.h
b/modules/javafx.media/src/main/native/gstreamer/gstreamer-lite/gstreamer/gst/gstconfig.h
index c889459e..dbc9bcda 100644
---
a/modules/javafx.media/src/main/native/gstreamer/gstreamer-lite/gstreamer/gst/gstconfig.h
+++
b/modules/javafx.media/src/main/native/gstreamer/gstreamer-lite/gstreamer/gst/gstconfig.h
@@ -107,7 +107,7 @@
*/
#if defined(__alpha__) || defined(__arc__) || defined(__arm__) ||
defined(__aarch64__) || defined(__bfin) || defined(__hppa__) ||
defined(__nios2__) || defined(__MICROBLAZE__) || defined(__mips__) ||
defined(__or1k__) || defined(__sh__) || defined(__SH4__) || defined(__sparc__)
|| defined(__sparc) || defined(__ia64__) || defined(_M_ALPHA) ||
defined(_M_ARM) || defined(_M_IA64) || defined(__xtensa__) || defined(__e2k__)
# define GST_HAVE_UNALIGNED_ACCESS 0
-#elif defined(__i386__) || defined(__i386) || defined(__amd64__) ||
defined(__amd64) || defined(__x86_64__) || defined(__ppc__) ||
defined(__ppc64__) || defined(__powerpc__) || defined(__powerpc64__) ||
defined(__m68k__) || defined(_M_IX86) || defined(_M_AMD64) || defined(_M_X64)
|| defined(__s390__) || defined(__s390x__) || defined(__zarch__)
+#elif defined(__i386__) || defined(__i386) || defined(__amd64__) ||
defined(__amd64) || defined(__x86_64__) || defined(__ppc__) ||
defined(__ppc64__) || defined(__powerpc__) || defined(__powerpc64__) ||
defined(__m68k__) || defined(_M_IX86) || defined(_M_AMD64) || defined(_M_X64)
|| defined(__s390__) || defined(__s390x__) || defined(__zarch__) ||
defined(__loongarch__)
# define GST_HAVE_UNALIGNED_ACCESS 1
#else
# error "Could not detect architecture; don't know whether it supports
unaligned access! Please file a bug."
diff --git a/modules/javafx.web/src/main/native/CMakeLists.txt
b/modules/javafx.web/src/main/native/CMakeLists.txt
index d8218bf3..27db7c15 100644
--- a/modules/javafx.web/src/main/native/CMakeLists.txt
+++ b/modules/javafx.web/src/main/native/CMakeLists.txt
@@ -116,6 +116,8 @@ elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "ppc64")
set(WTF_CPU_PPC64 1)
elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "ppc64le")
set(WTF_CPU_PPC64LE 1)
+elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "loongarch64")
+ set(WTF_CPU_LOONGARCH64 1)
else ()
set(WTF_CPU_UNKNOWN 1)
endif ()
diff --git
a/modules/javafx.web/src/main/native/Source/JavaScriptCore/CMakeLists.txt
b/modules/javafx.web/src/main/native/Source/JavaScriptCore/CMakeLists.txt
index b775b3ed..7f9dd169 100644
--- a/modules/javafx.web/src/main/native/Source/JavaScriptCore/CMakeLists.txt
+++ b/modules/javafx.web/src/main/native/Source/JavaScriptCore/CMakeLists.txt
@@ -252,6 +252,8 @@ else ()
set(OFFLINE_ASM_BACKEND "ARMv7")
elseif (WTF_CPU_MIPS)
set(OFFLINE_ASM_BACKEND "MIPS")
+ elseif (WTF_CPU_LOONGARCH64)
+ set(OFFLINE_ASM_BACKEND "LOONGARCH64")
endif ()
if (NOT ENABLE_JIT)
@@ -1333,7 +1335,12 @@ WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
if (COMPILER_IS_GCC_OR_CLANG)
# Avoid using fused multiply-add instructions since this could give
different results
# for e.g. parseInt depending on the platform and compilation flags.
+ if (WTF_CPU_LOONGARCH64)
+ WEBKIT_ADD_TARGET_CXX_FLAGS(JavaScriptCore -ffp-contract=off)
+ else ()
WEBKIT_ADD_TARGET_CXX_FLAGS(JavaScriptCore -ffp-contract=off
-fno-slp-vectorize)
+ endif ()
+
endif ()
WEBKIT_COPY_FILES(JavaScriptCore_CopyHeaders
diff --git
a/modules/javafx.web/src/main/native/Source/ThirdParty/icu/source/i18n/double-conversion-utils.h
b/modules/javafx.web/src/main/native/Source/ThirdParty/icu/source/i18n/double-conversion-utils.h
index 1e44fcaa..686425e8 100644
---
a/modules/javafx.web/src/main/native/Source/ThirdParty/icu/source/i18n/double-conversion-utils.h
+++
b/modules/javafx.web/src/main/native/Source/ThirdParty/icu/source/i18n/double-conversion-utils.h
@@ -103,7 +103,7 @@ int main(int argc, char** argv) {
defined(__AARCH64EL__) || defined(__aarch64__) || defined(__AARCH64EB__)
|| \
defined(__riscv) || \
defined(__or1k__) || defined(__arc__) || \
- defined(__EMSCRIPTEN__)
+ defined(__EMSCRIPTEN__) || defined(__loongarch__)
#define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1
#elif defined(__mc68000__) || \
defined(__pnacl__) || defined(__native_client__)
diff --git a/modules/javafx.web/src/main/native/Source/WTF/wtf/PageBlock.h
b/modules/javafx.web/src/main/native/Source/WTF/wtf/PageBlock.h
index 2a618f69..e5e340c0 100644
--- a/modules/javafx.web/src/main/native/Source/WTF/wtf/PageBlock.h
+++ b/modules/javafx.web/src/main/native/Source/WTF/wtf/PageBlock.h
@@ -47,7 +47,7 @@ namespace WTF {
// 64 KiB. (Apple uses 16 KiB.)
//
// Use 64 KiB for any unknown CPUs to be conservative.
-#if OS(DARWIN) || PLATFORM(PLAYSTATION)
+#if OS(DARWIN) || PLATFORM(PLAYSTATION) || CPU(LOONGARCH64)
constexpr size_t CeilingOnPageSize = 16 * KB;
#elif USE(64KB_PAGE_BLOCK) || CPU(PPC) || CPU(PPC64) || CPU(PPC64LE) ||
CPU(UNKNOWN)
constexpr size_t CeilingOnPageSize = 64 * KB;
diff --git a/modules/javafx.web/src/main/native/Source/WTF/wtf/PlatformCPU.h
b/modules/javafx.web/src/main/native/Source/WTF/wtf/PlatformCPU.h
index 58fef8f6..b1bf6019 100644
--- a/modules/javafx.web/src/main/native/Source/WTF/wtf/PlatformCPU.h
+++ b/modules/javafx.web/src/main/native/Source/WTF/wtf/PlatformCPU.h
@@ -55,6 +55,12 @@
#define WTF_MIPS_FP64 (defined __mips_fpr && __mips_fpr == 64)
#endif
+/* CPU(LOONGARCH64) - LOONGARCH64 */
+#if defined(__loongarch64)
+#define WTF_CPU_LOONGARCH64 1
+#define WTF_CPU_KNOWN 1
+#endif
+
/* CPU(PPC64) - PowerPC 64-bit Big Endian */
#if ( defined(__ppc64__) \
|| defined(__PPC64__)) \
diff --git a/modules/javafx.web/src/main/native/Source/WTF/wtf/dtoa/utils.h
b/modules/javafx.web/src/main/native/Source/WTF/wtf/dtoa/utils.h
index 96d5bd7b..684d3fbc 100644
--- a/modules/javafx.web/src/main/native/Source/WTF/wtf/dtoa/utils.h
+++ b/modules/javafx.web/src/main/native/Source/WTF/wtf/dtoa/utils.h
@@ -91,7 +91,7 @@ int main(int argc, char** argv) {
defined(__AARCH64EL__) || defined(__aarch64__) || defined(__AARCH64EB__)
|| \
defined(__riscv) || \
defined(__or1k__) || defined(__arc__) || \
- defined(__EMSCRIPTEN__)
+ defined(__EMSCRIPTEN__) || defined(__loongarch__)
#define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1
#elif defined(__mc68000__) || \
defined(__pnacl__) || defined(__native_client__)
--
2.43.0
--- End Message ---
--- Begin Message ---
Source: openjfx
Source-Version: 11.0.11+1-7
Done: tony mancill <[email protected]>
We believe that the bug you reported is fixed in the latest version of
openjfx, 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.
tony mancill <[email protected]> (supplier of updated openjfx 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: Sun, 13 Apr 2025 10:25:38 -0700
Source: openjfx
Architecture: source
Version: 11.0.11+1-7
Distribution: unstable
Urgency: medium
Maintainer: Debian Java Maintainers
<[email protected]>
Changed-By: tony mancill <[email protected]>
Closes: 1061730
Changes:
openjfx (11.0.11+1-7) unstable; urgency=medium
.
* Team upload.
* Add patch for loongarch64 support (Closes: #1061730)
Thank you to Zhang Na for the patch and to others who tested.
* Update B-D on pkg-config to pkgconf
Checksums-Sha1:
a0d0b810d648e02c93874a2e55dbdf5711415981 2799 openjfx_11.0.11+1-7.dsc
51bad3d647f3d762f0bc17989c2266b7292aa558 29312
openjfx_11.0.11+1-7.debian.tar.xz
fca793475bdf7fb02e96d5903341f490ac064eb0 24017
openjfx_11.0.11+1-7_amd64.buildinfo
Checksums-Sha256:
fb531ce54c4d45dd423a1ba6f927085551c30d9dfbd2c595001456eb583347b8 2799
openjfx_11.0.11+1-7.dsc
aa72d3db7de74d58ec8c0839e1de545d1a5d07b8478f3e8452c6724309ff0e48 29312
openjfx_11.0.11+1-7.debian.tar.xz
cfcafc4e511499e5c573e59d83d837c899f6af7f55bcc9aa0fb4eaa5fef858b6 24017
openjfx_11.0.11+1-7_amd64.buildinfo
Files:
528a0147244e692cf090d4141f3291c4 2799 java optional openjfx_11.0.11+1-7.dsc
be9a96e344c0ce4252c32f537f850e0e 29312 java optional
openjfx_11.0.11+1-7.debian.tar.xz
822b9753d2f9e42b8900cc2bd1422089 24017 java optional
openjfx_11.0.11+1-7_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJIBAEBCgAyFiEE5Qr9Va3SequXFjqLIdIFiZdLPpYFAmf8MyYUHHRtYW5jaWxs
QGRlYmlhbi5vcmcACgkQIdIFiZdLPpZ9oBAAhdOl8+LF6p5ss0y2T4q0BZkyJR9H
MSUXECdWHYU3gqXNwu3WsmRfIt6wGJQHb+VWDYa/5zemnpcX7WtvAYGaKGQfNxC9
XYcSufpZ/mzS7apTAL+hD7k+3X/dNoldGYBENRCGIeQ/m/FcS1LYaiogMb0AKQrm
TjicfC8NaYa+TyRfSyiWRairclhWSPfUh7DvshYp8hQzhak5XCXBjTMrUp68USU8
8e4Mb4Noe8HLqortERPlndKd437iC27pHZ9sen5FqxdGrfVf1xVXGG6LKG/J3xn4
B+K+8gCNQ98E23lW1qJGr3wpOmO0g3xzuc/uiw8qOupLXTFE/TvRmf0O8v7yNnVE
nieiAKpDQODjxSizFGq2RYcCPRAF+6U38uk1kkg9EC01fuFrBx7qpvuaLuJ8OU/6
p6S8rXVnDBgWXXPNofiy6+ugjA4QwZth+wIpPuuqHmwYXHRqtCAxqIiJ7yj23exF
mpRpyUcx2vR/uoVJkgBI7i9Doa7iCAe7/hKXGe7C7TpXV4qO+IbajJmaXy9rFtTp
znTgJiwl5i9HPfv/ZQ9GcTJuf2Hna4rvr0wb7euokgThXmlGbjtK8D4GekBdReqR
i88ahaxkx1CE3goLXTYuwnXlPLq1tLm5pqpaeKRqIF10eVIM87ZgYCPavQ07yjJb
lNVms2A3nZB4QBk=
=wF3E
-----END PGP SIGNATURE-----
pgpCDV2hw348f.pgp
Description: PGP signature
--- End Message ---
__
This is the maintainer address of Debian's Java team
<https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-java-maintainers>.
Please use
[email protected] for discussions and questions.