From a9feb245fd39409c298667d1b14dc2fc6d4019ee Mon Sep 17 00:00:00 2001 From: Ionen Wolkens Date: Tue, 4 Jan 2022 03:05:36 -0500 Subject: [PATCH] games-rpg/openglad: fix build with clang Closes: https://bugs.gentoo.org/830571 Signed-off-by: Ionen Wolkens --- .../openglad/files/openglad-0.98_p20200907-clang.patch | 10 ++++++++++ games-rpg/openglad/openglad-0.98_p20200907.ebuild | 6 +++++- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 games-rpg/openglad/files/openglad-0.98_p20200907-clang.patch diff --git a/games-rpg/openglad/files/openglad-0.98_p20200907-clang.patch b/games-rpg/openglad/files/openglad-0.98_p20200907-clang.patch new file mode 100644 index 0000000000000..056521c604fba --- /dev/null +++ b/games-rpg/openglad/files/openglad-0.98_p20200907-clang.patch @@ -0,0 +1,10 @@ +Option gets used for C as well leading to gcc warnings and a hard +error with clang. Option isn't actually needed, so just remove it. + +https://bugs.gentoo.org/830571 +--- a/premake4.lua ++++ b/premake4.lua +@@ -47,3 +47,2 @@ + defines { "PHYSFS_SUPPORTS_ZIP" } +- buildoptions { "-std=gnu++0x" } + diff --git a/games-rpg/openglad/openglad-0.98_p20200907.ebuild b/games-rpg/openglad/openglad-0.98_p20200907.ebuild index 33e42ea2dcea5..e48eaeb991a69 100644 --- a/games-rpg/openglad/openglad-0.98_p20200907.ebuild +++ b/games-rpg/openglad/openglad-0.98_p20200907.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -29,6 +29,10 @@ BDEPEND=" dev-util/premake:5 virtual/pkgconfig" +PATCHES=( + "${FILESDIR}"/${P}-clang.patch +) + src_prepare() { default