Files
video/libs/sdl2/patches/120-tests-install-resources-to-datadir.patch
T
Daniel Golle 393e8eac5b 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 <daniel@makrotopia.org>
2026-05-20 00:28:53 +01:00

25 lines
1.1 KiB
Diff

From: Daniel Golle <daniel@makrotopia.org>
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()