Hello community, here is the log from the commit of package dhewm3 for openSUSE:Factory checked in at 2018-07-04 23:55:52 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/dhewm3 (Old) and /work/SRC/openSUSE:Factory/.dhewm3.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "dhewm3" Wed Jul 4 23:55:52 2018 rev:2 rq:620518 version:1.4.1 Changes: -------- --- /work/SRC/openSUSE:Factory/dhewm3/dhewm3.changes 2017-08-24 18:32:56.101907388 +0200 +++ /work/SRC/openSUSE:Factory/.dhewm3.new/dhewm3.changes 2018-07-04 23:56:06.875827023 +0200 @@ -1,0 +2,8 @@ +Tue Jul 3 17:32:37 UTC 2018 - [email protected] + +- Use %license macro +- Add 0002-Lower-release-build-optimizations-to-O2.patch + * Fixes some undefined behavior caused by higher optimization + levels. Picked from git master. + +------------------------------------------------------------------- New: ---- 0002-Lower-release-build-optimizations-to-O2.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ dhewm3.spec ++++++ --- /var/tmp/diff_new_pack.CagqjT/_old 2018-07-04 23:56:07.967825819 +0200 +++ /var/tmp/diff_new_pack.CagqjT/_new 2018-07-04 23:56:07.967825819 +0200 @@ -1,7 +1,7 @@ # # spec file for package dhewm3 # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -20,12 +20,13 @@ Version: 1.4.1 Release: 0 Summary: DOOM 3 source port -License: GPL-3.0 +License: GPL-3.0-only Group: Amusements/Games/3D/Shoot Url: https://github.com/dhewm/dhewm3 Source0: https://github.com/dhewm/%{name}/archive/%{version}.tar.gz # upstream bug: https://github.com/dhewm/dhewm3/issues/172 Patch0: 0001-Remove-use-of-date-time-macros.patch +Patch1: 0002-Lower-release-build-optimizations-to-O2.patch BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: pkgconfig @@ -49,7 +50,7 @@ %prep %setup -q -%patch0 -p1 +%autopatch -p1 %build cd neo @@ -61,8 +62,8 @@ %cmake_install %files -%defattr(-,root,root,-) -%doc README.md COPYING.txt +%doc README.md +%license COPYING.txt %{_bindir}/%{name} %{_libdir}/%{name} ++++++ 0002-Lower-release-build-optimizations-to-O2.patch ++++++ >From 043f0dfaa08c97f6fe91360e92741270281cc097 Mon Sep 17 00:00:00 2001 From: Yamagi Burmeister <[email protected]> Date: Tue, 3 Jul 2018 15:20:31 +0200 Subject: [PATCH] Lower release build optimizations from -O3 to -O2. In the last few weeks I've played again through the game and kept an eye on small oddities. And there're a lot of them. For example some GUIs and videos getting stuck after the first frame (issue #192) or being unable to protect the guy with the lamp in Alpha Labs 3. Some digging proved that most - if not all - of these problems are caused by the compilers optimization level. When build with -O2 both g++ 8.1 and clang 6.0.0 are producing working code. g++ 8.1 with -O3 has some small, hard to notice oddities, clang 6.0.0 with -O3 shows a lot of them. Since there's not measurable difference between -O3 and -O2 just go down to the later: x doom_o3.txt + doom_o2.txt +----------------------------------------------------------------------+ | + | | + * | |x * x * | | |_____________________|___A______M__A_________M___|_|| +----------------------------------------------------------------------+ N Min Max Median Avg Stddev x 5 173 178 177 176.4 2.0736441 + 5 176 178 178 177.2 1.0954451 --- neo/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neo/CMakeLists.txt b/neo/CMakeLists.txt index 4310301d..c582660c 100644 --- a/neo/CMakeLists.txt +++ b/neo/CMakeLists.txt @@ -157,8 +157,8 @@ if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID STREQUAL "Clang") set(CMAKE_C_FLAGS_DEBUG "-g -D_DEBUG -O1") set(CMAKE_C_FLAGS_DEBUGALL "-g -ggdb -D_DEBUG") set(CMAKE_C_FLAGS_PROFILE "-g -ggdb -D_DEBUG -O1 -fno-omit-frame-pointer") - set(CMAKE_C_FLAGS_RELEASE "-O3 -ffast-math -fno-unsafe-math-optimizations -fomit-frame-pointer") - set(CMAKE_C_FLAGS_RELWITHDEBINFO "-g -O3 -ffast-math -fno-unsafe-math-optimizations -fomit-frame-pointer") + set(CMAKE_C_FLAGS_RELEASE "-O2 -ffast-math -fno-unsafe-math-optimizations -fomit-frame-pointer") + set(CMAKE_C_FLAGS_RELWITHDEBINFO "-g -O2 -ffast-math -fno-unsafe-math-optimizations -fomit-frame-pointer") set(CMAKE_C_FLAGS_MINSIZEREL "-Os -ffast-math -fno-unsafe-math-optimizations -fomit-frame-pointer") set(CMAKE_CXX_FLAGS_DEBUGALL ${CMAKE_C_FLAGS_DEBUGALL})
