Skip to content

Commit

Permalink
games-arcade/yarsrevenge: fix configure w/ clang 16
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/879689
Signed-off-by: Sam James <[email protected]>
  • Loading branch information
thesamesam committed Jan 5, 2023
1 parent 7649c0f commit 5e75515
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
autoreconf fails and it's a trivial fix to the generated configure, so let's
just patch that instead. This is fixed in autoconf itself in newer versions.

https://bugs.gentoo.org/879689
--- a/configure
+++ b/configure
@@ -6289,6 +6289,7 @@ cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <ctype.h>
+#include <stdlib.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Copyright 1999-2018 Gentoo Foundation
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=6
EAPI=8

inherit desktop

DESCRIPTION="Remake of the Atari 2600 classic Yar's Revenge"
Expand All @@ -11,7 +12,6 @@ SRC_URI="http://www.autismuk.freeserve.co.uk/yar-${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND="media-libs/libsdl[sound,joystick,video]"
RDEPEND="${DEPEND}"
Expand All @@ -22,6 +22,7 @@ PATCHES=(
"${FILESDIR}"/${PV}-math.patch
"${FILESDIR}"/${P}-gcc43.patch
"${FILESDIR}"/${P}-gcc44.patch
"${FILESDIR}"/${P}-configure-clang16.patch
)

src_install() {
Expand Down

0 comments on commit 5e75515

Please sign in to comment.