warzone2100: update to 3.1.3.

This commit is contained in:
Juan RP 2016-01-27 07:58:52 +01:00
parent 8f89a77019
commit b89e87bdeb
2 changed files with 44 additions and 4 deletions

View File

@ -0,0 +1,40 @@
--- lib/framework/debug.cpp.orig 2016-01-27 07:52:07.414728274 +0100
+++ lib/framework/debug.cpp 2016-01-27 07:52:41.381052522 +0100
@@ -36,7 +36,7 @@
#include <string>
#include "src/warzoneconfig.h" // for checking FS or not
-#ifdef WZ_OS_LINUX
+#if defined(WZ_OS_LINUX) && defined(__GLIBC__)
#include <execinfo.h> // Nonfatal runtime backtraces.
#endif //WZ_OS_LINUX
@@ -541,7 +541,7 @@ void _debug(int line, code_part part, co
void _debugBacktrace(code_part part)
{
-#ifdef WZ_OS_LINUX
+#if defined(WZ_OS_LINUX) && defined(__GLIBC__)
void *btv[20];
unsigned num = backtrace(btv, sizeof(btv) / sizeof(*btv));
char **btc = backtrace_symbols(btv, num);
--- lib/netplay/netplay.cpp.orig 2016-01-27 07:56:42.982098373 +0100
+++ lib/netplay/netplay.cpp 2016-01-27 07:57:18.302393414 +0100
@@ -54,7 +54,7 @@
#include "src/version.h"
#include "src/loadsave.h"
-#ifdef WZ_OS_LINUX
+#if defined(WZ_OS_LINUX) && defined(__GLIBC__)
#include <execinfo.h> // Nonfatal runtime backtraces.
#endif //WZ_OS_LINUX
@@ -3540,7 +3540,7 @@ void _syncDebugBacktrace(const char *fun
uint32_t backupCrc = syncDebugLog[syncDebugNext].getCrc(); // Ignore CRC changes from _syncDebug(), since identical backtraces can be printed differently.
-#ifdef WZ_OS_LINUX
+#if defined(WZ_OS_LINUX) && defined(__GLIBC__)
void *btv[20];
unsigned num = backtrace(btv, sizeof(btv) / sizeof(*btv));
char **btc = backtrace_symbols(btv, num);

View File

@ -1,16 +1,16 @@
# Template file for 'warzone2100'
pkgname=warzone2100
version=3.1.2
revision=2
version=3.1.3
revision=1
build_style=gnu-configure
configure_args="--with-distributor=void"
hostmakedepends="zip unzip asciidoc pkg-config"
makedepends="libpng-devel fribidi-devel fontconfig-devel SDL-devel libvorbis-devel
libtheora-devel libopenal-devel glew19-devel physfs-devel qt-devel"
libtheora-devel libopenal-devel glew-devel physfs-devel qt-devel"
depends="desktop-file-utils"
short_desc="3D realtime strategy game on a future Earth"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
homepage="http://wz2100.net/"
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.xz"
checksum=e33b0c89b981acda4ca2b473e105510caaecd0a0c6648ae22262f4b561566f1b
checksum=b8389036070eb7eb15b4649ba7dc6b7c27ded46323115b07d987815e8d33ffb2