Bug#1033042: webkit2gtk: Please disable ccache on m68k

John Paul Adrian Glaubitz <[email protected]>
Newsgroups gmane.linux.debian.ports.68k
Message-ID <167895848171.1496407.11025810774860778070.reportbug__9047.9281776183$1678958676$gmane$org@nofan.physik.fu-berlin.de>
Source: webkit2gtk
Version: 2.38.5-1
Severity: normal
Tags: patch
User: [email protected]
Usertags: m68k
X-Debbugs-Cc: [email protected]

Hi!

On m68k, the build currently fails with ccache enabled due to a bug in qemu-user:

FAILED: Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/heap/StructureAlignedMemoryAllocator.cpp.o 
/usr/bin/ccache /usr/bin/c++ -DBUILDING_GTK__=1 -DBUILDING_JavaScriptCore -DBUILDING_WITH_CMAKE=1 \
(...)
-o Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/heap/StructureAlignedMemoryAllocator.cpp.o \
-c /<<PKGBUILDDIR>>/Source/JavaScriptCore/heap/StructureAlignedMemoryAllocator.cpp
ccache: pthread_mutex_lock.c:94: ___pthread_mutex_lock: Assertion `mutex->__data.__owner == 0' failed.
qemu: uncaught target signal 6 (Aborted) - core dumped
Aborted

This issue can be worked around by disabling ccache which will prolong the build times, of course, but
at least the package gets built.

Thus, could you disable ccache on m68k with the following change to debian/control{,.in}:

--- old/webkit2gtk-2.38.5/debian/control.in     2023-02-15 18:10:55.000000000 +0100
+++ new/webkit2gtk-2.38.5/debian/control.in     2023-03-11 10:42:47.033477170 +0100
@@ -7,7 +7,7 @@
            Alberto Garcia <[email protected]>
 X-Ubuntu-Use-Langpack: no
 Build-Depends: debhelper-compat (= 12),
-               ccache [!i386],
+               ccache [!i386 !m68k],
                bubblewrap (>= 0.3.1) [!alpha !ia64 !m68k !riscv64 !sh4 !sparc64 !hurd-any !kfreebsd-any],
                xdg-dbus-proxy [!alpha !ia64 !m68k !riscv64 !sh4 !sparc64 !hurd-any !kfreebsd-any],
                libseccomp-dev [!alpha !ia64 !m68k !riscv64 !sh4 !sparc64 !hurd-any !kfreebsd-any],

Thanks,
Adrian

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
webkit2gtk-m68k-ccache.diff (text/plain, 667 B)
--- old/webkit2gtk-2.38.5/debian/control.in	2023-02-15 18:10:55.000000000 +0100
+++ new/webkit2gtk-2.38.5/debian/control.in	2023-03-11 10:42:47.033477170 +0100
@@ -7,7 +7,7 @@
            Alberto Garcia <[email protected]>
 X-Ubuntu-Use-Langpack: no
 Build-Depends: debhelper-compat (= 12),
-               ccache [!i386],
+               ccache [!i386 !m68k],
                bubblewrap (>= 0.3.1) [!alpha !ia64 !m68k !riscv64 !sh4 !sparc64 !hurd-any !kfreebsd-any],
                xdg-dbus-proxy [!alpha !ia64 !m68k !riscv64 !sh4 !sparc64 !hurd-any !kfreebsd-any],
                libseccomp-dev [!alpha !ia64 !m68k !riscv64 !sh4 !sparc64 !hurd-any !kfreebsd-any],
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.