Gentoo Archives: gentoo-commits

From: Michael Palimaka <kensington@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-qt/qtgui/, dev-qt/qtgui/files/
Date: Sat, 08 Jul 2017 03:21:31
Message-Id: 1499484071.c6b2840ee88b2c39486177c68a4c898e5fed0583.kensington@gentoo
1 commit: c6b2840ee88b2c39486177c68a4c898e5fed0583
2 Author: Michael Palimaka <kensington <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jul 8 03:19:17 2017 +0000
4 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 8 03:21:11 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c6b2840e
7
8 dev-qt/qtgui: backport patch from upstream solving build failure on x32
9
10 Gentoo-bug: 623882
11 Package-Manager: Portage-2.3.6, Repoman-2.3.2
12
13 dev-qt/qtgui/files/qtgui-5.7.1-x32.patch | 34 ++++++++++++++++++++++++++++++++
14 dev-qt/qtgui/qtgui-5.7.1-r1.ebuild | 5 ++++-
15 2 files changed, 38 insertions(+), 1 deletion(-)
16
17 diff --git a/dev-qt/qtgui/files/qtgui-5.7.1-x32.patch b/dev-qt/qtgui/files/qtgui-5.7.1-x32.patch
18 new file mode 100644
19 index 00000000000..9cfc29d1d08
20 --- /dev/null
21 +++ b/dev-qt/qtgui/files/qtgui-5.7.1-x32.patch
22 @@ -0,0 +1,34 @@
23 +From 92805a0e9c488e47280e93f65e5378818e340ad1 Mon Sep 17 00:00:00 2001
24 +From: Laszlo Agocs <laszlo.agocs@××.io>
25 +Date: Mon, 7 Nov 2016 11:23:21 +0100
26 +Subject: Fix EGL break on Debian X32
27 +
28 +Change to QT_POINTER_SIZE instead of Q_PROCESSOR_WORDSIZE. The latter
29 +is 8 due to targeting 64-bit, but pointers are 32-bit still in such
30 +builds. For the condition in question it is the pointer size that
31 +matters.
32 +
33 +Task-number: QTBUG-56686
34 +Change-Id: I96c203cae91ceb8404606de605c4fdb1a02a9d5f
35 +Reviewed-by: Dmitry Shachnev <mitya57@×××××.com>
36 +Reviewed-by: Thiago Macieira <thiago.macieira@×××××.com>
37 +---
38 + src/platformsupport/eglconvenience/qt_egl_p.h | 2 +-
39 + 1 file changed, 1 insertion(+), 1 deletion(-)
40 +
41 +diff --git a/src/platformsupport/eglconvenience/qt_egl_p.h b/src/platformsupport/eglconvenience/qt_egl_p.h
42 +index 615ee4b80a..b1495c9f9d 100644
43 +--- a/src/platformsupport/eglconvenience/qt_egl_p.h
44 ++++ b/src/platformsupport/eglconvenience/qt_egl_p.h
45 +@@ -83,7 +83,7 @@ struct QtEglConverter<uint32_t, uintptr_t>
46 + { return v; }
47 + };
48 +
49 +-#if Q_PROCESSOR_WORDSIZE > 4
50 ++#if QT_POINTER_SIZE > 4
51 + template <>
52 + struct QtEglConverter<uintptr_t, uint32_t>
53 + {
54 +--
55 +cgit v1.1-6-g87c4
56 +
57
58 diff --git a/dev-qt/qtgui/qtgui-5.7.1-r1.ebuild b/dev-qt/qtgui/qtgui-5.7.1-r1.ebuild
59 index 0a678b4a974..27b93fb6b85 100644
60 --- a/dev-qt/qtgui/qtgui-5.7.1-r1.ebuild
61 +++ b/dev-qt/qtgui/qtgui-5.7.1-r1.ebuild
62 @@ -77,7 +77,10 @@ PDEPEND="
63 ibus? ( app-i18n/ibus )
64 "
65
66 -PATCHES=( "${FILESDIR}/${P}-qclipboard.patch" ) # QTBUG-56972, KDE bug #348390
67 +PATCHES=(
68 + "${FILESDIR}/${P}-qclipboard.patch" # QTBUG-56972, KDE bug #348390
69 + "${FILESDIR}/${P}-x32.patch" # bug 623882
70 +)
71
72 QT5_TARGET_SUBDIRS=(
73 src/gui