commit: fd2a72e2b447db3b0a3554f7b3918e7f63a9bedc Author: Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr> AuthorDate: Thu Feb 4 19:51:39 2021 +0000 Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org> CommitDate: Tue Feb 9 16:59:22 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd2a72e2
games-fps/quake2-icculus: Fix build with gcc-10 Closes: https://bugs.gentoo.org/733962 Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr> Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org> .../files/quake2-icculus-0.16.1-fno-common.patch | 10 ++++++++++ games-fps/quake2-icculus/quake2-icculus-0.16.1-r1.ebuild | 3 ++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/games-fps/quake2-icculus/files/quake2-icculus-0.16.1-fno-common.patch b/games-fps/quake2-icculus/files/quake2-icculus-0.16.1-fno-common.patch new file mode 100644 index 00000000000..8392ec63b78 --- /dev/null +++ b/games-fps/quake2-icculus/files/quake2-icculus-0.16.1-fno-common.patch @@ -0,0 +1,10 @@ +--- a/src/client/client.h ++++ b/src/client/client.h +@@ -49,7 +49,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + #ifdef QMAX + #define random() ((rand () & 0x7fff) / ((float)0x7fff)) + #define crandom() (2.0 * (random() - 0.5)) +-vec3_t clientOrg; //lerped org of client for server->client side effects + + void vectoangles2 (vec3_t value1, vec3_t angles); + diff --git a/games-fps/quake2-icculus/quake2-icculus-0.16.1-r1.ebuild b/games-fps/quake2-icculus/quake2-icculus-0.16.1-r1.ebuild index 13756e436dc..5a5e6b99431 100644 --- a/games-fps/quake2-icculus/quake2-icculus-0.16.1-r1.ebuild +++ b/games-fps/quake2-icculus/quake2-icculus-0.16.1-r1.ebuild @@ -70,7 +70,8 @@ src_prepare() { "${FILESDIR}"/${P}-x11_soft.patch \ "${FILESDIR}"/${P}-x11_mouse.patch \ "${FILESDIR}"/${P}-alsa.patch \ - "${FILESDIR}"/${P}-ia64.patch + "${FILESDIR}"/${P}-ia64.patch \ + "${FILESDIR}"/${P}-fno-common.patch if use xatrix ; then epatch "${FILESDIR}/${P}"-gcc41.patch
