diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2020-11-07 18:49:48 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2020-11-07 18:50:56 +0000 |
commit | c3186ef8817aa6de849eb0c6fe74fa1ee36667a0 (patch) | |
tree | 4b4d216d0e25a0bc384bf5e62afdd436764481ed /games-misc | |
parent | app-admin/radmind: Apply gcc-10 workaround (diff) | |
download | gentoo-c3186ef8817aa6de849eb0c6fe74fa1ee36667a0.tar.gz gentoo-c3186ef8817aa6de849eb0c6fe74fa1ee36667a0.tar.bz2 gentoo-c3186ef8817aa6de849eb0c6fe74fa1ee36667a0.zip |
games-misc/sdljoytest: tweak for gcc-10
Fix-by: Samuel Bauer
Closes: https://bugs.gentoo.org/706448
Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'games-misc')
-rw-r--r-- | games-misc/sdljoytest/files/sdljoytest-11102003-no-common.patch | 11 | ||||
-rw-r--r-- | games-misc/sdljoytest/sdljoytest-11102003.ebuild | 7 |
2 files changed, 16 insertions, 2 deletions
diff --git a/games-misc/sdljoytest/files/sdljoytest-11102003-no-common.patch b/games-misc/sdljoytest/files/sdljoytest-11102003-no-common.patch new file mode 100644 index 000000000000..6775c2b6655f --- /dev/null +++ b/games-misc/sdljoytest/files/sdljoytest-11102003-no-common.patch @@ -0,0 +1,11 @@ +https://bugs.gentoo.org/706448 +--- a/init_quit.h ++++ b/init_quit.h +@@ -36,7 +36,6 @@ extern int joyXCenter; + extern int videoFlags; + extern int lightCol; + extern int lightRow; +-int hello; + extern GLint textures[2]; + extern GLuint base; + diff --git a/games-misc/sdljoytest/sdljoytest-11102003.ebuild b/games-misc/sdljoytest/sdljoytest-11102003.ebuild index 905eb1487338..335b1b27c354 100644 --- a/games-misc/sdljoytest/sdljoytest-11102003.ebuild +++ b/games-misc/sdljoytest/sdljoytest-11102003.ebuild @@ -1,7 +1,7 @@ -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=5 +EAPI=7 inherit toolchain-funcs DESCRIPTION="SDL app to test joysticks and game controllers" @@ -20,7 +20,10 @@ RDEPEND=${DEPEND} S=${WORKDIR}/SDLJoytest-GL +PATCHES=("${FILESDIR}"/${P}-no-common.patch) + src_prepare() { + default emake clean sed -i -e 's:/usr/local:/usr:' joytest.h || die sed -i -e 's:SDL/::' *.c || die |