Gentoo Archives: gentoo-commits

From: Ionen Wolkens <ionen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-emulation/pcsx2/, games-emulation/pcsx2/files/
Date: Sat, 19 Feb 2022 10:45:35
Message-Id: 1645267513.67703b687d646403482c2b87d61626874097b2ba.ionen@gentoo
1 commit: 67703b687d646403482c2b87d61626874097b2ba
2 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 19 10:08:27 2022 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 19 10:45:13 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67703b68
7
8 games-emulation/pcsx2: fix wxwidgets detection, ignore /usr/lib64
9
10 PCSX2 tries to force a wx-config path while FindwxWidgets.cmake
11 would otherwise use the eclass' WX_CONFIG. Results in a build
12 failure if the wx-config-3.0 symlink points to the gtk2 version.
13
14 This previously worked by accident when cmake is in cross-compilation
15 mode given wx-config32-3.0 doesn't exist and fell back to WX_CONFIG.
16
17 Dirty fix but also force-ignore /usr/lib64 like the toolchain file
18 used to for now, many checks are fragile (e.g. GLU). Ultimately
19 these workarounds shouldn't be needed next release (64bit).
20
21 Thanks-to: Yuri Konotopov <ykonotopov <AT> gnome.org>
22 Bug: https://bugs.gentoo.org/833100
23 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
24
25 .../pcsx2/files/pcsx2-1.6.0-wx-config.patch | 20 ++++++++++++++++++++
26 games-emulation/pcsx2/pcsx2-1.6.0-r3.ebuild | 4 ++++
27 2 files changed, 24 insertions(+)
28
29 diff --git a/games-emulation/pcsx2/files/pcsx2-1.6.0-wx-config.patch b/games-emulation/pcsx2/files/pcsx2-1.6.0-wx-config.patch
30 new file mode 100644
31 index 000000000000..bfa12b893dcd
32 --- /dev/null
33 +++ b/games-emulation/pcsx2/files/pcsx2-1.6.0-wx-config.patch
34 @@ -0,0 +1,20 @@
35 +Don't attempt to use /usr/bin/wx-config-3.0 which can point to the
36 +wrong wx-config depending on eselect'ed wxGTK profile. Furthermore
37 +that path does not use ESYSROOT.
38 +
39 +If unset, FindwxWidgets.cmake will use WX_CONFIG environment
40 +set by the wxwidgets eclass.
41 +--- a/cmake/SearchForStuff.cmake
42 ++++ b/cmake/SearchForStuff.cmake
43 +@@ -50,4 +50,5 @@
44 + # lib32-wx3.0 => /usr/bin/wx-config32-3.0
45 + # FindwxWidgets only searches for wx-config.
46 ++#[[
47 + if(CMAKE_CROSSCOMPILING)
48 + # May need to fix the filenames for lib32-wx3.0.
49 +@@ -71,4 +72,5 @@
50 + endif()
51 + endif()
52 ++#]]
53 +
54 + find_package(wxWidgets COMPONENTS base core adv)
55
56 diff --git a/games-emulation/pcsx2/pcsx2-1.6.0-r3.ebuild b/games-emulation/pcsx2/pcsx2-1.6.0-r3.ebuild
57 index cc399bd2cc8a..1986a75b650e 100644
58 --- a/games-emulation/pcsx2/pcsx2-1.6.0-r3.ebuild
59 +++ b/games-emulation/pcsx2/pcsx2-1.6.0-r3.ebuild
60 @@ -46,6 +46,7 @@ FILECAPS=(
61
62 PATCHES=(
63 "${FILESDIR}/${P}-disable-setcap.patch"
64 + "${FILESDIR}/${P}-wx-config.patch"
65 )
66
67 pkg_setup() {
68 @@ -87,6 +88,9 @@ src_configure() {
69 # wxGTK must be built against same sdl version
70 -DSDL2_API=TRUE
71 -DUSE_VTUNE=FALSE
72 +
73 + # mimic old toolchain file behavior (bug #833100 comment #20)
74 + -DCMAKE_SYSTEM_IGNORE_PATH="${ESYSROOT}"/usr/lib64
75 )
76
77 setup-wxwidgets