summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmanuele Torre <torreemanuele6@gmail.com>2024-08-13 07:48:40 +0200
committerJames Le Cuirot <chewi@gentoo.org>2024-08-15 23:24:54 +0100
commit13fa47aa045933657ee7584c7ec7ba8287f07406 (patch)
treea1cf33b13705dd6c2d58b7fdfb82f3b77c60e26c /games-misc
parentmedia-libs/libopenmpt: Drop old 0.7.6 (diff)
downloadgentoo-13fa47aa045933657ee7584c7ec7ba8287f07406.tar.gz
gentoo-13fa47aa045933657ee7584c7ec7ba8287f07406.tar.bz2
gentoo-13fa47aa045933657ee7584c7ec7ba8287f07406.zip
games-misc/bsd-games: fix bsd-games-2.17_p28-r2 build
hunt/hunt/otto.c uses the sigpause() function that is only declared if _GNU_SOURCE is defined in modern glibc. Signed-off-by: Emanuele Torre <torreemanuele6@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/38127 Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'games-misc')
-rw-r--r--games-misc/bsd-games/bsd-games-2.17_p28-r2.ebuild1
-rw-r--r--games-misc/bsd-games/files/bsd-games-2.17-sigpause-gnusource.patch14
2 files changed, 15 insertions, 0 deletions
diff --git a/games-misc/bsd-games/bsd-games-2.17_p28-r2.ebuild b/games-misc/bsd-games/bsd-games-2.17_p28-r2.ebuild
index 2f10eb15ba5a..9ab03508e2bd 100644
--- a/games-misc/bsd-games/bsd-games-2.17_p28-r2.ebuild
+++ b/games-misc/bsd-games/bsd-games-2.17_p28-r2.ebuild
@@ -52,6 +52,7 @@ src_prepare() {
eapply "${FILESDIR}"/${PN}-2.17-bg.patch
eapply "${FILESDIR}"/${PN}-2.17-gcc4.patch
eapply "${FILESDIR}"/${PN}-2.17-rename-getdate-clash.patch
+ eapply "${FILESDIR}"/${PN}-2.17-sigpause-gnusource.patch
default
diff --git a/games-misc/bsd-games/files/bsd-games-2.17-sigpause-gnusource.patch b/games-misc/bsd-games/files/bsd-games-2.17-sigpause-gnusource.patch
new file mode 100644
index 000000000000..37f98d194c6c
--- /dev/null
+++ b/games-misc/bsd-games/files/bsd-games-2.17-sigpause-gnusource.patch
@@ -0,0 +1,14 @@
+sigpause(3) is only declared if _GNU_SOURCE is defined.
+
+--- a/hunt/hunt/otto.c
++++ b/hunt/hunt/otto.c
+@@ -43,6 +43,8 @@
+ * Id: otto.c,v 1.14 2003/04/16 06:11:54 gregc Exp
+ */
+
++#define _GNU_SOURCE /* for sigpause(3) */
++
+ #include <sys/cdefs.h>
+ #ifndef lint
+ __RCSID("$NetBSD: otto.c,v 1.8 2004/11/05 21:30:32 dsl Exp $");
+