commit:     84f5330502d84aed65712c86814a3053ab6c558e
Author:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 11 14:43:19 2022 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Fri Feb 11 14:43:53 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84f53305

games-fps/eduke32: fix compilation

Closes: https://bugs.gentoo.org/833101
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 games-fps/eduke32/eduke32-20220204.9957.ebuild                |  3 ++-
 .../eduke32/files/eduke32-20220204.9957-log-to-tmpdir.patch   | 11 +++++++++++
 .../files/eduke32-20220204.9957-osd-setparameters.patch       | 11 +++++++++++
 3 files changed, 24 insertions(+), 1 deletion(-)

diff --git a/games-fps/eduke32/eduke32-20220204.9957.ebuild 
b/games-fps/eduke32/eduke32-20220204.9957.ebuild
index c177f758e1a0..ed27b1dc402c 100644
--- a/games-fps/eduke32/eduke32-20220204.9957.ebuild
+++ b/games-fps/eduke32/eduke32-20220204.9957.ebuild
@@ -77,9 +77,10 @@ BDEPEND="
 PDEPEND="duke3d? ( games-fps/duke3d-data )"
 
 PATCHES=(
-       "${FILESDIR}/${PN}-20190820.8043-log-to-tmpdir.patch"
        "${FILESDIR}/${PN}-20190820.8043-search-duke3d-path.patch"
        "${FILESDIR}/${PN}-20200505.8904-gcc10.patch"
+       "${FILESDIR}/${PN}-20220204.9957-log-to-tmpdir.patch"
+       "${FILESDIR}/${PN}-20220204.9957-osd-setparameters.patch"
 )
 
 src_unpack() {

diff --git a/games-fps/eduke32/files/eduke32-20220204.9957-log-to-tmpdir.patch 
b/games-fps/eduke32/files/eduke32-20220204.9957-log-to-tmpdir.patch
new file mode 100644
index 000000000000..5296f0ac71a9
--- /dev/null
+++ b/games-fps/eduke32/files/eduke32-20220204.9957-log-to-tmpdir.patch
@@ -0,0 +1,11 @@
+--- a/source/sw/src/game.cpp
++++ b/source/sw/src/game.cpp
+@@ -3467,7 +3467,7 @@
+     }
+     else
+ #endif
+-    OSD_SetLogFile(APPBASENAME ".log");
++    OSD_SetLogFile("/tmp/" APPBASENAME ".log");
+ 
+     wm_setapptitle(APPNAME);
+ 

diff --git 
a/games-fps/eduke32/files/eduke32-20220204.9957-osd-setparameters.patch 
b/games-fps/eduke32/files/eduke32-20220204.9957-osd-setparameters.patch
new file mode 100644
index 000000000000..b302ac94afa6
--- /dev/null
+++ b/games-fps/eduke32/files/eduke32-20220204.9957-osd-setparameters.patch
@@ -0,0 +1,11 @@
+--- a/source/sw/src/jnstub.cpp
++++ b/source/sw/src/jnstub.cpp
+@@ -731,7 +731,7 @@
+     //LogUserTime(TRUE);              // Send true because user is logging
+     // in.
+ 
+-    OSD_SetParameters(0, 0, 0, 4, 2, 4, "^14", "^14", 0);
++    OSD_SetParameters(0, 0, 0, 4, 2, 4, "^14", "^14", "^14", 0);
+ 
+     SW_ExtInit();
+ 

Reply via email to