From cb4499c881c3c47a44ede1c8348d22c185228931 Mon Sep 17 00:00:00 2001 From: Wei Wen Goh Date: Sat, 29 Nov 2025 17:03:20 +0800 Subject: [PATCH 1/3] Fail recipe if patch fails Sets -e on the shell so that when a patch fails, we don't try to compile RetroArch anyway. --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 759b58d779..87a9cb7838 100644 --- a/Makefile +++ b/Makefile @@ -14,6 +14,9 @@ ifeq ($(PLATFORM),linux) ECHO = echo -e endif +SHELL := /bin/bash +.SHELLFLAGS := -eu -o pipefail -c + # Function to print status messages print_status = $(ECHO) "\033[34m--- $1\033[0m" @@ -82,5 +85,5 @@ build: $(BUILD_DIR)/retroarch $(BUILD_DIR)/retroarch_miyoo354 clean: @$(call print_status, Cleaning) - rm -rf $(BUILD_DIR) - rm -rf bin + rm -rf $(BUILD_DIR) || true + rm -rf bin || true From 9cedc4af6fbdbad9bf509eb0c49420a3695254e7 Mon Sep 17 00:00:00 2001 From: Wei Wen Goh Date: Sat, 29 Nov 2025 16:36:02 +0800 Subject: [PATCH 2/3] Update to `v1.21.0` --- patches/00001_initial_commit_by_eggs.patch | 22 ++++++++---- patches/00003_hide_autoload_message.patch | 35 ++++++++++--------- ...oweiwen_add_state_disk_slot_commands.patch | 11 +++--- ...tain_fast-forward_state_when_pausing.patch | 18 +++++----- submodules/RetroArch | 2 +- 5 files changed, 47 insertions(+), 41 deletions(-) diff --git a/patches/00001_initial_commit_by_eggs.patch b/patches/00001_initial_commit_by_eggs.patch index 61f1ab5b50..6460cad719 100644 --- a/patches/00001_initial_commit_by_eggs.patch +++ b/patches/00001_initial_commit_by_eggs.patch @@ -221,23 +221,31 @@ index 543fe5b630..4a0e4ffd78 100644 }; +#endif diff --git a/libretro-common/audio/conversion/float_to_s16.c b/libretro-common/audio/conversion/float_to_s16.c -index 770981d9c1..cbbd0908f7 100644 +index 5f2ab2405a..35f01e7dae 100644 --- a/libretro-common/audio/conversion/float_to_s16.c +++ b/libretro-common/audio/conversion/float_to_s16.c -@@ -32,12 +32,11 @@ +@@ -32,11 +32,10 @@ #include