chore: Add fix for missing limits.h in gamescope

chore: Add control + 1/2 fix to legacy gamescope
This commit is contained in:
Kyle Gospodnetich 2024-07-21 01:14:59 -07:00
parent 9cb993f018
commit 9cd3df1962
3 changed files with 35 additions and 10 deletions

View File

@ -0,0 +1,21 @@
From 88ce1e5de62886aa14c74421cde6130e16e70d7d Mon Sep 17 00:00:00 2001
From: psykose <alice@ayaya.dev>
Date: Sat, 6 Jul 2024 20:52:50 +0200
Subject: [PATCH] utils: include limits.h for PATH_MAX
---
src/Utils/Process.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/Utils/Process.cpp b/src/Utils/Process.cpp
index e71786f75..3e748e0d3 100644
--- a/src/Utils/Process.cpp
+++ b/src/Utils/Process.cpp
@@ -21,6 +21,7 @@
#include <pthread.h>
#include <stdlib.h>
#include <dirent.h>
+#include <limits.h>
#include <unistd.h>
#include <sys/types.h>
#include <signal.h>

View File

@ -4,7 +4,7 @@
Name: gamescope-legacy
Version: 3.14.2
Release: %autorelease
Release: 2.bazzite
Summary: Legacy builds of gamescope, a micro-compositor for video games on Wayland
License: BSD
@ -14,7 +14,10 @@ Source0: %{url}/archive/%{version}/gamescope-%{version}.tar.gz
Source1: stb.pc
Source2: https://github.com/Joshua-Ashton/reshade/archive/%{reshade_commit}/reshade-%{reshade_shortcommit}.tar.gz
Patch01: 0001-cstdint.patch
Patch0: 0001-cstdint.patch
# https://hhd.dev/
Patch1: v2-0001-always-send-ctrl-1-2-to-steam-s-wayland-session.patch
BuildRequires: meson >= 0.54.0
BuildRequires: ninja-build

View File

@ -6,7 +6,7 @@
Name: gamescope
Version: 100.%{gamescope_tag}
Release: 17.bazzite
Release: 18.bazzite
Summary: Micro-compositor for video games on Wayland
License: BSD
@ -16,20 +16,21 @@ URL: https://github.com/ValveSoftware/gamescope
Source0: stb.pc
Patch0: 0001-cstdint.patch
Patch1: 0002-limits.patch
# https://github.com/ChimeraOS/gamescope
Patch1: chimeraos.patch
Patch2: chimeraos.patch
# https://hhd.dev/
Patch2: disable-steam-touch-click-atom.patch
Patch3: v2-0001-always-send-ctrl-1-2-to-steam-s-wayland-session.patch
Patch3: disable-steam-touch-click-atom.patch
Patch4: v2-0001-always-send-ctrl-1-2-to-steam-s-wayland-session.patch
# https://github.com/ValveSoftware/gamescope/pull/1281
Patch4: deckhd.patch
Patch5: deckhd.patch
# https://github.com/ValveSoftware/gamescope/issues/1398
Patch5: drm-Separate-BOE-and-SDC-OLED-Deck-panel-rates.patch
Patch6: drm-Separate-BOE-and-SDC-OLED-Deck-panel-rates.patch
# https://github.com/ValveSoftware/gamescope/issues/1369
Patch6: revert-299bc34.patch
Patch7: revert-299bc34.patch
# https://github.com/ValveSoftware/gamescope/pull/1231
Patch7: 1231.patch
Patch8: 1231.patch
BuildRequires: meson >= 0.54.0
BuildRequires: ninja-build