diff --git a/debian/changelog b/debian/changelog index c08a5fe..8a73887 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +qtscript-opensource-src (5.15.10+dfsg-2ok1.3) nile; urgency=medium + + * Add a patch to support loongarch64 (closes: #1064339, thanks Ding Song). + + -- liwenjun Mon, 29 Jul 2024 15:16:43 +0800 + qtscript-opensource-src (5.15.10+dfsg-2ok1.2) nile; urgency=medium * add patches. diff --git a/debian/patches/0007-Add-a-patch-to-support-loongarch64.patch b/debian/patches/0007-Add-a-patch-to-support-loongarch64.patch new file mode 100644 index 0000000..5498f82 --- /dev/null +++ b/debian/patches/0007-Add-a-patch-to-support-loongarch64.patch @@ -0,0 +1,33 @@ +From: Rewnosor +Date: Mon, 29 Jul 2024 15:18:39 +0800 +Subject: Add a patch to support loongarch64 + +--- + src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h | 7 ++++++- + 1 file changed, 6 insertions(+), 1 deletion(-) + +diff --git a/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h b/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h +index 4bf2a5d..6c04d32 100644 +--- 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 +@@ -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 fa380f3..73431e6 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -4,3 +4,4 @@ s390x_jscore.diff hppa_stackbase.diff 0005-init-5.15.10.patch 0006-add-patches.patch +0007-Add-a-patch-to-support-loongarch64.patch