Bug#1134097: webkit2gtk: Please refresh no-must-tail.patch to address FTBFS on alpha and sh4

John Paul Adrian Glaubitz <[email protected]> Thu, 16 Apr 2026 12:29:00 +0200
Newsgroups gmane.linux.debian.ports.superh
Message-ID <177633534070.1094693.8674995516903613884.reportbug__15012.0827996702$1776335493$gmane$org@login1.physik.fu-berlin.de>
This is a multi-part MIME message sent by reportbug.


--===============0593023734516130458==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Source: webkit2gtk
Version: 2.52.2-2
Severity: normal
Tags: ftbfs patch
X-Debbugs-Cc: [email protected], [email protected]
User: [email protected]
Usertags: sh4
User: [email protected]
Usertags: alpha

Hi,

the patch no-must-tail.patch needs an update to fix the FTBFS on alpha and sh4.

I am attaching an updated version of the patch. Please consider including it
for the next upload.

Thanks,
Adrian

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

--===============0593023734516130458==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="no-must-tail.patch"

From: John Paul Adrian Glaubitz <[email protected]>
Subject: Disable musttail on alpha, hppa, sh4 and m68k
Bug-Debian: https://bugs.debian.org/1125380
Index: webkit2gtk-2.52.2/Source/ThirdParty/skia/modules/skcms/src/skcms_internals.h
===================================================================
--- webkit2gtk-2.52.2.orig/Source/ThirdParty/skia/modules/skcms/src/skcms_internals.h
+++ webkit2gtk-2.52.2/Source/ThirdParty/skia/modules/skcms/src/skcms_internals.h
@@ -52,11 +52,16 @@ extern "C" {
                                                  && !defined(__arm__) \
                                                  && !defined(__riscv) \
                                                  && !defined(__powerpc__) \
+                                                 && !defined(__alpha__) \
+                                                 && !defined(__hppa__) \
+                                                 && !defined(__m68k__) \
+                                                 && !defined(__sh__) \
                                                  && !defined(__loongarch__) \
                                                  && !defined(_WIN32) && !defined(__SYMBIAN32__)
             #define SKCMS_HAS_MUSTTAIL 1
         #endif
-    #elif defined(__GNUC__) && !defined(SKCMS_HAS_MUSTTAIL)
+    #elif defined(__GNUC__) && !defined(SKCMS_HAS_MUSTTAIL) && !defined(__alpha__) && \
+          !defined(__hppa__) && !defined(__m68k__) && !defined(__sh__)
         // GCC on riscv64 does not support our tail call functions
         // cf. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121784
         #if __has_cpp_attribute(clang::musttail) && !defined(__riscv)
@@ -64,7 +69,8 @@ extern "C" {
         #else
             #define SKCMS_HAS_MUSTTAIL 0
         #endif
-    #elif !defined(__clang__) && !defined(SKCMS_HAS_MUSTTAIL)
+    #elif !defined(__clang__) && !defined(SKCMS_HAS_MUSTTAIL) && !defined(__alpha__) && \
+          !defined(__hppa__) && !defined(__m68k__) && !defined(__sh__)
         #if __has_cpp_attribute(clang::musttail)
             #define SKCMS_HAS_MUSTTAIL 1
         #else
Index: webkit2gtk-2.52.2/Source/ThirdParty/skia/src/core/SkRasterPipeline.h
===================================================================
--- webkit2gtk-2.52.2.orig/Source/ThirdParty/skia/src/core/SkRasterPipeline.h
+++ webkit2gtk-2.52.2/Source/ThirdParty/skia/src/core/SkRasterPipeline.h
@@ -26,8 +26,8 @@ enum SkColorType : int;
 struct SkImageInfo;
 struct skcms_TransferFunction;
 
-#if __has_cpp_attribute(clang::musttail) && !defined(__EMSCRIPTEN__) && !defined(SK_CPU_ARM32) && \
-        !defined(SK_CPU_LOONGARCH) && !defined(SK_CPU_PPC) && \
+#if __has_cpp_attribute(clang::musttail) && !defined(__EMSCRIPTEN__) && !defined(SK_CPU_ARM32) && !defined(__alpha__) && \
+        !defined(SK_CPU_LOONGARCH) && !defined(SK_CPU_PPC) && !defined(__sh__) && !defined(__m68k__) && !defined(__hppa__) && \
         !(defined(_WIN32) && defined(SK_BUILD_FOR_ANDROID_FRAMEWORK))
     // [[clang::musttail]] is disabled for the Android version of Skia running on Windows as it
     // causes crashes (This is probably related to http://crbug.com/1505442).

--===============0593023734516130458==--