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-rpg/openglad/, games-rpg/openglad/files/
Date: Tue, 04 Jan 2022 08:06:58
Message-Id: 1641283536.a9feb245fd39409c298667d1b14dc2fc6d4019ee.ionen@gentoo
1 commit: a9feb245fd39409c298667d1b14dc2fc6d4019ee
2 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 4 08:05:36 2022 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 4 08:05:36 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a9feb245
7
8 games-rpg/openglad: fix build with clang
9
10 Closes: https://bugs.gentoo.org/830571
11 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
12
13 games-rpg/openglad/files/openglad-0.98_p20200907-clang.patch | 10 ++++++++++
14 games-rpg/openglad/openglad-0.98_p20200907.ebuild | 6 +++++-
15 2 files changed, 15 insertions(+), 1 deletion(-)
16
17 diff --git a/games-rpg/openglad/files/openglad-0.98_p20200907-clang.patch b/games-rpg/openglad/files/openglad-0.98_p20200907-clang.patch
18 new file mode 100644
19 index 000000000000..056521c604fb
20 --- /dev/null
21 +++ b/games-rpg/openglad/files/openglad-0.98_p20200907-clang.patch
22 @@ -0,0 +1,10 @@
23 +Option gets used for C as well leading to gcc warnings and a hard
24 +error with clang. Option isn't actually needed, so just remove it.
25 +
26 +https://bugs.gentoo.org/830571
27 +--- a/premake4.lua
28 ++++ b/premake4.lua
29 +@@ -47,3 +47,2 @@
30 + defines { "PHYSFS_SUPPORTS_ZIP" }
31 +- buildoptions { "-std=gnu++0x" }
32 +
33
34 diff --git a/games-rpg/openglad/openglad-0.98_p20200907.ebuild b/games-rpg/openglad/openglad-0.98_p20200907.ebuild
35 index 33e42ea2dcea..e48eaeb991a6 100644
36 --- a/games-rpg/openglad/openglad-0.98_p20200907.ebuild
37 +++ b/games-rpg/openglad/openglad-0.98_p20200907.ebuild
38 @@ -1,4 +1,4 @@
39 -# Copyright 1999-2021 Gentoo Authors
40 +# Copyright 1999-2022 Gentoo Authors
41 # Distributed under the terms of the GNU General Public License v2
42
43 EAPI=8
44 @@ -29,6 +29,10 @@ BDEPEND="
45 dev-util/premake:5
46 virtual/pkgconfig"
47
48 +PATCHES=(
49 + "${FILESDIR}"/${P}-clang.patch
50 +)
51 +
52 src_prepare() {
53 default