diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-08-29 10:04:55 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-08-29 10:04:55 +0100 |
commit | 20325cfc3bd40d48d3c7034afaac4f5193d9c704 (patch) | |
tree | b8e6ff7fc02271595e20f956b32cef56c41dafca /dev-util/sdl-jstest/files | |
parent | 14a6858a7d8bc085420a1430b3a3f67885019f27 (diff) |
gentoo auto-resync : 29:08:2023 - 10:04:54
Diffstat (limited to 'dev-util/sdl-jstest/files')
-rw-r--r-- | dev-util/sdl-jstest/files/sdl-jstest-0.2.2-appstream-util-nonet.patch | 35 | ||||
-rw-r--r-- | dev-util/sdl-jstest/files/sdl-jstest-0.2.2-sdl1.patch | 42 |
2 files changed, 77 insertions, 0 deletions
diff --git a/dev-util/sdl-jstest/files/sdl-jstest-0.2.2-appstream-util-nonet.patch b/dev-util/sdl-jstest/files/sdl-jstest-0.2.2-appstream-util-nonet.patch new file mode 100644 index 000000000000..bcbb99518597 --- /dev/null +++ b/dev-util/sdl-jstest/files/sdl-jstest-0.2.2-appstream-util-nonet.patch @@ -0,0 +1,35 @@ +https://github.com/Grumbel/sdl-jstest/issues/17 +https://github.com/Grumbel/sdl-jstest/commit/d442ee9e2c4dda1fd43cb3201ea8edf8222ee66c.patch + +From d442ee9e2c4dda1fd43cb3201ea8edf8222ee66c Mon Sep 17 00:00:00 2001 +From: Ingo Ruhnke <grumbel@gmail.com> +Date: Fri, 14 Jul 2023 10:25:11 +0200 +Subject: [PATCH] Disable tests requiring network access + +Fixes #17 +--- + CMakeLists.txt | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index c1e4284..09d3e2e 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -68,7 +68,7 @@ if(BUILD_SDL_JSTEST) + if (BUILD_TESTS) + add_test(NAME sdl-jstest.appdata.xml + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} +- COMMAND appstream-util validate-relax ${CMAKE_CURRENT_BINARY_DIR}/sdl-jstest.appdata.xml) ++ COMMAND appstream-util validate-relax --nonet ${CMAKE_CURRENT_BINARY_DIR}/sdl-jstest.appdata.xml) + endif(BUILD_TESTS) + + file(COPY sdl-jstest.1 +@@ -101,7 +101,7 @@ if(BUILD_SDL2_JSTEST) + if (BUILD_TESTS) + add_test(NAME sdl2-jstest.appdata.xml + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} +- COMMAND appstream-util validate-relax ${CMAKE_CURRENT_BINARY_DIR}/sdl2-jstest.appdata.xml) ++ COMMAND appstream-util validate-relax --nonet ${CMAKE_CURRENT_BINARY_DIR}/sdl2-jstest.appdata.xml) + endif(BUILD_TESTS) + + file(COPY sdl2-jstest.1 diff --git a/dev-util/sdl-jstest/files/sdl-jstest-0.2.2-sdl1.patch b/dev-util/sdl-jstest/files/sdl-jstest-0.2.2-sdl1.patch new file mode 100644 index 000000000000..d90024019e14 --- /dev/null +++ b/dev-util/sdl-jstest/files/sdl-jstest-0.2.2-sdl1.patch @@ -0,0 +1,42 @@ +https://github.com/Grumbel/sdl-jstest/issues/15 +https://github.com/Grumbel/sdl-jstest/commit/62124aa8b9d4c3a8eec5206bf0fc09fade52b326 + +From 62124aa8b9d4c3a8eec5206bf0fc09fade52b326 Mon Sep 17 00:00:00 2001 +From: Ingo Ruhnke <grumbel@gmail.com> +Date: Wed, 12 Jul 2023 17:34:38 +0200 +Subject: [PATCH] Fix initial blank screen in sdl-jstest + +Screen was left blank due to only getting drawn once a new event +arrived. + +Fixes #15 +--- + src/sdl-jstest.c | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/src/sdl-jstest.c b/src/sdl-jstest.c +index 388e84d..bc95024 100644 +--- a/src/sdl-jstest.c ++++ b/src/sdl-jstest.c +@@ -192,11 +192,11 @@ int main(int argc, char** argv) + + int quit = 0; + SDL_Event event; ++ bool something_new = TRUE; + while(!quit) + { + SDL_Delay(10); + +- bool something_new = FALSE; + while (SDL_PollEvent(&event)) { + something_new = TRUE; + switch(event.type) +@@ -302,6 +302,8 @@ int main(int argc, char** argv) + printw("Press Ctrl-c to exit\n"); + + refresh(); ++ ++ something_new = FALSE; + } + + if ( getch() == 3 ) // Ctrl-c |