Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-libs/wxGTK/
Date: Tue, 23 Aug 2022 15:19:39
Message-Id: 1661267963.8b215f0743a4266e48ff3377811a7ce73f287d1f.soap@gentoo
1 commit: 8b215f0743a4266e48ff3377811a7ce73f287d1f
2 Author: Emily Rowlands <emily <AT> erowl <DOT> net>
3 AuthorDate: Tue Aug 23 15:19:23 2022 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 23 15:19:23 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b215f07
7
8 x11-libs/wxGTK: Disable precompiled headers
9
10 This commit adds USE=pch to disable precompiled headers. PCHes are
11 unstable and as such, USE=pch is masked globally.
12
13 This bug can alternatively be fixed by filtering various FLAGs
14 (-Wl,-O1 -Wl,-z,relro, and similar).
15
16 Closes: https://bugs.gentoo.org/504204
17 Signed-off-by: Emily Rowlands <emily <AT> erowl.net>
18 Signed-off-by: David Seifert <soap <AT> gentoo.org>
19
20 x11-libs/wxGTK/wxGTK-3.0.4-r3.ebuild | 7 ++++++-
21 x11-libs/wxGTK/wxGTK-3.0.5.1.ebuild | 7 ++++++-
22 2 files changed, 12 insertions(+), 2 deletions(-)
23
24 diff --git a/x11-libs/wxGTK/wxGTK-3.0.4-r3.ebuild b/x11-libs/wxGTK/wxGTK-3.0.4-r3.ebuild
25 index 990923e26230..07a2baecb5c3 100644
26 --- a/x11-libs/wxGTK/wxGTK-3.0.4-r3.ebuild
27 +++ b/x11-libs/wxGTK/wxGTK-3.0.4-r3.ebuild
28 @@ -16,7 +16,7 @@ S="${WORKDIR}/wxWidgets-${PV}"
29 LICENSE="wxWinLL-3 GPL-2 doc? ( wxWinFDL-3 )"
30 SLOT="3.0"
31 KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux"
32 -IUSE="+X doc debug gstreamer libnotify opengl sdl tiff"
33 +IUSE="+X doc debug gstreamer libnotify opengl pch sdl tiff"
34
35 RDEPEND="
36 dev-libs/expat[${MULTILIB_USEDEP}]
37 @@ -59,6 +59,11 @@ multilib_src_configure() {
38 --with-expat=sys
39 --enable-compat28
40 $(use_with sdl)
41 +
42 + # PCHes are unstable and are disabled in-tree where possible
43 + # See bug #504204
44 + # Commits 8c4774042b7fdfb08e525d8af4b7912f26a2fdce, fb809aeadee57ffa24591e60cfb41aecd4823090
45 + $(use_enable pch precomp-headers)
46 )
47
48 # debug in >=2.9
49
50 diff --git a/x11-libs/wxGTK/wxGTK-3.0.5.1.ebuild b/x11-libs/wxGTK/wxGTK-3.0.5.1.ebuild
51 index df33c05344cb..4b37bab0b317 100644
52 --- a/x11-libs/wxGTK/wxGTK-3.0.5.1.ebuild
53 +++ b/x11-libs/wxGTK/wxGTK-3.0.5.1.ebuild
54 @@ -21,7 +21,7 @@ S="${WORKDIR}/wxWidgets-${PV}"
55 LICENSE="wxWinLL-3 GPL-2 doc? ( wxWinFDL-3 )"
56 SLOT="${WXRELEASE}"
57 KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux"
58 -IUSE="+X doc debug gstreamer libnotify opengl sdl tiff webkit"
59 +IUSE="+X doc debug gstreamer libnotify opengl pch sdl tiff webkit"
60
61 RDEPEND="
62 >=app-eselect/eselect-wxwidgets-20131230
63 @@ -94,6 +94,11 @@ multilib_src_configure() {
64 --enable-compat28
65 $(use_with sdl)
66
67 + # PCHes are unstable and are disabled in-tree where possible
68 + # See bug #504204
69 + # Commits 8c4774042b7fdfb08e525d8af4b7912f26a2fdce, fb809aeadee57ffa24591e60cfb41aecd4823090
70 + $(use_enable pch precomp-headers)
71 +
72 # Don't hard-code libdir's prefix for wx-config
73 --libdir='${prefix}'/$(get_libdir)
74 )