forked from pool/gzdoom
- Update to release 4.9.0
OBS-URL: https://build.opensuse.org/package/show/games/gzdoom?expand=0&rev=88
This commit is contained in:
parent
c74005eaaa
commit
986a187c84
@ -8,19 +8,16 @@ This reverts commit 8c244f6f850eeb5a5dede7f887f3f1ba87b3d8bc.
|
|||||||
src/common/engine/i_interface.cpp | 2 --
|
src/common/engine/i_interface.cpp | 2 --
|
||||||
1 file changed, 2 deletions(-)
|
1 file changed, 2 deletions(-)
|
||||||
|
|
||||||
diff --git a/src/common/engine/i_interface.cpp b/src/common/engine/i_interface.cpp
|
Index: gzdoom-g4.9.0/src/common/engine/i_interface.cpp
|
||||||
index 13d35a3a9..217f9212f 100644
|
===================================================================
|
||||||
--- a/src/common/engine/i_interface.cpp
|
--- gzdoom-g4.9.0.orig/src/common/engine/i_interface.cpp
|
||||||
+++ b/src/common/engine/i_interface.cpp
|
+++ gzdoom-g4.9.0/src/common/engine/i_interface.cpp
|
||||||
@@ -1,8 +1,6 @@
|
@@ -5,8 +5,6 @@
|
||||||
#include "i_interface.h"
|
#include "c_cvars.h"
|
||||||
#include "st_start.h"
|
#include "gstrings.h"
|
||||||
|
|
||||||
-static_assert(sizeof(void*) == 8, "32 builds are not supported");
|
-static_assert(sizeof(void*) == 8, "32 builds are not supported");
|
||||||
-
|
-
|
||||||
// Some global engine variables taken out of the backend code.
|
// Some global engine variables taken out of the backend code.
|
||||||
FStartupScreen* StartWindow;
|
FStartupScreen* StartWindow;
|
||||||
SystemCallbacks sysCallbacks;
|
SystemCallbacks sysCallbacks;
|
||||||
--
|
|
||||||
2.36.1
|
|
||||||
|
|
||||||
|
59
0001-build-unbreak-compilation-on-Linux.patch
Normal file
59
0001-build-unbreak-compilation-on-Linux.patch
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
From 040fafaf7260b51031e20d850aa5358c0a7bd9a7 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Jan Engelhardt <jengelh@inai.de>
|
||||||
|
Date: Sat, 5 Nov 2022 22:30:07 +0100
|
||||||
|
Subject: [PATCH] build: unbreak compilation on Linux
|
||||||
|
MIME-Version: 1.0
|
||||||
|
Content-Type: text/plain; charset=UTF-8
|
||||||
|
Content-Transfer-Encoding: 8bit
|
||||||
|
|
||||||
|
gzdoom/src/d_anonstats.cpp:14:10: fatal error: i_mainwindow.h: No such file or directory
|
||||||
|
14 | #include "i_mainwindow.h"
|
||||||
|
| ^~~~~~~~~~~~~~~~
|
||||||
|
compilation terminated.
|
||||||
|
make[2]: *** [src/CMakeFiles/zdoom.dir/build.make:1441: src/CMakeFiles/zdoom.dir/d_anonstats.cpp.o] Error 1
|
||||||
|
make[2]: *** Waiting for unfinished jobs....
|
||||||
|
make[1]: *** [CMakeFiles/Makefile2:959: src/CMakeFiles/zdoom.dir/all] Error 2
|
||||||
|
make: *** [Makefile:136: all] Error 2
|
||||||
|
|
||||||
|
gzdoom/src/d_anonstats.cpp:126:17: error: ‘actor’ was not declared in this scope; did you mean ‘AActor’?
|
||||||
|
126 | actor-> return false; // no host, disable
|
||||||
|
| ^~~~~
|
||||||
|
| AActor
|
||||||
|
|
||||||
|
$ find . -name "i_mainw*"
|
||||||
|
./src/common/platform/win32/i_mainwindow.h
|
||||||
|
./src/common/platform/win32/i_mainwindow.cpp
|
||||||
|
|
||||||
|
Fixes: g4.5pre-1327-g6670bc09b
|
||||||
|
Fixes: g4.9pre-359-g082818405
|
||||||
|
---
|
||||||
|
src/d_anonstats.cpp | 5 ++---
|
||||||
|
1 file changed, 2 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/d_anonstats.cpp b/src/d_anonstats.cpp
|
||||||
|
index 1dcd05824..2e1456259 100644
|
||||||
|
--- a/src/d_anonstats.cpp
|
||||||
|
+++ b/src/d_anonstats.cpp
|
||||||
|
@@ -11,9 +11,8 @@ void D_ConfirmSendStats()
|
||||||
|
|
||||||
|
#else // !NO_SEND_STATS
|
||||||
|
|
||||||
|
-#include "i_mainwindow.h"
|
||||||
|
-
|
||||||
|
#if defined(_WIN32)
|
||||||
|
+#include "i_mainwindow.h"
|
||||||
|
#define WIN32_LEAN_AND_MEAN
|
||||||
|
#include <windows.h>
|
||||||
|
#include <winsock2.h>
|
||||||
|
@@ -121,7 +120,7 @@ bool I_HTTPRequest(const char* request)
|
||||||
|
bool I_HTTPRequest(const char* request)
|
||||||
|
{
|
||||||
|
if ((*sys_statshost)[0] == 0)
|
||||||
|
- actor-> return false; // no host, disable
|
||||||
|
+ return false; // no host, disable
|
||||||
|
|
||||||
|
int sockfd, portno, n;
|
||||||
|
struct sockaddr_in serv_addr;
|
||||||
|
--
|
||||||
|
2.38.0
|
||||||
|
|
@ -1,36 +0,0 @@
|
|||||||
From 0f0b4b7620557410e4969cec6119a7771b8acf35 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Omar Polo <op@omarpolo.com>
|
|
||||||
Date: Mon, 11 Jul 2022 11:52:43 +0200
|
|
||||||
Subject: [PATCH] fix gzdoom.pk3 not found error
|
|
||||||
|
|
||||||
Move the initialization before BaseFileSearch is called, otherwise
|
|
||||||
GameConfig is used not initialized and it doesn't find the gzdoom.pk3
|
|
||||||
file.
|
|
||||||
|
|
||||||
GameConfig used uninitalized was spotted by @LoneFox78.
|
|
||||||
---
|
|
||||||
src/d_main.cpp | 4 ++--
|
|
||||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
Index: gzdoom-g4.8.2/src/d_main.cpp
|
|
||||||
===================================================================
|
|
||||||
--- gzdoom-g4.8.2.orig/src/d_main.cpp
|
|
||||||
+++ gzdoom-g4.8.2/src/d_main.cpp
|
|
||||||
@@ -3534,6 +3534,8 @@ static int D_DoomMain_Internal (void)
|
|
||||||
|
|
||||||
std::set_new_handler(NewFailure);
|
|
||||||
const char *batchout = Args->CheckValue("-errorlog");
|
|
||||||
+
|
|
||||||
+ D_DoomInit();
|
|
||||||
|
|
||||||
// [RH] Make sure zdoom.pk3 is always loaded,
|
|
||||||
// as it contains magic stuff we need.
|
|
||||||
@@ -3568,8 +3570,6 @@ static int D_DoomMain_Internal (void)
|
|
||||||
|
|
||||||
if (!batchrun) Printf(PRINT_LOG, "%s version %s\n", GAMENAME, GetVersionString());
|
|
||||||
|
|
||||||
- D_DoomInit();
|
|
||||||
-
|
|
||||||
extern void D_ConfirmSendStats();
|
|
||||||
D_ConfirmSendStats();
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:4edd60f8094c9dc3dfb7400bdbc0ebb0a5e574b0a6747eee4c8d9f1f6af77127
|
|
||||||
size 24247668
|
|
3
g4.9.0.tar.gz
Normal file
3
g4.9.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:2f4354654ec54e505f37e2766f0f1dc27bd996bab2daf480cac56fd192c855f4
|
||||||
|
size 24246263
|
@ -1,35 +0,0 @@
|
|||||||
From: Jan Engelhardt <jengelh@inai.de>
|
|
||||||
Date: 2020-06-12 02:05:34.009865606 +0200
|
|
||||||
|
|
||||||
When a SDL_PollEvent is sandwiched between SDL_CreateWindow and
|
|
||||||
SDL_CreateRenderer, SDL crashes during SDL_IME_PumpEvents because dbus message
|
|
||||||
still references the old window (still exists and pointer is non-NULL) and
|
|
||||||
tries to access members of window->driverdata (block was freed and pointer is
|
|
||||||
NULL.)
|
|
||||||
|
|
||||||
Workaround this by recreating the SDL_Window object and immediately afterwards
|
|
||||||
creating the renderer.
|
|
||||||
|
|
||||||
This crash only happens for gzdoom when running with the SoftPoly rasterizer,
|
|
||||||
as that is the only place that issues SDL_CreateRenderer after the mainloop has
|
|
||||||
started.
|
|
||||||
|
|
||||||
Needs a bugreport on libsdl.org.
|
|
||||||
|
|
||||||
---
|
|
||||||
src/common/platform/posix/sdl/sdlglvideo.cpp | 2 ++
|
|
||||||
1 file changed, 2 insertions(+)
|
|
||||||
|
|
||||||
Index: gzdoom-g4.4.1/src/common/platform/posix/sdl/sdlglvideo.cpp
|
|
||||||
===================================================================
|
|
||||||
--- gzdoom-g4.4.1.orig/src/common/platform/posix/sdl/sdlglvideo.cpp
|
|
||||||
+++ gzdoom-g4.4.1/src/common/platform/posix/sdl/sdlglvideo.cpp
|
|
||||||
@@ -294,6 +294,8 @@ uint8_t *I_PolyPresentLock(int w, int h,
|
|
||||||
{
|
|
||||||
polyvsync = vsync;
|
|
||||||
|
|
||||||
+ Priv::DestroyWindow();
|
|
||||||
+ Priv::CreateWindow(SDL_WINDOW_VULKAN | (Priv::softpolyEnabled ? SDL_WINDOW_HIDDEN : 0));
|
|
||||||
polyrendertarget = SDL_CreateRenderer(Priv::window, -1, vsync ? SDL_RENDERER_PRESENTVSYNC : 0);
|
|
||||||
if (!polyrendertarget)
|
|
||||||
{
|
|
@ -1,3 +1,14 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Nov 5 19:55:42 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
- Update to release 4.9.0
|
||||||
|
* IQM bone model support
|
||||||
|
* Textured particles
|
||||||
|
* The SoftPoly renderer was removed
|
||||||
|
- Delete gzdoom-sdlbug.diff (obsolete),
|
||||||
|
0001-fix-gzdoom.pk3-not-found-error.patch (merged)
|
||||||
|
- Add 0001-build-unbreak-compilation-on-Linux.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Oct 24 23:24:06 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
|
Mon Oct 24 23:24:06 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: gzdoom
|
Name: gzdoom
|
||||||
Version: 4.8.2
|
Version: 4.9.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A DOOM source port with graphic and modding extensions
|
Summary: A DOOM source port with graphic and modding extensions
|
||||||
License: GPL-3.0-only
|
License: GPL-3.0-only
|
||||||
@ -28,10 +28,9 @@ URL: https://zdoom.org/
|
|||||||
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
|
Patch1: gzdoom-waddir.patch
|
||||||
Patch2: gzdoom-lzma.patch
|
Patch2: gzdoom-lzma.patch
|
||||||
Patch4: gzdoom-sdlbug.patch
|
Patch3: 0001-build-unbreak-compilation-on-Linux.patch
|
||||||
Patch5: gzdoom-vulkan.patch
|
Patch5: gzdoom-vulkan.patch
|
||||||
Patch6: gzdoom-discord.patch
|
Patch6: gzdoom-discord.patch
|
||||||
Patch8: 0001-fix-gzdoom.pk3-not-found-error.patch
|
|
||||||
Patch9: 0001-Revert-use-static_assert-to-make-32-bit-builds-fail.patch
|
Patch9: 0001-Revert-use-static_assert-to-make-32-bit-builds-fail.patch
|
||||||
BuildRequires: cmake >= 2.8.7
|
BuildRequires: cmake >= 2.8.7
|
||||||
BuildRequires: discord-rpc-devel
|
BuildRequires: discord-rpc-devel
|
||||||
|
Loading…
Reference in New Issue
Block a user