From 3458f47d69aaaf5de5d5fbbcd25fccb754d0ee16 Mon Sep 17 00:00:00 2001 From: Grant Miller Date: Thu, 24 Jan 2019 22:35:06 -0600 Subject: community/qt5-qtwebengine: Fix x86 I took the patch from https://codereview.qt-project.org/#/c/247777/ and I changed the file paths from chromium to src/3rdparty/chromium to match the structure of the source tarball. I can confirm that qt5-qtwebengine now compiles for x86. --- .../Fix-x86-32-builds-with-GCC-8.patch | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 community/qt5-qtwebengine/Fix-x86-32-builds-with-GCC-8.patch (limited to 'community/qt5-qtwebengine/Fix-x86-32-builds-with-GCC-8.patch') diff --git a/community/qt5-qtwebengine/Fix-x86-32-builds-with-GCC-8.patch b/community/qt5-qtwebengine/Fix-x86-32-builds-with-GCC-8.patch new file mode 100644 index 0000000000..5ba7060450 --- /dev/null +++ b/community/qt5-qtwebengine/Fix-x86-32-builds-with-GCC-8.patch @@ -0,0 +1,36 @@ +From 0c72e11fee13749f697ab87d9f6b04c835696657 Mon Sep 17 00:00:00 2001 +From: Allan Sandfeld Jensen +Date: Mon, 10 Dec 2018 14:32:13 +0100 +Subject: [PATCH] Fix x86-32 builds with GCC 8 + +The C++11 alignof() now returns minimum alignment and not +prefered alignment which Chromium expects. + +Change-Id: I7aadb426e6e15b4f2317cafdde550ea74e4c1ccf +Fixes: QTBUG-72391 +Reviewed-by: Michal Klocek +--- + src/3rdparty/chromium/mojo/public/c/system/macros.h | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/src/3rdparty/chromium/mojo/public/c/system/macros.h b/src/3rdparty/chromium/mojo/public/c/system/macros.h +index 6de4a913de..87016c431d 100644 +--- a/src/3rdparty/chromium/mojo/public/c/system/macros.h ++++ b/src/3rdparty/chromium/mojo/public/c/system/macros.h +@@ -27,10 +27,10 @@ + (sizeof(void*) == 4 ? 32 : 0) + + // Like the C++11 |alignof| operator. +-#if __cplusplus >= 201103L +-#define MOJO_ALIGNOF(type) alignof(type) +-#elif defined(__GNUC__) ++#if defined(__GNUC__) + #define MOJO_ALIGNOF(type) __alignof__(type) ++#elif __cplusplus >= 201103L ++#define MOJO_ALIGNOF(type) alignof(type) + #elif defined(_MSC_VER) + // The use of |sizeof| is to work around a bug in MSVC 2010 (see + // http://goo.gl/isH0C; supposedly fixed since then). +-- +2.16.3 + -- cgit v1.2.3