From 87d2c32054c6709803fadc356b55df92311dac67 Mon Sep 17 00:00:00 2001 From: koplo199 <85577251+koplo199@users.noreply.github.com> Date: Wed, 27 Sep 2023 10:25:48 +0200 Subject: [PATCH] manifest: Workaround to build gamemode in the new Gnome 45 runtime --- com.usebottles.bottles.yml | 4 ++++ gamemode.patch | 13 +++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 gamemode.patch diff --git a/com.usebottles.bottles.yml b/com.usebottles.bottles.yml index eba4308e6c..da3b6310aa 100644 --- a/com.usebottles.bottles.yml +++ b/com.usebottles.bottles.yml @@ -150,6 +150,10 @@ modules: type: git is-important: true tag-pattern: ^([\d.]+)$ + # https://github.com/FeralInteractive/gamemode/commit/4934191b1928ef695c3e8af21e75781f8591745f + # Build workaround, please remove once gamemode > 1.7 is released! + - type: patch + path: gamemode.patch - name: gamemode-32bit build-options: diff --git a/gamemode.patch b/gamemode.patch new file mode 100644 index 0000000000..82042c1fe6 --- /dev/null +++ b/gamemode.patch @@ -0,0 +1,13 @@ +diff --git a/common/common-pidfds.c b/common/common-pidfds.c +index 00929f70..61442e34 100644 +--- a/common/common-pidfds.c ++++ b/common/common-pidfds.c +@@ -58,6 +58,8 @@ static int pidfd_open(pid_t pid, unsigned int flags) + { + return (int)syscall(__NR_pidfd_open, pid, flags); + } ++#else ++#include + #endif + + /* pidfd functions */