From 83a92e24d766186470713e37c91e1fd389950737274c0bf2f5bc25828ccabf01 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Fri, 23 Aug 2019 12:38:19 +0000 Subject: [PATCH 1/3] - Turn off LTO, it is broken. [boo#1142267] OBS-URL: https://build.opensuse.org/package/show/games/gzdoom?expand=0&rev=26 --- gzdoom.changes | 5 +++++ gzdoom.spec | 1 + 2 files changed, 6 insertions(+) diff --git a/gzdoom.changes b/gzdoom.changes index 342672e..dae9399 100644 --- a/gzdoom.changes +++ b/gzdoom.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Aug 23 12:28:14 UTC 2019 - Jan Engelhardt + +- Turn off LTO, it is broken. [boo#1142267] + ------------------------------------------------------------------- Sun Jun 9 11:31:24 UTC 2019 - Martin Hauke diff --git a/gzdoom.spec b/gzdoom.spec index 1d02fcd..657089d 100644 --- a/gzdoom.spec +++ b/gzdoom.spec @@ -98,6 +98,7 @@ perl -i -pe 's{}{%version}g' \ tools/updaterevision/updaterevision.c %build +%define _lto_cflags %nil # We must not strip - %%debug_package will take care of it # Deactivate -Wl,--as-needed %cmake -DNO_STRIP=1 \ From 36768d6f86b05f7e4c08cdb11b675413f1b55c486481380b50e1d6c816ec90b2 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Fri, 23 Aug 2019 13:14:20 +0000 Subject: [PATCH 2/3] - Update to new upstream release 4.2.0 OBS-URL: https://build.opensuse.org/package/show/games/gzdoom?expand=0&rev=27 --- _service | 15 --------------- g4.1.3.tar.gz | 3 --- g4.2.0.tar.gz | 3 +++ gzdoom-lzma.patch | 34 +++++++++++++++++----------------- gzdoom-vulkan.patch | 38 +++++++++++++++++++------------------- gzdoom-wadsrc-extra.patch | 22 ---------------------- gzdoom.changes | 18 ++++++++++++++++++ gzdoom.spec | 9 ++++----- 8 files changed, 61 insertions(+), 81 deletions(-) delete mode 100644 _service delete mode 100644 g4.1.3.tar.gz create mode 100644 g4.2.0.tar.gz delete mode 100644 gzdoom-wadsrc-extra.patch diff --git a/_service b/_service deleted file mode 100644 index 12cd5fc..0000000 --- a/_service +++ /dev/null @@ -1,15 +0,0 @@ - - - git - git://github.com/coelckers/gzdoom - g4.0.0 - 4.0.0 - - wadsrc_extra - - - *.tar - xz - - - diff --git a/g4.1.3.tar.gz b/g4.1.3.tar.gz deleted file mode 100644 index 3b84d34..0000000 --- a/g4.1.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5174c73e553d8ebbb5939255a6bdc56aecd4ff862ed20e544f271d59290a2d2b -size 13084313 diff --git a/g4.2.0.tar.gz b/g4.2.0.tar.gz new file mode 100644 index 0000000..37277bc --- /dev/null +++ b/g4.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9d781e868f32ad53aa262691f76cab09b12661ababd2b7f5735fe852ab74d566 +size 13482879 diff --git a/gzdoom-lzma.patch b/gzdoom-lzma.patch index 51310c5..acdb95f 100644 --- a/gzdoom-lzma.patch +++ b/gzdoom-lzma.patch @@ -9,10 +9,10 @@ Use LZMA system libraries instead of bundled code. tools/zipdir/CMakeLists.txt | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) -Index: gzdoom-4.0.0/CMakeLists.txt +Index: gzdoom-g4.2.0/CMakeLists.txt =================================================================== ---- gzdoom-4.0.0.orig/CMakeLists.txt -+++ gzdoom-4.0.0/CMakeLists.txt +--- gzdoom-g4.2.0.orig/CMakeLists.txt ++++ gzdoom-g4.2.0/CMakeLists.txt @@ -12,6 +12,7 @@ endif() list( APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake ) @@ -21,28 +21,28 @@ Index: gzdoom-4.0.0/CMakeLists.txt # Support cross compiling option( FORCE_CROSSCOMPILE "Turn on cross compiling." NO ) -@@ -355,7 +356,7 @@ else() +@@ -382,7 +383,7 @@ else() set( GME_LIBRARIES gme ) endif() --set( LZMA_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/lzma/C" ) +-set( LZMA_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/libraries/lzma/C" ) +pkg_check_modules(LZMA REQUIRED clzma) if( NOT CMAKE_CROSSCOMPILING ) if( NOT CROSS_EXPORTS ) -@@ -373,7 +374,6 @@ install(DIRECTORY docs/ +@@ -400,7 +401,6 @@ install(DIRECTORY docs/ DESTINATION ${INSTALL_DOCS_PATH} COMPONENT "Documentation") --add_subdirectory( lzma ) +-add_subdirectory( libraries/lzma ) add_subdirectory( tools ) - add_subdirectory( dumb ) - add_subdirectory( gdtoa ) -Index: gzdoom-4.0.0/src/CMakeLists.txt + add_subdirectory( libraries/dumb ) + add_subdirectory( libraries/gdtoa ) +Index: gzdoom-g4.2.0/src/CMakeLists.txt =================================================================== ---- gzdoom-4.0.0.orig/src/CMakeLists.txt -+++ gzdoom-4.0.0/src/CMakeLists.txt -@@ -467,7 +467,7 @@ set( ZDOOM_LIBS ${ZDOOM_LIBS} "${ZLIB_LI +--- gzdoom-g4.2.0.orig/src/CMakeLists.txt ++++ gzdoom-g4.2.0/src/CMakeLists.txt +@@ -468,7 +468,7 @@ set( ZDOOM_LIBS ${ZDOOM_LIBS} "${ZLIB_LI if (HAVE_VULKAN) set( ZDOOM_LIBS ${ZDOOM_LIBS} "glslang" "SPIRV" "OGLCompiler") endif() @@ -51,7 +51,7 @@ Index: gzdoom-4.0.0/src/CMakeLists.txt if( ${HAVE_VM_JIT} ) add_definitions( -DHAVE_VM_JIT ) -@@ -1370,7 +1370,7 @@ if( UNIX ) +@@ -1379,7 +1379,7 @@ if( UNIX ) endif() endif() @@ -60,10 +60,10 @@ Index: gzdoom-4.0.0/src/CMakeLists.txt include_directories( . g_statusbar -Index: gzdoom-4.0.0/tools/zipdir/CMakeLists.txt +Index: gzdoom-g4.2.0/tools/zipdir/CMakeLists.txt =================================================================== ---- gzdoom-4.0.0.orig/tools/zipdir/CMakeLists.txt -+++ gzdoom-4.0.0/tools/zipdir/CMakeLists.txt +--- gzdoom-g4.2.0.orig/tools/zipdir/CMakeLists.txt ++++ gzdoom-g4.2.0/tools/zipdir/CMakeLists.txt @@ -1,9 +1,9 @@ cmake_minimum_required( VERSION 2.8.7 ) diff --git a/gzdoom-vulkan.patch b/gzdoom-vulkan.patch index 343e3de..b35810a 100644 --- a/gzdoom-vulkan.patch +++ b/gzdoom-vulkan.patch @@ -7,28 +7,28 @@ Use Vulkan system libraries instead of bundled code. CMakeLists.txt | 3 --- src/CMakeLists.txt | 2 +- src/rendering/vulkan/shaders/vk_shader.cpp | 2 +- - src/rendering/vulkan/system/vk_builders.cpp | 22 +++++++++++----------- - 4 files changed, 13 insertions(+), 16 deletions(-) + src/rendering/vulkan/system/vk_builders.cpp | 4 ++-- + 4 files changed, 4 insertions(+), 7 deletions(-) -Index: gzdoom-4.0.0/CMakeLists.txt +Index: gzdoom-g4.2.0/CMakeLists.txt =================================================================== ---- gzdoom-4.0.0.orig/CMakeLists.txt -+++ gzdoom-4.0.0/CMakeLists.txt -@@ -287,9 +287,6 @@ option(FORCE_INTERNAL_ASMJIT "Use intern +--- gzdoom-g4.2.0.orig/CMakeLists.txt ++++ gzdoom-g4.2.0/CMakeLists.txt +@@ -301,9 +301,6 @@ option(FORCE_INTERNAL_ASMJIT "Use intern mark_as_advanced( FORCE_INTERNAL_ASMJIT ) if (HAVE_VULKAN) -- add_subdirectory( glslang/glslang) -- add_subdirectory( glslang/spirv ) -- add_subdirectory( glslang/OGLCompilersDLL ) +- add_subdirectory( libraries/glslang/glslang) +- add_subdirectory( libraries/glslang/spirv ) +- add_subdirectory( libraries/glslang/OGLCompilersDLL ) endif() # Fast math flags, required by some subprojects -Index: gzdoom-4.0.0/src/CMakeLists.txt +Index: gzdoom-g4.2.0/src/CMakeLists.txt =================================================================== ---- gzdoom-4.0.0.orig/src/CMakeLists.txt -+++ gzdoom-4.0.0/src/CMakeLists.txt -@@ -465,7 +465,7 @@ add_custom_target( revision_check ALL +--- gzdoom-g4.2.0.orig/src/CMakeLists.txt ++++ gzdoom-g4.2.0/src/CMakeLists.txt +@@ -466,7 +466,7 @@ add_custom_target( revision_check ALL message( STATUS "Fluid synth libs: ${FLUIDSYNTH_LIBRARIES}" ) set( ZDOOM_LIBS ${ZDOOM_LIBS} "${ZLIB_LIBRARIES}" "${JPEG_LIBRARIES}" "${BZIP2_LIBRARIES}" "${GME_LIBRARIES}" "${CMAKE_DL_LIBS}" ) if (HAVE_VULKAN) @@ -37,10 +37,10 @@ Index: gzdoom-4.0.0/src/CMakeLists.txt endif() include_directories( "${ZLIB_INCLUDE_DIR}" "${BZIP2_INCLUDE_DIR}" "${LZMA_INCLUDE_DIRS}" "${JPEG_INCLUDE_DIR}" "${GME_INCLUDE_DIR}" ) -Index: gzdoom-4.0.0/src/rendering/vulkan/shaders/vk_shader.cpp +Index: gzdoom-g4.2.0/src/rendering/vulkan/shaders/vk_shader.cpp =================================================================== ---- gzdoom-4.0.0.orig/src/rendering/vulkan/shaders/vk_shader.cpp -+++ gzdoom-4.0.0/src/rendering/vulkan/shaders/vk_shader.cpp +--- gzdoom-g4.2.0.orig/src/rendering/vulkan/shaders/vk_shader.cpp ++++ gzdoom-g4.2.0/src/rendering/vulkan/shaders/vk_shader.cpp @@ -4,7 +4,7 @@ #include "hwrenderer/utility/hw_shaderpatcher.h" #include "w_wad.h" @@ -50,10 +50,10 @@ Index: gzdoom-4.0.0/src/rendering/vulkan/shaders/vk_shader.cpp VkShaderManager::VkShaderManager(VulkanDevice *device) : device(device) { -Index: gzdoom-4.0.0/src/rendering/vulkan/system/vk_builders.cpp +Index: gzdoom-g4.2.0/src/rendering/vulkan/system/vk_builders.cpp =================================================================== ---- gzdoom-4.0.0.orig/src/rendering/vulkan/system/vk_builders.cpp -+++ gzdoom-4.0.0/src/rendering/vulkan/system/vk_builders.cpp +--- gzdoom-g4.2.0.orig/src/rendering/vulkan/system/vk_builders.cpp ++++ gzdoom-g4.2.0/src/rendering/vulkan/system/vk_builders.cpp @@ -2,8 +2,8 @@ #include "vk_builders.h" #include "doomerrors.h" diff --git a/gzdoom-wadsrc-extra.patch b/gzdoom-wadsrc-extra.patch deleted file mode 100644 index 0491bd1..0000000 --- a/gzdoom-wadsrc-extra.patch +++ /dev/null @@ -1,22 +0,0 @@ -From: Jan Engelhardt -Date: 2018-01-09 00:35:47.044540108 +0100 - -Since the openSUSE _service file downloads and creates a tarball -without wadsrc_extra, it now needs to be removed from CMakeLists -so that cmake does not fail with an error. ---- - CMakeLists.txt | 1 - - 1 file changed, 1 deletion(-) - -Index: gzdoom-3.2.5/CMakeLists.txt -=================================================================== ---- gzdoom-3.2.5.orig/CMakeLists.txt -+++ gzdoom-3.2.5/CMakeLists.txt -@@ -336,7 +336,6 @@ add_subdirectory( gdtoa ) - add_subdirectory( wadsrc ) - add_subdirectory( wadsrc_bm ) - add_subdirectory( wadsrc_lights ) --add_subdirectory( wadsrc_extra ) - add_subdirectory( src ) - - if( NOT CMAKE_CROSSCOMPILING ) diff --git a/gzdoom.changes b/gzdoom.changes index dae9399..c313504 100644 --- a/gzdoom.changes +++ b/gzdoom.changes @@ -1,3 +1,21 @@ +------------------------------------------------------------------- +Fri Aug 23 12:40:51 UTC 2019 - Jan Engelhardt + +- Update to new upstream release 4.2.0 + * The survey code has been re-enabled for this version: it sends + basic info about the operating system but no private data: + the number of CPU cores, the graphics card, and supported + OpenGL/Vulkan versions. + * Restored original vanilla behavior of Lost Souls' charging + attack. + * Exposed Append() method to ZScript dynamic array + * Fixed an inconsistency with missiles bouncing off actors. + * Added A_SoundPitch and an optional pitch parameter to + A_PlaySound and S_Sound. + * Attachable dynamic lights with ZScript or DECORATE. +- Drop _service and gzdoom-wadsrc_extra.diff, + both unused since 4.1.3. + ------------------------------------------------------------------- Fri Aug 23 12:28:14 UTC 2019 - Jan Engelhardt diff --git a/gzdoom.spec b/gzdoom.spec index 657089d..6241d31 100644 --- a/gzdoom.spec +++ b/gzdoom.spec @@ -17,7 +17,7 @@ Name: gzdoom -Version: 4.1.3 +Version: 4.2.0 Release: 0 Summary: A DOOM source port with graphic and modding extensions License: GPL-3.0-only @@ -25,9 +25,8 @@ Group: Amusements/Games/3D/Shoot Url: http://zdoom.org/ #Git-Clone: https://github.com/coelckers/gzdoom -Source: https://github.com/coelckers/gzdoom/archive/g%{version}.tar.gz +Source: https://github.com/coelckers/gzdoom/archive/g%version.tar.gz Patch1: gzdoom-waddir.patch -Patch2: gzdoom-wadsrc-extra.patch Patch4: fl2.patch Patch5: gzdoom-lzma.patch Patch6: gzdoom-vulkan.patch @@ -83,8 +82,8 @@ GZDoom is a port (a modification) of the original Doom source code, featuring: * Demo record/playback of classic and Boom demos is not supported. %prep -%setup -q -n %{name}-g%{version} -%patch -P 1 -P 2 -P 4 -p1 +%setup -q -n %name-g%version +%patch -P 1 -P 4 -p1 %if 0%{?suse_version} >= 1500 %patch -P 5 -p1 From f3cd13b53d1d1d403d8c8eeb9de42a3dd8b051c349627a4bd00aa4fbb309ca39 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Fri, 23 Aug 2019 14:00:48 +0000 Subject: [PATCH 3/3] OBS-URL: https://build.opensuse.org/package/show/games/gzdoom?expand=0&rev=28 --- gzdoom.changes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gzdoom.changes b/gzdoom.changes index c313504..cf23570 100644 --- a/gzdoom.changes +++ b/gzdoom.changes @@ -13,7 +13,7 @@ Fri Aug 23 12:40:51 UTC 2019 - Jan Engelhardt * Added A_SoundPitch and an optional pitch parameter to A_PlaySound and S_Sound. * Attachable dynamic lights with ZScript or DECORATE. -- Drop _service and gzdoom-wadsrc_extra.diff, +- Drop _service and gzdoom-wadsrc-extra.patch, both unused since 4.1.3. -------------------------------------------------------------------