diff --git a/qt5-qtbase.spec b/qt5-qtbase.spec index 718af6a0efc03e8b4fe77b394a573fb09dfbcced..ff35a36cec8dd2718698ebc7d9b9b1647b8098c8 100644 --- a/qt5-qtbase.spec +++ b/qt5-qtbase.spec @@ -27,7 +27,7 @@ Summary: Qt5 - QtBase components Name: qt5-qtbase Version: 5.15.11 -Release: 9%{?dist} +Release: 11%{?dist} License: LGPL-3.0-only OR GPL-3.0-only WITH Qt-GPL-exception-1.0 Url: http://qt-project.org/ %global majmin %(echo %{version} | cut -d. -f1-2) @@ -62,6 +62,7 @@ Patch3020: CVE-2023-51714.diff Patch3021: qtbase-5.15.11-add-loongarch64-support-for-Double-Conversion.patch Patch3022: CVE-2024-39936-qtbase-5.15.patch Patch3023: CVE-2025-5455-qtbase-5.15.patch +Patch3024: qtbase-5.15.11-add-support-for-loongarch64.patch %if 0%{?use_clang} BuildRequires: clang >= 3.7.0 %else @@ -823,6 +824,10 @@ fi %changelog +* Tue Sep 9 2025 doupengda - 5.15.11-11 +- [Type] other +- [DESC] add support for loongarch64 + * Mon Jun 30 2025 xiaoyunzhao - 5.15.11-9 - [Type] Security - [DESC] fix CVE-2025-5455 diff --git a/qtbase-5.15.11-add-support-for-loongarch64.patch b/qtbase-5.15.11-add-support-for-loongarch64.patch new file mode 100644 index 0000000000000000000000000000000000000000..29018d6cf39ab94e26f0a58f27db5d578593cdb1 --- /dev/null +++ b/qtbase-5.15.11-add-support-for-loongarch64.patch @@ -0,0 +1,41 @@ +From d91d5d9480c480930bc780b4a24463cdd404a7f2 Mon Sep 17 00:00:00 2001 +From: doupengda +Date: Tue, 9 Sep 2025 09:34:37 +0800 +Subject: [PATCH] qtbase-5.15.11 add support for loongarch64 + +--- + src/corelib/global/archdetect.cpp | 2 ++ + src/corelib/global/qprocessordetection.h | 4 ++++ + 2 files changed, 6 insertions(+) + +diff --git a/src/corelib/global/archdetect.cpp b/src/corelib/global/archdetect.cpp +index 1d00b7f5..cbea45ee 100644 +--- a/src/corelib/global/archdetect.cpp ++++ b/src/corelib/global/archdetect.cpp +@@ -83,6 +83,8 @@ + # define ARCH_PROCESSOR "sparcv9" + #elif defined(Q_PROCESSOR_SPARC) + # define ARCH_PROCESSOR "sparc" ++#elif defined(Q_PROCESSOR_LOONGARCH_64) ++# define ARCH_PROCESSOR "loongarch64" + #else + # define ARCH_PROCESSOR "unknown" + #endif +diff --git a/src/corelib/global/qprocessordetection.h b/src/corelib/global/qprocessordetection.h +index 8d657208..42ceface 100644 +--- a/src/corelib/global/qprocessordetection.h ++++ b/src/corelib/global/qprocessordetection.h +@@ -223,6 +223,10 @@ + # define Q_PROCESSOR_WORDSIZE 8 + // Q_BYTE_ORDER not defined, use endianness auto-detection + ++#elif defined(__loongarch64) ++# define Q_PROCESSOR_LOONGARCH_64 ++# define Q_PROCESSOR_WORDSIZE 8 ++ + /* + MIPS family, known revisions: I, II, III, IV, 32, 64 + +-- +2.43.7 +