gamemode icon indicating copy to clipboard operation
gamemode copied to clipboard

gamemode build bug

Open hypeitnow opened this issue 3 years ago • 1 comments

Describe the bug During build with yay I get following error message: ~/.cache/yay/gamemode-git/src/gamemode ~/.cache/yay/gamemode-git/src patching file common/common-pidfds.c Hunk #2 FAILED at 55. 1 out of 2 hunks FAILED -- saving rejects to file common/common-pidfds.c.rej ==> ERROR: A failure occurred in build(). Aborting... checking dependencies...

To Reproduce Steps used to reproduce the behavior:

  1. yay -S gamemode-git --rebuild --redownload --cleanafter

Expected behavior successful build System Info (please complete the following information): Linux hypeit-pc 5.18.16-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 03 Aug 2022 11:25:04 +0000 x86_64 GNU/Linux

Additional context cat ~/.cache/yay/gamemode-git/src/gamemode/common/common-pidfds.c.rej

--- common/common-pidfds.c +++ common/common-pidfds.c @@ -55,7 +52,6 @@ static int pidfd_open(pid_t pid, unsigned int flags) { return (int)syscall(__NR_pidfd_open, pid, flags); } -#endif

/* pidfd functions */ int open_pidfds(pid_t *pids, int *fds, int count)

Maybe there is a problem with the remainig conditionals?

image

hypeitnow avatar Aug 13 '22 05:08 hypeitnow

This is a packaging issue in the AUR package. Fixed here: https://aur.archlinux.org/cgit/aur.git/commit/?h=gamemode-git&id=1d604ed407a9b9439a1cb02c07bad0e6174622e0

stephanlachnit avatar Aug 31 '22 09:08 stephanlachnit