summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-03-19 23:01:21 +0000
committerSam James <sam@gentoo.org>2022-03-19 23:33:25 +0000
commit3f82cc0ac916f80dfe2f7d712edea753a682e422 (patch)
tree4c6595d4ec9628428b93a8832aae03d7e6fa2374 /games-puzzle
parentgames-puzzle/construo: [QA] fix tc-get* quoting (diff)
downloadgentoo-3f82cc0ac916f80dfe2f7d712edea753a682e422.tar.gz
gentoo-3f82cc0ac916f80dfe2f7d712edea753a682e422.tar.bz2
gentoo-3f82cc0ac916f80dfe2f7d712edea753a682e422.zip
games-puzzle/xtris: [QA] fix tc-get* quoting
This can cause build problems for e.g. 32-bit (gcc -m32 ...) Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'games-puzzle')
-rw-r--r--games-puzzle/xtris/files/xtris-1.15-implicit-function-decl-time.patch23
-rw-r--r--games-puzzle/xtris/xtris-1.15-r1.ebuild10
2 files changed, 30 insertions, 3 deletions
diff --git a/games-puzzle/xtris/files/xtris-1.15-implicit-function-decl-time.patch b/games-puzzle/xtris/files/xtris-1.15-implicit-function-decl-time.patch
new file mode 100644
index 000000000000..bd1d694235ca
--- /dev/null
+++ b/games-puzzle/xtris/files/xtris-1.15-implicit-function-decl-time.patch
@@ -0,0 +1,23 @@
+Fixes:
+xtbot.c:211:23: warning: implicit declaration of function ‘time’; did you mean ‘utimes’? [-Wimplicit-function-declaration]
+xtserv.c:386:23: warning: implicit declaration of function ‘time’; did you mean ‘utimes’? [-Wimplicit-function-declaration]
+--- a/xtbot.c
++++ b/xtbot.c
+@@ -23,6 +23,7 @@
+ #include <stdlib.h>
+ #include <unistd.h>
+ #include <string.h>
++#include <time.h>
+ #include <sys/types.h>
+ #include <sys/time.h>
+ #include <sys/socket.h>
+--- a/xtserv.c
++++ b/xtserv.c
+@@ -15,6 +15,7 @@
+ #include <stdlib.h>
+ #include <unistd.h>
+ #include <fcntl.h>
++#include <time.h>
+ #include <sys/types.h>
+ #include <sys/time.h>
+ #include <signal.h>
diff --git a/games-puzzle/xtris/xtris-1.15-r1.ebuild b/games-puzzle/xtris/xtris-1.15-r1.ebuild
index 93ef346fe67e..b41708fe9214 100644
--- a/games-puzzle/xtris/xtris-1.15-r1.ebuild
+++ b/games-puzzle/xtris/xtris-1.15-r1.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
inherit desktop toolchain-funcs
@@ -17,9 +17,13 @@ KEYWORDS="~amd64 ~x86"
DEPEND="x11-libs/libX11"
RDEPEND="${DEPEND}"
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.15-implicit-function-decl-time.patch
+)
+
src_compile() {
emake \
- CC=$(tc-getCC) \
+ CC="$(tc-getCC)" \
BINDIR=/usr/bin \
MANDIR=/usr/share/man \
CFLAGS="${CFLAGS}" \