qtwebkit: unbreak with clang 11 on powerpc

Disable some code assuming that 8 byte __sync_* operators are not
available on that arch and as such trying to redefine builtin functions.

OK jca@, gkoehler@ and rsadowski@ (maintainer)
This commit is contained in:
cwen 2021-05-11 15:33:59 +00:00
parent 168a973418
commit 38b0940493
2 changed files with 19 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.31 2021/05/08 14:58:43 sthen Exp $
# $OpenBSD: Makefile,v 1.32 2021/05/11 15:33:59 cwen Exp $
COMMENT = QtWebKit with a more modern WebKit code base
@ -15,7 +15,7 @@ PKGNAME = qtwebkit-${VERSION}
PKGSPEC = qtwebkit->=${VERSION}v0
EPOCH = 0
REVISION = 3
REVISION = 4
SHARED_LIBS += Qt5WebKit 3.1 # 5.9

View File

@ -0,0 +1,17 @@
$OpenBSD: patch-Source_WTF_wtf_Atomics_cpp,v 1.1 2021/05/11 15:33:59 cwen Exp $
powerpc fix: don't redefine 64-bits __sync_* built-ins operators
Index: Source/WTF/wtf/Atomics.cpp
--- Source/WTF/wtf/Atomics.cpp.orig
+++ Source/WTF/wtf/Atomics.cpp
@@ -32,7 +32,8 @@
// (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56296). GCC >= 4.8 will support __atomic_* builtin
// functions for this purpose for all the GCC targets, but for current compilers we have to include
// our own implementation.
-#if COMPILER(GCC_OR_CLANG) && !defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8) && USE(PTHREADS)
+#if !defined(__powerpc__) \
+ && COMPILER(GCC_OR_CLANG) && !defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8) && USE(PTHREADS)
#include "ThreadingPrimitives.h"