From 393e8eac5b45c5a1dc455ffe0e19e7651ad508a3 Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Sat, 9 May 2026 01:36:17 +0100 Subject: [PATCH] sdl2: update to 2.32.10 This is a stable bugfix release, with the following changes: * Fixed the dock occasionally showing on macOS when launching an SDL app * Report the correct device audio format when using Pipewire * Fixed signed 8-bit audio on Android * Support the "ambient" value for SDL_HINT_AUDIO_CATEGORY on iOS * Improved thumbstick range for Nintendo Switch Pro Controllers * Fixed loading user calibration for Nintendo Switch Pro Controllers Patch 110-tests-no-libunwind.patch refreshed for the new upstream context. Add patch 120-tests-install-resources-to-datadir.patch which moves the test resource files (.bmp, .hex, .txt, .dat, .wav) from ${libexecdir}/installed-tests/SDL2/ to ${datadir}/installed-tests/SDL2/, alongside the matching ${exe}.test descriptors. Upstream's install rule put them in libexecdir, which is both inconsistent with the GNOME installed-tests convention (data lives under datadir, only binaries under libexecdir) and trips OpenWrt's package QA which expects every regular file under /usr/libexec/ to carry the executable bit. The patch also pins the install permissions to 0644 so the umask of the build host cannot influence the mode of the installed files. Signed-off-by: Daniel Golle --- libs/sdl2/Makefile | 6 +++-- .../sdl2/patches/110-tests-no-libunwind.patch | 2 +- ...0-tests-install-resources-to-datadir.patch | 24 +++++++++++++++++++ 3 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 libs/sdl2/patches/120-tests-install-resources-to-datadir.patch diff --git a/libs/sdl2/Makefile b/libs/sdl2/Makefile index 30d8b04..6f3e699 100644 --- a/libs/sdl2/Makefile +++ b/libs/sdl2/Makefile @@ -1,12 +1,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=sdl2 -PKG_VERSION:=2.32.8 +PKG_VERSION:=2.32.10 PKG_RELEASE:=1 PKG_SOURCE:=SDL2-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://www.libsdl.org/release/ -PKG_HASH:=0ca83e9c9b31e18288c7ec811108e58bac1f1bb5ec6577ad386830eac51c787e +PKG_HASH:=5f5993c530f084535c65a6879e9b26ad441169b3e25d789d83287040a9ca5165 PKG_BUILD_DIR:=$(BUILD_DIR)/SDL2-$(PKG_VERSION) @@ -149,6 +149,8 @@ endef define Package/libsdl2-tests/install $(INSTALL_DIR) $(1)/usr/libexec/installed-tests $(CP) $(PKG_INSTALL_DIR)/usr/libexec/installed-tests/* $(1)/usr/libexec/installed-tests + $(INSTALL_DIR) $(1)/usr/share/installed-tests + $(CP) $(PKG_INSTALL_DIR)/usr/share/installed-tests/* $(1)/usr/share/installed-tests endef $(eval $(call BuildPackage,libsdl2)) diff --git a/libs/sdl2/patches/110-tests-no-libunwind.patch b/libs/sdl2/patches/110-tests-no-libunwind.patch index 3de3e5a..0d39562 100644 --- a/libs/sdl2/patches/110-tests-no-libunwind.patch +++ b/libs/sdl2/patches/110-tests-no-libunwind.patch @@ -1,6 +1,6 @@ --- a/CMakeLists.txt +++ b/CMakeLists.txt -@@ -1632,7 +1632,6 @@ elseif(UNIX AND NOT APPLE AND NOT RISCOS +@@ -1642,7 +1642,6 @@ elseif(UNIX AND NOT APPLE AND NOT RISCOS endif() endif() diff --git a/libs/sdl2/patches/120-tests-install-resources-to-datadir.patch b/libs/sdl2/patches/120-tests-install-resources-to-datadir.patch new file mode 100644 index 0000000..b8bedae --- /dev/null +++ b/libs/sdl2/patches/120-tests-install-resources-to-datadir.patch @@ -0,0 +1,24 @@ +From: Daniel Golle +Subject: tests: install resource files to datadir, not libexecdir + +The .bmp / .hex / .txt / .dat / .wav files shipped alongside the test +binaries are not executables; they are read-only data. Installing them +under ${libexecdir}/installed-tests/SDL2/ is both inconsistent with the +GNOME installed-tests convention (data lives under ${datadir}, only +binaries under ${libexecdir}) and trips OpenWrt's package QA which +expects every regular file in /usr/libexec/ to carry the executable +bit. Move them to ${datadir}/installed-tests/SDL2/ alongside the +matching ${exe}.test descriptors, and pin the permissions to 0644 so +the umask of the build host cannot influence the installed mode. + +--- a/test/CMakeLists.txt ++++ b/test/CMakeLists.txt +@@ -531,6 +531,7 @@ if(SDL_INSTALL_TESTS) + endif() + install( + FILES ${RESOURCE_FILES} +- DESTINATION ${CMAKE_INSTALL_LIBEXECDIR}/installed-tests/SDL2 ++ PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ ++ DESTINATION ${CMAKE_INSTALL_DATADIR}/installed-tests/SDL2 + ) + endif()