Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-games/mygui/, dev-games/mygui/files/
Date: Sun, 11 Oct 2020 10:18:18
Message-Id: 1602411490.f838d5aa1b2dd5952c018c125ed6b72bf71a70fe.slyfox@gentoo
1 commit: f838d5aa1b2dd5952c018c125ed6b72bf71a70fe
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 11 10:18:04 2020 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 11 10:18:10 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f838d5aa
7
8 dev-games/mygui: fix build on c++17 compiler (gcc-11)
9
10 Reported-by: lekto <AT> o2.pl
11 Closes: https://bugs.gentoo.org/732778
12 Package-Manager: Portage-3.0.8, Repoman-3.0.1
13 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
14
15 dev-games/mygui/files/mygui-3.2.2-c++17.patch | 27 +++++++++++++++++++++++++++
16 dev-games/mygui/mygui-3.2.2.ebuild | 3 ++-
17 2 files changed, 29 insertions(+), 1 deletion(-)
18
19 diff --git a/dev-games/mygui/files/mygui-3.2.2-c++17.patch b/dev-games/mygui/files/mygui-3.2.2-c++17.patch
20 new file mode 100644
21 index 00000000000..1cdf7babeb1
22 --- /dev/null
23 +++ b/dev-games/mygui/files/mygui-3.2.2-c++17.patch
24 @@ -0,0 +1,27 @@
25 +https://github.com/MyGUI/mygui/commit/ced30dac10082ff9593a2c971d26b3aebce6b2be.patch
26 +https://bugs.gentoo.org/732778
27 +
28 +Part of:
29 +
30 +From ced30dac10082ff9593a2c971d26b3aebce6b2be Mon Sep 17 00:00:00 2001
31 +From: George Evmenov <george.evmenov@×××××.com>
32 +Date: Fri, 26 Jun 2015 12:25:26 +0300
33 +Subject: [PATCH] do not use nullptr define
34 +
35 +--- a/MyGUIEngine/include/MyGUI_Prerequest.h
36 ++++ b/MyGUIEngine/include/MyGUI_Prerequest.h
37 +@@ -19,13 +19,7 @@
38 + #define MYGUI_DEFINE_VERSION(major, minor, patch) ((major << 16) | (minor << 8) | patch)
39 +
40 + #ifndef MYGUI_DONT_REPLACE_NULLPTR
41 +-# if MYGUI_COMPILER == MYGUI_COMPILER_MSVC
42 +-# ifndef _MANAGED
43 +-# ifndef _NATIVE_NULLPTR_SUPPORTED
44 +-# define nullptr 0
45 +-# endif
46 +-# endif
47 +-# else
48 ++# if __cplusplus < 201103L && !defined(_NATIVE_NULLPTR_SUPPORTED)
49 + # define nullptr 0
50 + # endif
51 + #endif
52
53 diff --git a/dev-games/mygui/mygui-3.2.2.ebuild b/dev-games/mygui/mygui-3.2.2.ebuild
54 index ac582627a70..dc3766716fa 100644
55 --- a/dev-games/mygui/mygui-3.2.2.ebuild
56 +++ b/dev-games/mygui/mygui-3.2.2.ebuild
57 @@ -1,4 +1,4 @@
58 -# Copyright 1999-2019 Gentoo Authors
59 +# Copyright 1999-2020 Gentoo Authors
60 # Distributed under the terms of the GNU General Public License v2
61
62 EAPI=5
63 @@ -41,6 +41,7 @@ PATCHES=(
64 "${FILESDIR}"/${P}-underlinking.patch
65 "${FILESDIR}"/${P}-build.patch
66 "${FILESDIR}"/${P}-FHS.patch
67 + "${FILESDIR}"/${P}-c++17.patch
68 )
69
70 pkg_setup() {