[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1054569: marked as done (qtbase-opensource-src: FTBFS: Please add support for loongarch64)



Your message dated Mon, 13 Nov 2023 08:52:09 +0000
with message-id <E1r2Sfx-00ALKD-KR@fasolo.debian.org>
and subject line Bug#1054569: fixed in qtbase-opensource-src 5.15.10+dfsg-5
has caused the Debian Bug report #1054569,
regarding qtbase-opensource-src: FTBFS: Please add support for loongarch64
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1054569: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1054569
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: qtbase-opensource-src
Version: 5.15.10+dfsg-4
Severity: wishlist
Tags: ftbfs patch
User: debian-loongarch@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 <QtGlobal>
+    \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 <QtGlobal>
+    \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 <QtGlobal>
 
--- 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)
 

--- End Message ---
--- Begin Message ---
Source: qtbase-opensource-src
Source-Version: 5.15.10+dfsg-5
Done: Dmitry Shachnev <mitya57@debian.org>

We believe that the bug you reported is fixed in the latest version of
qtbase-opensource-src, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1054569@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Dmitry Shachnev <mitya57@debian.org> (supplier of updated qtbase-opensource-src package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 13 Nov 2023 11:21:47 +0300
Source: qtbase-opensource-src
Architecture: source
Version: 5.15.10+dfsg-5
Distribution: unstable
Urgency: medium
Maintainer: Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Changed-By: Dmitry Shachnev <mitya57@debian.org>
Closes: 1048743 1054569
Changes:
 qtbase-opensource-src (5.15.10+dfsg-5) unstable; urgency=medium
 .
   * Add a patch to support LoongArch (closes: #1054569). Thanks Dandan Zhang!
   * Add a debian/clean file (closes: #1048743).
Checksums-Sha1:
 6b52118510ca929f16dfa57d162323ddb5c7f1ae 5312 qtbase-opensource-src_5.15.10+dfsg-5.dsc
 2508b2e5e2045ea4fb25a0f5043fcbc369a9e0c7 235672 qtbase-opensource-src_5.15.10+dfsg-5.debian.tar.xz
 14027038448cd4e523dabd326e101f31ddeaadd8 16050 qtbase-opensource-src_5.15.10+dfsg-5_source.buildinfo
Checksums-Sha256:
 ad577c14dfec1679315de739848b8c8180ab56f68ad977c3dc947cc450982a97 5312 qtbase-opensource-src_5.15.10+dfsg-5.dsc
 6fb60c67e7da314495a09550f2cc53760dbdef0097996389688892a8a5b61566 235672 qtbase-opensource-src_5.15.10+dfsg-5.debian.tar.xz
 cd0333e391989c8bcbc73ef313ef40acfa7c9de2b4bd30a2ebfa08d2e5269143 16050 qtbase-opensource-src_5.15.10+dfsg-5_source.buildinfo
Files:
 c6b3b278aad0e727939ef3c2cc0767ab 5312 libs optional qtbase-opensource-src_5.15.10+dfsg-5.dsc
 b4905835c918143d526206e98608f482 235672 libs optional qtbase-opensource-src_5.15.10+dfsg-5.debian.tar.xz
 0dc8a52b4e9202b2d04c54be998c7cd7 16050 libs optional qtbase-opensource-src_5.15.10+dfsg-5_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJHBAEBCgAxFiEEq2sdvrA0LydXHe1qsmYUtFL0RrYFAmVR3R8THG1pdHlhNTdA
ZGViaWFuLm9yZwAKCRCyZhS0UvRGtnRUEACJpS+Gfr92ePRcAn8afixnJICes/eY
dhoEXJiggQXdDTqUEK1tv++VEBFGuXoFCnfadmlVR1vjgFRIb6Yr2INlGVBEnGrv
sQNSkqGuFhryadBafqltP2Nutss4C6Hc0MXNi5rNu09CzxlbUnIJH7TZrblvVsK4
iosJfWhQ2urJX/I5rCoAtzlmDB/qhXRTjVfqYg8DLa8n+zp0ShelBXuG6U5wWn5d
fDJ46VTz2tjcdpFeH7zuZOqbuf9CVwexeXuz3x+01eaYGhDV2RtP7SE0R4ki6LKY
8vy06jw7hRsxa5YyyfM/K5eyQKL3cGG720Q6KodKjX6wuMXX9OcHixMfFrVt+YEB
yYFWYYUfWsFKg86aHdVXoatFpe/4PfFzxHcAUfLT/cb41U5JlwZh9SMbgEzenogt
bzO61T8KEVvQy/B1Zsq089mnT9Mpjr9QA8sWdSdctpGRUoDhWIfYpHio8vpzPLC4
KJiu77O4ZQxOLJiyYMveL/SEwtqA21YsGTZvuGcivKd9lmRErm/xIRs0sayxIer4
CblA3GZpxe3mHdlFak3cReZIOt3GyQy0VOJLuF67AdTZCrBuK5Vb+5LLyjXLJ1Gp
g2rk1hZg3K8JlY+4fUNbj5oH4uSUEinf8PhM1/5ovL+JAM/ta83S3a8N9CS3s63d
93NRLayIEGf8Sg==
=cosd
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: