Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-util/gamemode/files/, games-util/gamemode/
Date: Tue, 23 Aug 2022 23:09:36
Message-Id: 1661296065.afb4327c2bc182f062aea233c9f20f9ddc0f27c2.sam@gentoo
1 commit: afb4327c2bc182f062aea233c9f20f9ddc0f27c2
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 23 23:07:45 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 23 23:07:45 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=afb4327c
7
8 games-util/gamemode: fix build w/ glibc 2.36
9
10 Closes: https://bugs.gentoo.org/863995
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 .../gamemode/files/gamemode-1.7-glibc-2.36.patch | 20 ++++++++++++++++++++
14 games-util/gamemode/gamemode-1.7.ebuild | 1 +
15 2 files changed, 21 insertions(+)
16
17 diff --git a/games-util/gamemode/files/gamemode-1.7-glibc-2.36.patch b/games-util/gamemode/files/gamemode-1.7-glibc-2.36.patch
18 new file mode 100644
19 index 000000000000..bb305afd5a35
20 --- /dev/null
21 +++ b/games-util/gamemode/files/gamemode-1.7-glibc-2.36.patch
22 @@ -0,0 +1,20 @@
23 +https://github.com/FeralInteractive/gamemode/commit/4934191b1928ef695c3e8af21e75781f8591745f
24 +https://bugs.gentoo.org/863995
25 +
26 +From: =?UTF-8?q?Nyikos=20Zolt=C3=A1n?= <nyikoszoltan0@×××××.com>
27 +Date: Wed, 10 Aug 2022 19:56:59 +0200
28 +Subject: [PATCH] Fix building when pidfd_open is available
29 +
30 +On glibc2.36 pidfd_open was made available, but it needs an include
31 +--- a/common/common-pidfds.c
32 ++++ b/common/common-pidfds.c
33 +@@ -58,6 +58,8 @@ static int pidfd_open(pid_t pid, unsigned int flags)
34 + {
35 + return (int)syscall(__NR_pidfd_open, pid, flags);
36 + }
37 ++#else
38 ++#include <sys/pidfd.h>
39 + #endif
40 +
41 + /* pidfd functions */
42 +
43
44 diff --git a/games-util/gamemode/gamemode-1.7.ebuild b/games-util/gamemode/gamemode-1.7.ebuild
45 index 8e94f8d83a95..028fd6b39402 100644
46 --- a/games-util/gamemode/gamemode-1.7.ebuild
47 +++ b/games-util/gamemode/gamemode-1.7.ebuild
48 @@ -37,6 +37,7 @@ DEPEND="${RDEPEND}"
49
50 PATCHES=(
51 "${FILESDIR}"/${PN}-1.7-static-libs.patch
52 + "${FILESDIR}"/${P}-glibc-2.36.patch
53 )
54
55 DOCS=(