commit:     a9feb245fd39409c298667d1b14dc2fc6d4019ee
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Tue Jan  4 08:05:36 2022 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Tue Jan  4 08:05:36 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a9feb245

games-rpg/openglad: fix build with clang

Closes: https://bugs.gentoo.org/830571
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 games-rpg/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(-)

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 000000000000..056521c604fb
--- /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 33e42ea2dcea..e48eaeb991a6 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
 

Reply via email to