From 9cd3df1962a988d0491c46c2d7c79b519aa904e1 Mon Sep 17 00:00:00 2001 From: Kyle Gospodnetich Date: Sun, 21 Jul 2024 01:14:59 -0700 Subject: [PATCH] chore: Add fix for missing limits.h in gamescope chore: Add control + 1/2 fix to legacy gamescope --- spec_files/gamescope/0002-limits.patch | 21 +++++++++++++++++++++ spec_files/gamescope/gamescope-legacy.spec | 7 +++++-- spec_files/gamescope/gamescope.spec | 17 +++++++++-------- 3 files changed, 35 insertions(+), 10 deletions(-) create mode 100644 spec_files/gamescope/0002-limits.patch diff --git a/spec_files/gamescope/0002-limits.patch b/spec_files/gamescope/0002-limits.patch new file mode 100644 index 00000000..7d5acde9 --- /dev/null +++ b/spec_files/gamescope/0002-limits.patch @@ -0,0 +1,21 @@ +From 88ce1e5de62886aa14c74421cde6130e16e70d7d Mon Sep 17 00:00:00 2001 +From: psykose +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 + #include + #include ++#include + #include + #include + #include diff --git a/spec_files/gamescope/gamescope-legacy.spec b/spec_files/gamescope/gamescope-legacy.spec index 6dfb1b8b..eebc68a2 100644 --- a/spec_files/gamescope/gamescope-legacy.spec +++ b/spec_files/gamescope/gamescope-legacy.spec @@ -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 diff --git a/spec_files/gamescope/gamescope.spec b/spec_files/gamescope/gamescope.spec index effd7aef..aa8646d8 100644 --- a/spec_files/gamescope/gamescope.spec +++ b/spec_files/gamescope/gamescope.spec @@ -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