Re: Bug#1043225: qt6-base: Please add patch to re-enable support for SuperH (sh4)

John Paul Adrian Glaubitz <[email protected]> Mon, 07 Aug 2023 18:23:47 +0200
Newsgroups gmane.linux.debian.ports.superh
Message-ID <e05f9143d9cdd95ec14efd85c32438af017159cd.camel@physik.fu-berlin.de>
Hi!

Forgot to specify Q_BYTE_ORDER. Updated patch attached.

Adrian


-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
Add-SH-detection.patch (text/x-patch, 766 B)
Index: qt6-base-6.4.2+dfsg/src/corelib/global/qprocessordetection.h
===================================================================
--- qt6-base-6.4.2+dfsg.orig/src/corelib/global/qprocessordetection.h
+++ qt6-base-6.4.2+dfsg/src/corelib/global/qprocessordetection.h
@@ -294,12 +294,12 @@
 
     SuperH is bi-endian, use endianness auto-detection implemented below.
 */
-// #elif defined(__sh__)
-// #  define Q_PROCESSOR_SH
-// #  if defined(__sh4a__)
-// #    define Q_PROCESSOR_SH_4A
-// #  endif
-// Q_BYTE_ORDER not defined, use endianness auto-detection
+#elif defined(__sh__)
+#  define Q_PROCESSOR_SH
+#  if defined(__sh4a__)
+#    define Q_PROCESSOR_SH_4A
+#  endif
+#  define Q_BYTE_ORDER Q_LITTLE_ENDIAN
 
 /*
     SPARC family, optional revision: V9