blob: b8bedaeb84801731dc42f9adcae406cf9d334ed6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
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()
|