Bug#1054569: qtbase-opensource-src: FTBFS: Please add support for loongarch64
Source: qtbase-opensource-src Version: 5.15.10+dfsg-4 Severity: wishlist Tags: ftbfs patch User: debian-loonga...@lists.debian.org Usertags: loong64 Dear maintainers, We need to add architectural support for qtbase-opensource-src. Otherwise it will cause test cases failures for other packages which depend qtbase-opensource-src. For example, the kpackage now has a build status of Build-Attempted. Please see the detail message at [1]. BTW, A recent query revealed that LoongArch architecture is now supported by the upstream [2]. Please consider the patch I have attached. Or pull full support from upstream. Would it be possible to include the support for LoongArch in the next upload? If you have any questions, you can contact me at any time. [1]:https://buildd.debian.org/status/package.php?p=kpackage&suite=sid [2]:https://github.com/qt/qtbase thanks, Dandan Zhang Description: Add support for loongarch64. --- Last-Update: 2023-10-07 --- qtbase-opensource-src-5.15.10+dfsg.orig/src/3rdparty/double-conversion/include/double-conversion/utils.h +++ qtbase-opensource-src-5.15.10+dfsg/src/3rdparty/double-conversion/include/double-conversion/utils.h @@ -93,6 +93,7 @@ int main(int argc, char** argv) { #if defined(_M_X64) || defined(__x86_64__) || \ defined(__ARMEL__) || defined(__avr32__) || defined(_M_ARM) || defined(_M_ARM64) || \ defined(__hppa__) || defined(__ia64__) || \ +defined(__loongarch__) || \ defined(__mips__) || \ defined(__powerpc__) || defined(__ppc__) || defined(__ppc64__) || \ defined(_POWER) || defined(_ARCH_PPC) || defined(_ARCH_PPC64) || \ --- qtbase-opensource-src-5.15.10+dfsg.orig/src/3rdparty/forkfd/forkfd_linux.c +++ qtbase-opensource-src-5.15.10+dfsg/src/3rdparty/forkfd/forkfd_linux.c @@ -82,7 +82,7 @@ static int sys_clone(unsigned long clone return syscall(__NR_clone, cloneflags, child_stack, stack_size, ptid, newtls, ctid); #elif defined(__arc__) || defined(__arm__) || defined(__aarch64__) || defined(__mips__) || \ defined(__nds32__) || defined(__hppa__) || defined(__powerpc__) || defined(__i386__) || \ -defined(__x86_64__) || defined(__xtensa__) || defined(__alpha__) || defined(__riscv) +defined(__x86_64__) || defined(__xtensa__) || defined(__alpha__) || defined(__riscv) || defined(__loongarch__) /* ctid and newtls are inverted on CONFIG_CLONE_BACKWARDS architectures, * but since both values are 0, there's no harm. */ return syscall(__NR_clone, cloneflags, child_stack, ptid, ctid, newtls); --- qtbase-opensource-src-5.15.10+dfsg.orig/src/corelib/global/archdetect.cpp +++ qtbase-opensource-src-5.15.10+dfsg/src/corelib/global/archdetect.cpp @@ -71,6 +71,8 @@ # define ARCH_PROCESSOR "riscv32" #elif defined(Q_PROCESSOR_RISCV_64) # define ARCH_PROCESSOR "riscv64" +#elif defined(Q_PROCESSOR_LOONGARCH_64) +# define ARCH_PROCESSOR "loongarch64" #elif defined(Q_PROCESSOR_S390_X) # define ARCH_PROCESSOR "s390x" #elif defined(Q_PROCESSOR_S390) --- qtbase-opensource-src-5.15.10+dfsg.orig/src/corelib/global/qglobal.cpp +++ qtbase-opensource-src-5.15.10+dfsg/src/corelib/global/qglobal.cpp @@ -1967,6 +1967,29 @@ bool qSharedBuild() noexcept */ /*! +\macro Q_PROCESSOR_LOONGARCH +\relates +\since 5.13 + +Defined if the application is compiled for LoongArch processors. Qt currently +supports one LoongArch variants: \l Q_PROCESSOR_LOONGARCH_64. + +\sa QSysInfo::buildCpuArchitecture() +*/ + +/*! +\macro Q_PROCESSOR_LOONGARCH_64 +\relates +\since 5.13 + +Defined if the application is compiled for 64-bit LoongArch processors. The \l +Q_PROCESSOR_LOONGARCH macro is also defined when Q_PROCESSOR_LOONGARCH_64 is +defined. + +\sa QSysInfo::buildCpuArchitecture() +*/ + +/*! \macro Q_PROCESSOR_S390 \relates --- qtbase-opensource-src-5.15.10+dfsg.orig/src/corelib/global/qprocessordetection.h +++ qtbase-opensource-src-5.15.10+dfsg/src/corelib/global/qprocessordetection.h @@ -300,6 +300,15 @@ # endif # define Q_BYTE_ORDER Q_LITTLE_ENDIAN +#elif defined(__loongarch__) +# define Q_PROCESSOR_LOONGARCH +# if __loongarch_grlen == 64 +#define Q_PROCESSOR_LOONGARCH_64 +# else +#define Q_PROCESSOR_LOONGARCH_32 +# endif +# define Q_BYTE_ORDER Q_LITTLE_ENDIAN + /* S390 family, known variant: S390X (64-bit)
Bug#1054569: qtbase-opensource-src: FTBFS: Please add support for loongarch64
Hi, Thanks for your reply. 在 2023/10/26 下午3:21, Sune Stolborg Vuorela 写道: Do you have a link to the upstream accept of this? A link to a gerrit review, to a git hash or something like that ? The 6.5 branches support the LoongArch architecture, please see at https://github.com/qt/qtbase/tree/6.5 The commit for LoongArch architecture, please see at https://github.com/qt/qtbase/commit/bdc16f086f1664b56d8add0691c9a80d7997efd9 I pulled the qtbase source code, switched to branch 6.5 or a newer branch, the results of the search are as follows. ``` root@localhost:/home/dd/# git clone https://github.com/212dandan/qtbase.git root@localhost:/home/dd/qtbase# git checkout remotes/origin/6.5 HEAD is now at 66ee534fba SignalDumper: fix UB (data race on ignoreLevel) root@localhost:/home/dd/qtbase# grep "loongarch" -ri . |awk -F ":" '{print$1}' |uniq ./src/corelib/global/archdetect.cpp ./src/corelib/global/qprocessordetection.qdoc ./src/corelib/global/qprocessordetection.h ./src/corelib/plugin/qelfparser_p.cpp ./src/3rdparty/forkfd/forkfd_linux.c ./src/3rdparty/double-conversion/double-conversion/utils.h ``` thanks, Dandan Zhang
Bug#1065491: qtwebkit-opensource-src: Add support for loongarch64
Source: qtwebkit-opensource-src Version: 5.212.0~alpha4-33 Severity: wishlist Tags: ftbfs User: debian-loonga...@lists.debian.org Usertags: loong64 Dear maintainers, Compiling the qtwebkit-opensource-src failed for loong64 in the Debian Package Auto-Building environment. The reason is the lack of loongarch64 support in qtwebkit-opensource-src. I have added the patch(add loongarch64 support) to upstream, please see the pull-request https://github.com/qtwebkit/qtwebkit/pull/1096. But the status of pull request from upstream is still open. Reference to other architectures, I added the loongarch64 support to the qtwebkit-opensource-src source package. Please consider the patch I attached. If you have any questions, you can contact me at any time. thanks, Dandan Zhang Description: Add loongarch64 support Author: Dandan Zhang Forwarded: https://github.com/qtwebkit/qtwebkit/pull/1096 Last-Update: 2024-03-05 --- qtwebkit-opensource-src-5.212.0~alpha4.orig/CMakeLists.txt +++ qtwebkit-opensource-src-5.212.0~alpha4/CMakeLists.txt @@ -63,6 +63,8 @@ elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR set(WTF_CPU_ARM64 1) elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "alpha*") set(WTF_CPU_ALPHA 1) +elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "loongarch64") +set(WTF_CPU_LOONGARCH64 1) elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "^mips") set(WTF_CPU_MIPS 1) elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "sh4") --- qtwebkit-opensource-src-5.212.0~alpha4.orig/Source/JavaScriptCore/CMakeLists.txt +++ qtwebkit-opensource-src-5.212.0~alpha4/Source/JavaScriptCore/CMakeLists.txt @@ -1280,6 +1280,7 @@ if (WTF_CPU_ARM) elseif (WTF_CPU_ARM64) elseif (WTF_CPU_ALPHA) elseif (WTF_CPU_HPPA) +elseif (WTF_CPU_LOONGARCH64) elseif (WTF_CPU_PPC) elseif (WTF_CPU_PPC64) elseif (WTF_CPU_PPC64LE) --- qtwebkit-opensource-src-5.212.0~alpha4.orig/Source/WTF/wtf/Platform.h +++ qtwebkit-opensource-src-5.212.0~alpha4/Source/WTF/wtf/Platform.h @@ -80,6 +80,11 @@ #endif #endif +/* CPU(LOONGARCH64) - LoongArch 64-bit */ +#if defined(__loongarch64) +#define WTF_CPU_LOONGARCH64 1 +#endif + /* CPU(MIPS) - MIPS 32-bit and 64-bit */ #if (defined(mips) || defined(__mips__) || defined(MIPS) || defined(_MIPS_) || defined(__mips64)) #if defined(_ABI64) && (_MIPS_SIM == _ABI64) @@ -713,7 +718,8 @@ || CPU(MIPS64) \ || CPU(PPC64) \ || CPU(PPC64LE) \ -|| CPU(RISCV64) +|| CPU(RISCV64) \ +|| CPU(LOONGARCH64) #define USE_JSVALUE64 1 #else #define USE_JSVALUE32_64 1 --- qtwebkit-opensource-src-5.212.0~alpha4.orig/Source/WTF/wtf/dtoa/utils.h +++ qtwebkit-opensource-src-5.212.0~alpha4/Source/WTF/wtf/dtoa/utils.h @@ -49,7 +49,7 @@ defined(__ARMEL__) || \ defined(_MIPS_ARCH_MIPS32R2) #define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1 -#elif CPU(MIPS) || CPU(MIPS64) || CPU(PPC) || CPU(PPC64) || CPU(PPC64LE) || CPU(SH4) || CPU(S390) || CPU(S390X) || CPU(IA64) || CPU(ALPHA) || CPU(ARM64) || CPU(HPPA) || CPU(RISCV64) +#elif CPU(MIPS) || CPU(MIPS64) || CPU(PPC) || CPU(PPC64) || CPU(PPC64LE) || CPU(SH4) || CPU(S390) || CPU(S390X) || CPU(IA64) || CPU(ALPHA) || CPU(ARM64) || CPU(HPPA) || CPU(RISCV64) || CPU(LOONGARCH64) #define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1 #elif defined(_M_IX86) || defined(__i386__) #if defined(_WIN32)
Bug#1068681: kquickcharts: Make the tests non-fatal on loong64
Source: kquickcharts Version: 5.107.0-1 Severity: wishlist Tags: ftbfs patch User: debian-loonga...@lists.debian.org Usertags: loong64 Dear maintainers, Compiling the kquickcharts package failed for loong64 in the Debian Package Auto-Building environment, the error log is as follows: ``` .. The following tests FAILED: 5 - tst_BarChart.qml (Subprocess aborted) 6 - tst_LineChart.qml (Subprocess aborted) 7 - tst_PieChart.qml (Subprocess aborted) Errors while running CTest ``` The full build log can be found at https://buildd.debian.org/status/logs.php?pkg=kquickcharts&ver=5.107.0-1%2Bb1&arch=loong64. There is no architecture-related code in the kquickcharts source code. Refer to the processing methods of other architectures, could you set the tests non-fatal on loong64? Please consider the patch I have attached. Your opinions are welcome. Thanks, Dandan Zhang diff -Nru kquickcharts-5.107.0/debian/rules kquickcharts-5.107.0/debian/rules --- kquickcharts-5.107.0/debian/rules 2023-03-16 21:42:02.0 + +++ kquickcharts-5.107.0/debian/rules 2023-06-18 14:08:49.0 + @@ -5,7 +5,7 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all -testsuite_failing_archs := alpha hppa hurd-i386 mips64el powerpc riscv64 x32 +testsuite_failing_archs := alpha hppa hurd-i386 loong64 mips64el powerpc riscv64 x32 ifneq (,$(filter $(DEB_HOST_ARCH),$(testsuite_failing_archs))) fail_param := || true endif
Bug#1073134: qtquickcontrols-opensource-src: Ignore test failure on loong64
Source: qtquickcontrols-opensource-src Version: 5.15.13-2 Severity: normal Tags: patch User: debian-loonga...@lists.debian.org Usertags: loong64 Dear maintainers, Compiling the qtquickcontrols-opensource-src failed for loong64 in the Debian Package Auto-Building environment. The error log is as follows, ``` PASS : qtquickcontrols::Tests_ApplicationWindow::test_defaultContentItemConstraints(minimum_implicit_maximum_anchorsFill_margins) PASS : qtquickcontrols::Tests_ApplicationWindow::test_defaultContentItemConstraints(minimum_height_maximum_anchorsFill) Segmentation fault make[5]: *** [Makefile:318: check] Error 139 make[5]: Leaving directory '/<>/tests/auto/controls' .. ``` The Full log can be found at https://buildd.debian.org/status/logs.php?pkg=qtquickcontrols-opensource-src&ver=5.15.13-2&arch=loong64. Refer for other architectures, please ignore test failure "Segmentation fault" on loong64. Please consider the patch I attached. Your opinions are welcome. Thanks, Dandan Zhang diff -Nru qtquickcontrols-opensource-src-5.15.13/debian/rules qtquickcontrols-opensource-src-5.15.13/debian/rules --- qtquickcontrols-opensource-src-5.15.13/debian/rules 2024-05-21 15:48:57.0 + +++ qtquickcontrols-opensource-src-5.15.13/debian/rules 2024-05-21 15:48:57.0 + @@ -26,7 +26,7 @@ override_dh_auto_test-arch: $(MAKE) install INSTALL_ROOT=$(CURDIR)/test_root -ifneq (,$(filter $(DEB_HOST_ARCH),hppa mips mips64el mipsel powerpc ppc64 riscv64 s390x)) +ifneq (,$(filter $(DEB_HOST_ARCH),hppa mips mips64el mipsel powerpc ppc64 riscv64 s390x loong64)) # mips*: segmentation fault, see #868745 # powerpc, ppc64: some failures in extras::Tests_Picture and extras::Tests_StatusIndicator # hppa, riscv64: failure in qtquickcontrols::Tests_TreeView::test_pressAndHold
Bug#1073141: qtwebsockets-opensource-src: Add loong64 to the list of architectures that crash on test
Source: qtwebsockets-opensource-src Version: 5.15.13-2 Severity: normal Tags: patch User: debian-loonga...@lists.debian.org Usertags: loong64 Dear maintainers, Compiling the qtwebsockets-opensource-src failed for loong64 in the Debian Package Auto-Building environment. Run tests/auto/qml/qmlwebsockets, occurs "Segmentation fault". The error log is as follows, ``` make[3]: Entering directory '/<>/tests/auto/qml' cd qmlwebsockets/ && ( test -e Makefile || /usr/lib/qt5/bin/qmake -o Makefile /<>/tests/auto/qml/qmlwebsockets/qmlwebsockets.pro 'QMAKE_CFLAGS_RELEASE=-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2' 'QMAKE_CFLAGS_DEBUG=-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2' 'QMAKE_CXXFLAGS_RELEASE=-g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2' 'QMAKE_CXXFLAGS_DEBUG=-g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2' QMAKE_LFLAGS_RELEASE=-Wl,-z,relro QMAKE_LFLAGS_DEBUG=-Wl,-z,relro QMAKE_STRIP=: PREFIX=/usr QT_BUILD_PARTS+=tests ) && make -f Makefile check make[4]: Entering directory '/<>/tests/auto/qml/qmlwebsockets' /<>/tests/auto/qml/qmlwebsockets/target_wrapper.sh xvfb-run -a -s "-screen 0 1024x768x24 +extension RANDR +extension RENDER +extension GLX" ./tst_qmlwebsockets Segmentation fault make[4]: *** [Makefile:327: check] Error 139 .. ``` The build log of qtwebsockets-opensource-src 5.15.13-2 can be found at https://buildd.debian.org/status/logs.php?pkg=qtwebsockets-opensource-src&arch=loong64. The qtwebsockets-opensource-src 5.15.12-1 (experimental) was built successfully for loong64 in the Debian Package Auto-Building environment. Refer for other architectures, please add loong64 to the list of architectures that crash on test. Please consider the patch I attached. Your opinions are welcome. Thanks, Dandan Zhang diff -Nru qtwebsockets-opensource-src-5.15.13/debian/changelog qtwebsockets-opensource-src-5.15.13/debian/changelog --- qtwebsockets-opensource-src-5.15.13/debian/changelog 2024-05-21 15:54:24.0 + +++ qtwebsockets-opensource-src-5.15.13/debian/changelog 2024-06-05 11:33:19.0 + @@ -1,3 +1,11 @@ +qtwebsockets-opensource-src (5.15.13-2+loong64) unreleased; urgency=medium + + * Run tests/auto/qml/qmlwebsockets, occurs "Segmentation fault". + * Add loong64 to the list of architectures that crash on tests. + * Use nodoc option and modify d/rules. + + -- Dandan Zhang Wed, 05 Jun 2024 19:33:19 +0800 + qtwebsockets-opensource-src (5.15.13-2) unstable; urgency=medium * Remove Timo and me form Uploaders. diff -Nru qtwebsockets-opensource-src-5.15.13/debian/rules qtwebsockets-opensource-src-5.15.13/debian/rules --- qtwebsockets-opensource-src-5.15.13/debian/rules 2024-05-21 15:54:24.0 + +++ qtwebsockets-opensource-src-5.15.13/debian/rules 2024-06-05 11:31:52.0 + @@ -22,7 +22,8 @@ # mips64el: even if the code did not change from 5.11.2 (where it run fine) to # 5.11.3, a test is segfaulting. The issue might be somewhere else. Maybe bug #868745? # powerpc: see https://bugs.debian.org/1013169 -ifneq (,$(filter $(DEB_HOST_ARCH),mips64el powerpc)) +# loong64: run tests/auto/qml/qmlwebsockets, occurs "Segmentation fault" +ifneq (,$(filter $(DEB_HOST_ARCH),mips64el powerpc loong64)) -LD_LIBRARY_PATH=$(CURDIR)/lib QML2_IMPORT_PATH=$(CURDIR)/test_root/usr/lib/$(DEB_HOST_MULTIARCH)/qt5/qml \ TESTRUNNER='xvfb-run -a -s "-screen 0 1024x768x24 +extension RANDR +extension RENDER +extension GLX"' \ dh_auto_test --max-parallel=1 -- -Ctests/auto
Bug#1073142: qtlocation-opensource-src: Qt QML engine test is broken on loong64
Source: qtlocation-opensource-src Version: 5.15.13+dfsg-2 Severity: normal Tags: patch User: debian-loonga...@lists.debian.org Usertags: loong64 Dear maintainers, Compiling the qtlocation-opensource-src failed for loong64 in the Debian Package Auto-Building environment. The build log can be found at https://buildd.debian.org/status/logs.php?pkg=qtlocation-opensource-src&ver=5.15.13%2Bdfsg-2&arch=loong64. Refer for other architectures, please add loong64 to "Qt QML engine is broken" lists in debian/rules. Please consider the patch I attached. Your opinions are welcome. Thanks, Dandan Zhang diff -Nru qtlocation-opensource-src-5.15.13+dfsg/debian/rules qtlocation-opensource-src-5.15.13+dfsg/debian/rules --- qtlocation-opensource-src-5.15.13+dfsg/debian/rules 2024-05-21 15:47:51.0 + +++ qtlocation-opensource-src-5.15.13+dfsg/debian/rules 2024-06-06 02:04:57.0 + @@ -28,7 +28,7 @@ $(MAKE) install -Csrc/imports INSTALL_ROOT=$(CURDIR)/test_root # Qt QML engine is broken on several architectures: # mips* (#868745), sparc64 (#894726), ia64 (#929682), hppa (#973659), powerpc (#973519). -ifneq (,$(filter $(DEB_HOST_ARCH),hppa ia64 mips mips64el mipsel powerpc sparc64)) +ifneq (,$(filter $(DEB_HOST_ARCH),hppa ia64 mips mips64el mipsel powerpc sparc64 loong64)) -xvfb-run -a -s "-screen 0 1024x768x24 +extension RANDR +extension RENDER +extension GLX" \ dh_auto_test -- -Ctests/auto \ QML2_IMPORT_PATH=$(CURDIR)/test_root/usr/lib/$(DEB_HOST_MULTIARCH)/qt5/qml
Bug#1073245: kdevelop: please enable the usage of LLVM/Clang on loong64
Source: kdevelop Version: 4:23.08.1-2 Severity: normal Tags: patch User: debian-loonga...@lists.debian.org Usertags: loong64 Dear maintainers, Compiling the kdevelop failed for loong64 in the Debian Package Auto-Building environment. The build error log is as follows, ``` dh_install: warning: Cannot find (any matches for) "usr/lib/*/libKDevClangPrivate.so.512" (tried in ., debian/tmp) dh_install: warning: kdevelop missing files: usr/lib/*/libKDevClangPrivate.so.512 dh_install: warning: Cannot find (any matches for) "usr/lib/*/qt5/plugins/kdevplatform/512/kdevclangsupport.so" (tried in ., debian/tmp) dh_install: warning: kdevelop missing files: usr/lib/*/qt5/plugins/kdevplatform/512/kdevclangsupport.so dh_install: error: missing files, aborting make: *** [debian/rules:22: binary-arch] Error 255 dpkg-buildpackage: error: debian/rules binary-arch subprocess returned exit status 2 ``` The full log can be found at https://buildd.debian.org/status/logs.php?pkg=kdevelop&ver=4%3A23.08.1-2&arch=loong64. Please enable the usage of LLVM/Clang on loong64, as clang, llvm-dev is available there. View http://ftp.ports.debian.org/debian-ports/pool-loong64/main/l/. The support for loongarch in Debian llvm is complete. Please consider the patch I attached. I have built kdevelop successfully in my local ENV. ``` .. dpkg-deb: building package 'plasma-kdevelop' in '../plasma-kdevelop_23.08.1-2_loong64.deb'. dpkg-genbuildinfo -O../kdevelop_23.08.1-2_loong64.buildinfo dpkg-genchanges -O../kdevelop_23.08.1-2_loong64.changes ``` Your opinions are welcome. Thanks, Dandan Zhang diff -Nru kdevelop-23.08.1/debian/changelog kdevelop-23.08.1/debian/changelog --- kdevelop-23.08.1/debian/changelog 2023-09-24 15:15:06.0 + +++ kdevelop-23.08.1/debian/changelog 2024-06-15 03:31:13.0 + @@ -1,3 +1,9 @@ +kdevelop (4:23.08.1-2+loong64) unreleased; urgency=medium + + * Enable the usage of LLVM/Clang on loong64. + + -- Dandan Zhang Sat, 15 Jun 2024 03:31:13 + + kdevelop (4:23.08.1-2) unstable; urgency=medium * Upload to unstable. diff -Nru kdevelop-23.08.1/debian/control kdevelop-23.08.1/debian/control --- kdevelop-23.08.1/debian/control 2023-09-18 06:54:53.0 + +++ kdevelop-23.08.1/debian/control 2024-06-15 03:29:35.0 + @@ -4,7 +4,7 @@ Maintainer: Debian Qt/KDE Maintainers Uploaders: Pino Toscano , Build-Depends: bash-completion, - clang (>= 1:6.0) [!alpha !hppa !ia64 !loong64 !m68k !sh4 !sparc64 !x32], + clang (>= 1:6.0) [!alpha !hppa !ia64 !m68k !sh4 !sparc64 !x32], cmake (>= 3.16~), debhelper-compat (= 13), dh-exec, @@ -15,7 +15,7 @@ kdevelop-pg-qt (>= 2.2.0), libboost-serialization-dev, libastyle-dev (>= 3.1), - libclang-dev (>= 1:6.0) [!alpha !hppa !ia64 !loong64 !m68k !sh4 !sparc64 !x32], + libclang-dev (>= 1:6.0) [!alpha !hppa !ia64 !m68k !sh4 !sparc64 !x32], libgrantlee5-dev, libkf5archive-dev (>= 5.91.0~), libkf5config-dev (>= 5.91.0~), @@ -48,7 +48,7 @@ libkomparediff2-dev, libqt5webkit5-dev (>= 5.15.2~), libsvn-dev, - llvm-dev (>= 1:6.0) [!alpha !hppa !ia64 !loong64 !m68k !sh4 !sparc64 !x32], + llvm-dev (>= 1:6.0) [!alpha !hppa !ia64 !m68k !sh4 !sparc64 !x32], okteta-dev (>= 5:0.26.2~), pkg-config, qtbase5-dev (>= 5.15.2~), diff -Nru kdevelop-23.08.1/debian/rules kdevelop-23.08.1/debian/rules --- kdevelop-23.08.1/debian/rules 2023-09-18 05:00:23.0 + +++ kdevelop-23.08.1/debian/rules 2024-06-15 03:28:45.0 + @@ -6,7 +6,7 @@ export KDEV_PLUGIN_VERSION=512 # The list of architectures (expanded, without wildcards) that do not use clang -no_clang_args = alpha hppa ia64 loong64 m68k sh4 sparc64 x32 +no_clang_args = alpha hppa ia64 m68k sh4 sparc64 x32 ifeq (,$(filter $(DEB_HOST_ARCH), $(no_clang_args))) # The clang-N used for the build by the unversioned clang current_clang_pkg = $(shell dpkg -S "$(shell realpath $(shell env PATH=$$(echo "$$PATH" | sed -r -e 's|/usr/lib/ccache/?:||') which clang))" | cut -d: -f1)
Bug#1074247: qzxing: Update symbols for loong64 in debian/libqzxing3.symbols
Source: qzxing Version: 3.3.0+dfsg-5 Severity: normal Tags: patch User: debian-loonga...@lists.debian.org Usertags: loong64 Hi maintainers, Compiling the qzxing failed for loong64 in the Debian Package Auto-Building environment. Build failed 8 times. The build error log is as follows, ``` .. +#MISSING: 3.3.0+dfsg-5# (optional=templinst|arch=!amd64 !arm64 !armel !armhf !hppa !i386 !mips64el !mipsel !powerpc !ppc64 !ppc64el !riscv64 !s390x !sh4 !x32)_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EES5_RKS8_@Base 3.3.0 _ZTI12ImageHandler@Base 3.3.0 _ZTI12QZXingFilter@Base 3.3.0 _ZTI16QFutureInterfaceIvE@Base 3.3.0 dh_makeshlibs: error: failing due to earlier errors . ``` The full log can be found at https://buildd.debian.org/status/logs.php?pkg=qzxing&ver=3.3.0%2Bdfsg-5&arch=loong64. Please consider the patch I attached. ``` Add loong64 in the below archs, as follows, debian/libqzxing3.symbols: Update for these archs: armel, armhf, hppa, hurd-i386, i386, mipsel, powerpc, ppc64, riscv64, s390x, and sh4. ``` I have built qzxing successfully in my local ENV. ``` dpkg-deb: building package 'qml-module-qzxing' in '../qml-module-qzxing_3.3.0+dfsg-5_loong64.deb'. dpkg-genbuildinfo -O../qzxing_3.3.0+dfsg-5_loong64.buildinfo dpkg-genchanges -O../qzxing_3.3.0+dfsg-5_loong64.changes .. ``` Your opinions are welcome. Thanks, Dandan Zhang diff -Nru qzxing-3.3.0+dfsg/debian/libqzxing3.symbols qzxing-3.3.0+dfsg/debian/libqzxing3.symbols --- qzxing-3.3.0+dfsg/debian/libqzxing3.symbols 2023-07-27 18:12:43.0 + +++ qzxing-3.3.0+dfsg/debian/libqzxing3.symbols 2023-07-27 18:13:56.0 + @@ -1,4 +1,4 @@ -# SymbolsHelper-Confirmed: 3.3.0 amd64 arm64 armel armhf hppa hurd-i386 i386 mips64el mipsel powerpc ppc64 ppc64el riscv64 s390x sh4 x32 +# SymbolsHelper-Confirmed: 3.3.0 amd64 arm64 armel armhf hppa hurd-i386 i386 mips64el mipsel powerpc ppc64 ppc64el riscv64 s390x sh4 x32 loong64 libqzxing.so.3 libqzxing3 #MINVER# * Build-Depends-Package: libqzxing-dev _Z10getTagRectRK14QSharedPointerISt6vectorIS_IN5zxing11ResultPointEESaIS3_EEERKS_INS1_9BitMatrixEE@Base 3.3.0 @@ -116,8 +116,8 @@ (optional=templinst)_ZN14QSharedPointerISt6vectorIhSaIhEEED2Ev@Base 3.3.0 (optional=templinst)_ZN14QSharedPointerISt6vectorIiSaIiEEED1Ev@Base 3.3.0 (optional=templinst)_ZN14QSharedPointerISt6vectorIiSaIiEEED2Ev@Base 3.3.0 - (optional=templinst|arch=!amd64 !arm64 !mips64el !ppc64 !ppc64el !riscv64 !s390x)_ZN15NumberlikeArrayImEC1ERKS0_@Base 3.3.0 - (optional=templinst|arch=!amd64 !arm64 !mips64el !ppc64 !ppc64el !riscv64 !s390x)_ZN15NumberlikeArrayImEC2ERKS0_@Base 3.3.0 + (optional=templinst|arch=!amd64 !arm64 !mips64el !ppc64 !ppc64el !riscv64 !s390x !loong64)_ZN15NumberlikeArrayImEC1ERKS0_@Base 3.3.0 + (optional=templinst|arch=!amd64 !arm64 !mips64el !ppc64 !ppc64el !riscv64 !s390x !loong64)_ZN15NumberlikeArrayImEC2ERKS0_@Base 3.3.0 (optional=templinst)_ZN15NumberlikeArrayImEaSERKS0_@Base 3.3.0 (optional=templinst)_ZN15QtSharedPointer33ExternalRefCountWithCustomDeleterI18CameraImageWrapperNS_13NormalDeleterEE7deleterEPNS_20ExternalRefCountDataE@Base 3.3.0 (optional=templinst)_ZN15QtSharedPointer33ExternalRefCountWithCustomDeleterIN5zxing10datamatrix16DataMatrixReaderENS_13NormalDeleterEE7deleterEPNS_20ExternalRefCountDataE@Base 3.3.0 @@ -1673,7 +1673,7 @@ _ZNK18CameraImageWrapper7getRowPEi14QSharedPointerISt6vectorIhSaIhEEE@Base 3.3.0 _ZNK18CameraImageWrapper9getMatrixEv@Base 3.3.0 _ZNK20QZXingFilterRunnable10metaObjectEv@Base 3.3.0 - (optional=templinst|arch=amd64 arm64 armel armhf hppa i386 mips64el mipsel powerpc ppc64 ppc64el riscv64 s390x sh4 x32)_ZNK5QHashIP7QObject15QHashDummyValueE8findNodeERKS1_Pj@Base 3.3.0 + (optional=templinst|arch=amd64 arm64 armel armhf hppa i386 mips64el mipsel powerpc ppc64 ppc64el riscv64 s390x sh4 x32 loong64)_ZNK5QHashIP7QObject15QHashDummyValueE8findNodeERKS1_Pj@Base 3.3.0 _ZNK5zxing10datamatrix11CornerPoint6equalsE14QSharedPointerIS1_E@Base 3.3.0 _ZNK5zxing10datamatrix11CornerPoint8getCountEv@Base 3.3.0 _ZNK5zxing10datamatrix7Version11getECBlocksEv@Base 3.3.0 @@ -1827,12 +1827,12 @@ (optional=templinst)_ZNSt12_Vector_baseIN5zxing4oned3rss4PairESaIS3_EED2Ev@Base 3.3.0 (optional=templinst)_ZNSt12_Vector_baseIPKcSaIS1_EED1Ev@Base 3.3.0 (optional=templinst)_ZNSt12_Vector_baseIPKcSaIS1_EED2Ev@Base 3.3.0 - (optional=templinst|arch=!amd64 !arm64 !armel !armhf !hppa !i386 !mips64el !mipsel !powerpc !ppc64 !ppc64el !riscv64 !s390x !sh4 !x32)_ZNSt12_Vector_baseIPN5zxing6qrcode3ECBESaIS3_EED1Ev@Base 3.3.0 - (optional=templinst|arch=!amd64 !arm64 !armel !armhf !hppa !i386 !mips64el !mipsel !powerpc !ppc64 !ppc64el !riscv64 !s390x !sh4 !x32)_ZNSt12_Vector_baseIPN5zxing6qrcode3ECBESaIS3_EED2Ev@Base 3.3.0 - (optional=templinst|arch=!amd64 !arm64 !armel !armhf !hppa !i386 !mips64el !mipsel !powerpc !ppc64 !ppc64el !riscv64 !s390x !sh4 !x32)_ZNSt12_Vector_baseIfSaIfEED1Ev@Base 3.3.0 - (optional=
Bug#1075787: qt3d-opensource-src: Make tests non-fatal on loong64
Source: qt3d-opensource-src Version: 5.15.13+dfsg-2 Severity: normal Tags: patch User: debian-loonga...@lists.debian.org Usertags: loong64 Dear maintainers, Compiling the qt3d-opensource-src failed for loong64 in the Debian Package Auto-Building environment. The build log can be found at https://buildd.debian.org/status/logs.php?pkg=qt3d-opensource-src&arch=loong64. After analyzing the test cases, the reported error is not related to the architecture. Refer for other architectures, please add loong64 to "Make tests non-fatal" lists in debian/rules. Please consider the patch I attached. Your opinions are welcome. Thanks, Dandan Zhang diff --git a/debian/rules b/debian/rules index e6a87c8..db26feb 100755 --- a/debian/rules +++ b/debian/rules @@ -30,7 +30,7 @@ override_dh_link: override_dh_auto_test-arch: # Hangs on ppc*, s390x: https://bugreports.qt.io/browse/QTBUG-63864 -ifneq (,$(filter $(DEB_HOST_ARCH),powerpc ppc64 ppc64el s390x)) +ifneq (,$(filter $(DEB_HOST_ARCH),powerpc ppc64 ppc64el s390x loong64)) -xvfb-run -a -s "-screen 0 1024x768x24 +extension RANDR +extension RENDER +extension GLX +extension EGL" \ dh_auto_test --max-parallel=1 -- -Ctests/auto QT_PLUGIN_PATH=$(CURDIR)/plugins QML2_IMPORT_PATH=$(CURDIR)/qml else
Bug#1073245: kdevelop: please enable the usage of LLVM/Clang on loong64
Hi maintainers, On Sat, 15 Jun 2024 14:12:50 +0800 zhangdandan wrote: > Source: kdevelop > Version: 4:23.08.1-2 > Severity: normal > Tags: patch > User: debian-loonga...@lists.debian.org > Usertags: loong64 > > Dear maintainers, > > Compiling the kdevelop failed for loong64 in the Debian Package > Auto-Building environment. > The build error log is as follows, > ``` > dh_install: warning: Cannot find (any matches for) > "usr/lib/*/libKDevClangPrivate.so.512" (tried in ., debian/tmp) > > dh_install: warning: kdevelop missing files: > usr/lib/*/libKDevClangPrivate.so.512 > dh_install: warning: Cannot find (any matches for) > "usr/lib/*/qt5/plugins/kdevplatform/512/kdevclangsupport.so" (tried in > ., debian/tmp) > > dh_install: warning: kdevelop missing files: > usr/lib/*/qt5/plugins/kdevplatform/512/kdevclangsupport.so > dh_install: error: missing files, aborting > make: *** [debian/rules:22: binary-arch] Error 255 > dpkg-buildpackage: error: debian/rules binary-arch subprocess returned > exit status 2 > ``` > The full log can be found at > https://buildd.debian.org/status/logs.php?pkg=kdevelop&ver=4%3A23.08.1-2&arch=loong64. > > Please enable the usage of LLVM/Clang on loong64, as clang, llvm-dev is > available there. > View http://ftp.ports.debian.org/debian-ports/pool-loong64/main/l/. > The support for loongarch in Debian llvm is complete. > > Please consider the patch I attached. > I have built kdevelop successfully in my local ENV. Please take care of the patch we attached for loong64 in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1073245#5. For loong64, now kdevelop's support for loong64 has been uploaded to the unreleased repository of debian-ports. Please check http://ftp.ports.debian.org/debian-ports/pool-loong64/main/k/kdevelop/. Could you add loong64 support in the next upload? Thanks Dandan Zhang
Bug#1089214: qttools-opensource-src: Please enable qdoc-qt5 and qwebview designer plugin on loong64
Source: qttools-opensource-src Version: 5.15.15-3 Severity: wishlist Tags: patch User: debian-loonga...@lists.debian.org Usertags: loong64 Dear maintainers, Compiling the qttools-opensource-src successed for loong64 in the Debian Package Auto-Building environment. But qttools-opensource-src source package cannot build qdoc-qt5 on loong64. Without qdoc-qt5 support, the phenomenon caused is lomiri-ui-toolkit_1.3.5100 build failure. The reason is as below, 1.lomiri-ui-toolkit's build dependency including qttools5-dev-tools. 2.qttools5-dev-tools was built from qttools-opensource-src. 3.qttools-opensource-src's d/control can not set the qdoc-qt5's installation-depend for loong64. 4.due to not build and enable qdoc-qt5 for loong64 in qttools-opensource-src's d/control. ``` Package: qttools5-dev-tools Architecture: any Multi-Arch: foreign Section: devel Depends: qdoc-qt5 (= ${binary:Version}) [amd64 arm64 armel armhf .. riscv64 s390x sparc64], ``` The error log can be found at https://buildd.debian.org/status/logs.php?pkg=lomiri-ui-toolkit&arch=loong64. Please consider the patch I attached for qttools-opensource-src. I have built qttools-opensource-src successfully on local ENV. ``` dh_builddeb -a dpkg-deb: building package 'libqt5designercomponents5' in '../libqt5designercomponents5_5.15.15-4_loong64.deb'. dpkg-deb: building package 'libqt5designer5' in '../libqt5designer5_5.15.15-4_loong64.deb'. dpkg-deb: building package 'qhelpgenerator-qt5' in '../qhelpgenerator-qt5_5.15.15-4_loong64.deb'. dpkg-deb: building package 'qttools5-dev' in '../qttools5-dev_5.15.15-4_loong64.deb'. dpkg-deb: building package 'qdbus-qt5' in '../qdbus-qt5_5.15.15-4_loong64.deb'. dpkg-deb: building package 'qtattributionsscanner-qt5' in '../qtattributionsscanner-qt5_5.15.15-4_loong64.deb'. dpkg-deb: building package 'qdoc-qt5' in '../qdoc-qt5_5.15.15-4_loong64.deb'. .. dpkg-deb: building package 'qt5-assistant-dbgsym' in '../qt5-assistant-dbgsym_5.15.15-4_loong64.deb'. dpkg-deb: building package 'qdoc-qt5-dbgsym' in '../qdoc-qt5-dbgsym_5.15.15-4_loong64.deb'. .. dpkg-deb: building package 'qttools5-private-dev' in '../qttools5-private-dev_5.15.15-4_loong64.deb'. dpkg-genbuildinfo --build=any -O../qttools-opensource-src_5.15.15-4_loong64.buildinfo ``` Please enable qdoc-qt5 and qwebview designer plugin on loong64, this is important for loong64. Enable qdoc-qt5 in qttools-opensource-src source package for loong64 will be friendly to many packages who's build dependency is qttools5-dev-tools(e.g.If the qdoc-qt5 installation dependency is not installed, it will suddenly fail during compilation). Best regards, Dandan Zhang diff -Nru qttools-opensource-src-5.15.15/debian/control qttools-opensource-src-5.15.15/debian/control --- qttools-opensource-src-5.15.15/debian/control 2024-11-17 01:28:39.0 +0800 +++ qttools-opensource-src-5.15.15/debian/control 2024-11-24 17:17:28.0 +0800 @@ -8,11 +8,11 @@ Dmitry Shachnev , Simon Quigley Build-Depends: debhelper-compat (= 13), - libclang-dev (>= 1:3.9~) [amd64 arm64 armel armhf hurd-i386 i386 mips mips64 mips64el mips64r6 mips64r6el mipsel mipsr6 mipsr6el powerpc ppc64 ppc64el riscv64 s390x sparc64], + libclang-dev (>= 1:3.9~) [amd64 arm64 armel armhf hurd-i386 i386 loong64 mips mips64 mips64el mips64r6 mips64r6el mipsel mipsr6 mipsr6el powerpc ppc64 ppc64el riscv64 s390x sparc64], libqt5opengl5-dev (>= 5.15.15+dfsg~), libqt5sql5-sqlite (>= 5.15.15+dfsg~), - libqt5webkit5-dev (>= 5.212.0~alpha4-8~) [amd64 arm64 armel armhf i386 mips64el mipsel ppc64 ppc64el riscv64 s390x sh4 x32], - llvm-dev (>= 1:3.9~) [amd64 arm64 armel armhf hurd-i386 i386 mips mips64 mips64el mips64r6 mips64r6el mipsel mipsr6 mipsr6el powerpc ppc64 ppc64el riscv64 s390x sparc64], + libqt5webkit5-dev (>= 5.212.0~alpha4-8~) [amd64 arm64 armel armhf i386 loong64 mips64el mipsel ppc64 ppc64el riscv64 s390x sh4 x32], + llvm-dev (>= 1:3.9~) [amd64 arm64 armel armhf hurd-i386 i386 loong64 mips mips64 mips64el mips64r6 mips64r6el mipsel mipsr6 mipsr6el powerpc ppc64 ppc64el riscv64 s390x sparc64], pkg-kde-tools, qtbase5-private-dev (>= 5.15.15+dfsg~), qtdeclarative5-private-dev (>= 5.15.15+dfsg~), @@ -61,7 +61,7 @@ the QtDBus library. Package: qdoc-qt5 -Architecture: amd64 arm64 armel armhf hurd-i386 i386 mips mips64 mips64el mips64r6 mips64r6el mipsel mipsr6 mipsr6el powerpc ppc64 ppc64el riscv64 s390x sparc64 +Architecture: amd64 arm64 armel armhf hurd-i386 i386 loong64 mips mips64 mips64el mips64r6 mips64r6el mipsel mipsr6 mipsr6el powerpc ppc64 ppc64el riscv64 s390x sparc64 Multi-Arch: foreign Section: utils Depends: qtchooser, ${misc:Depends}, ${shlibs:Depends} @@ -151,7 +151,7 @@ Architecture: any Multi-Arch: foreign Section: devel -Depends: