[neon/qt/qtscript/Neon/unstable] debian: Add a patch to support loongarch64.

Dmitry Shachnev null at kde.org
Mon Apr 29 17:44:25 BST 2024


Git commit c8bb0856492fa12796a5018eb48f792390da34a5 by Dmitry Shachnev.
Committed on 25/02/2024 at 20:52.
Pushed by jriddell into branch 'Neon/unstable'.

Add a patch to support loongarch64.

Closes: #1064339.
Thanks Ding Song!

M  +2    -0    debian/changelog
A  +30   -0    debian/patches/loongarch64_jscore.diff
M  +1    -0    debian/patches/series

https://invent.kde.org/neon/qt/qtscript/-/commit/c8bb0856492fa12796a5018eb48f792390da34a5

diff --git a/debian/changelog b/debian/changelog
index 363d3f3..c5c3068 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,7 @@
 qtscript-opensource-src (5.15.10+dfsg-3) UNRELEASED; urgency=medium
 
+  [ Dmitry Shachnev ]
+  * Add a patch to support loongarch64 (closes: #1064339, thanks Ding Song).
 
  -- Debian Qt/KDE Maintainers <debian-qt-kde at lists.debian.org>  Sun, 25 Feb 2024 23:46:54 +0300
 
diff --git a/debian/patches/loongarch64_jscore.diff b/debian/patches/loongarch64_jscore.diff
new file mode 100644
index 0000000..8de834d
--- /dev/null
+++ b/debian/patches/loongarch64_jscore.diff
@@ -0,0 +1,30 @@
+Description: add loongarch64 support
+Author: Ding Song <songding at loongson.cn>
+Forwarded: not-needed
+ Relevant change in upstream webkit, which diverged from our fork:
+ https://github.com/WebKit/WebKit/commit/647e67b23883960f
+Last-Update: 2024-02-25
+
+--- a/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h
++++ b/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h
+@@ -387,6 +387,11 @@
+ 
+ #endif /* ARM */
+ 
++/* CPU(LOONGARCH64) - LOONGARCH64 */
++#if defined(__loongarch64)
++#define WTF_CPU_LOONGARCH64 1
++#endif
++
+ #if (defined(mips) || defined(__mips__) || defined(MIPS) || defined(_MIPS_))
+ #define WTF_CPU_MIPS 1
+ #include <sgidefs.h>
+@@ -970,7 +975,7 @@
+ #endif
+ 
+ #if !defined(WTF_USE_JSVALUE64) && !defined(WTF_USE_JSVALUE32) && !defined(WTF_USE_JSVALUE32_64)
+-#if (CPU(X86_64) && !CPU(X32) && (OS(UNIX) || OS(WINDOWS) || OS(SOLARIS) || OS(HPUX))) || (CPU(IA64) && !CPU(IA64_32)) || CPU(ALPHA) || CPU(AIX64) || CPU(SPARC64) || CPU(MIPS64) || CPU(AARCH64) || CPU(RISCV64) || CPU(S390X)
++#if (CPU(X86_64) && !CPU(X32) && (OS(UNIX) || OS(WINDOWS) || OS(SOLARIS) || OS(HPUX))) || (CPU(IA64) && !CPU(IA64_32)) || CPU(ALPHA) || CPU(AIX64) || CPU(SPARC64) || CPU(MIPS64) || CPU(AARCH64) || CPU(RISCV64) || CPU(S390X) || CPU(LOONGARCH64)
+ #define WTF_USE_JSVALUE64 1
+ #elif CPU(ARM) || CPU(PPC64) || CPU(RISCV32)
+ #define WTF_USE_JSVALUE32 1
diff --git a/debian/patches/series b/debian/patches/series
index 69ce9f5..8ec7284 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@ disable_failing_tests.diff
 disable_v8_sunspider_tests.patch
 s390x_jscore.diff
 hppa_stackbase.diff
+loongarch64_jscore.diff



More information about the Neon-commits mailing list