diff --git a/community/qt5-qtscript/APKBUILD b/community/qt5-qtscript/APKBUILD index 467ec757448..2c23b2e16c1 100644 --- a/community/qt5-qtscript/APKBUILD +++ b/community/qt5-qtscript/APKBUILD @@ -15,6 +15,7 @@ subpackages="$pkgname-dev" source="https://dev.alpinelinux.org/archive/qt/$_fullname.tar.xz qtscript-everywhere-src-5.10.1-sgidefs.patch qtscript-s390x.patch + qtscript-loongarch64.patch " builddir="$srcdir/$_fullname" @@ -61,4 +62,5 @@ sha512sums=" d43cba0e036b34fec59378660050444048c2c15025c2a74be35ef5867047e8b201233a5d3b90db3c1cf29eb1adb733a7f062631257ab73bce6f4abf200a6808d qtscript-4f8c35a528586541ea55bb8b3361eaa6749e52b1.tar.xz c89124fc940ceaa5cfc52c8f48b8eef17bba575a080fad3f27d61e3da98ab5cfd4bb6ffaae09ccae81f6f7644719fa28d38d4b7a7fe4cdb4268673c39627eb22 qtscript-everywhere-src-5.10.1-sgidefs.patch a0a22824954d35495d9d08c2b82d6eeeec26765760d417b8bc72c51e1753d4bb9f5e55d5289001d2d6071669a0bfd4f856fc3d0cf58b509bcbcd5211df35e482 qtscript-s390x.patch +f2708815aec1c12b3d4cdaa93473504ab1139ccd3caf9c9fbda8113480e4394048d0024914c45ce51c6c627b03d12ae73be700bafa802a4c55cfb2e3b214846d qtscript-loongarch64.patch " diff --git a/community/qt5-qtscript/qtscript-loongarch64.patch b/community/qt5-qtscript/qtscript-loongarch64.patch new file mode 100644 index 00000000000..82206b03435 --- /dev/null +++ b/community/qt5-qtscript/qtscript-loongarch64.patch @@ -0,0 +1,25 @@ +diff --git a/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h b/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h +index 108adfc..66a3cb9 100644 +--- a/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h ++++ b/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h +@@ -419,6 +419,11 @@ + #define WTF_CPU_RISCV32 1 + #endif + ++/* CPU(LOONGARCH64) - LOONGARCH64 64-bit */ ++#if defined(__loongarch64) ++#define WTF_CPU_LOONGARCH64 1 ++#endif ++ + /* ==== OS() - underlying operating system; only to be used for mandated low-level services like + virtual memory, not to choose a GUI toolkit ==== */ + +@@ -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) ++#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(LOONGARCH64) + #define WTF_USE_JSVALUE64 1 + #elif CPU(ARM) || CPU(PPC64) || CPU(RISCV32) || CPU(S390X) + #define WTF_USE_JSVALUE32 1