aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2012-09-11 07:15:38 +0200
committerRobby Workman <rworkman@slackbuilds.org>2012-09-11 08:44:36 -0500
commit45bde4d181430ef40888fc7b8d52bdafac72f822 (patch)
tree0e87c52ad2db636f07b509fb204cca045bfd4c5a /games
parentc9699ec40fae46a04baf811f0bca9a09d1521bcf (diff)
games/Scorched3D: Added a patch for the newer toolchain.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org> Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'games')
-rw-r--r--games/Scorched3D/Scorched3D.SlackBuild5
-rw-r--r--games/Scorched3D/scorched-svn_glibc-2.15_fix.patch12
2 files changed, 16 insertions, 1 deletions
diff --git a/games/Scorched3D/Scorched3D.SlackBuild b/games/Scorched3D/Scorched3D.SlackBuild
index 5d2b87b7612d..d1d23ab03025 100644
--- a/games/Scorched3D/Scorched3D.SlackBuild
+++ b/games/Scorched3D/Scorched3D.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=Scorched3D
VERSION=43.1c
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -72,6 +72,9 @@ patch -p1 -i $CWD/scorched3d-42.1-fixups.patch
#fix building with libpng14
patch -p0 -i $CWD/scorched3d-43.1c-libpng14.patch
+#fix for glibc-2.15 http://www.scorched3d.co.uk/mantisbt/view.php?id=156
+patch -p1 -i $CWD/scorched-svn_glibc-2.15_fix.patch
+
chmod +x ./autogen.sh
./autogen.sh
diff --git a/games/Scorched3D/scorched-svn_glibc-2.15_fix.patch b/games/Scorched3D/scorched-svn_glibc-2.15_fix.patch
new file mode 100644
index 000000000000..690d51f07416
--- /dev/null
+++ b/games/Scorched3D/scorched-svn_glibc-2.15_fix.patch
@@ -0,0 +1,12 @@
+Index: scorched/src/client/client/SecureID.cpp
+===================================================================
+--- scorched/src/client/client/SecureID.cpp (revision 549)
++++ scorched/src/client/client/SecureID.cpp (working copy)
+@@ -75,6 +75,7 @@
+
+ #include <sys/ioctl.h>
+ #include <net/if.h>
++#include <unistd.h>
+
+ std::string SecureID::GetPrivateKey(void)
+ {