pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/games Pointers are not ordered relative to 0. Check th...
details: https://anonhg.NetBSD.org/pkgsrc/rev/6c8b9c03516c
branches: trunk
changeset: 355930:6c8b9c03516c
user: joerg <joerg%pkgsrc.org@localhost>
date: Thu Dec 15 23:52:43 2016 +0000
description:
Pointers are not ordered relative to 0. Check the error of fopen
correctly. Share patches when sharing distinfo. Bump revision.
diffstat:
games/armagetronad-server/Makefile | 3 +-
games/armagetronad/Makefile | 3 +-
games/armagetronad/Makefile.common | 3 +-
games/armagetronad/distinfo | 4 ++-
games/armagetronad/patches/patch-src_network_nNetObject.cpp | 15 ++++++++++
games/armagetronad/patches/patch-src_tools_tResourceManager.cpp | 15 ++++++++++
6 files changed, 39 insertions(+), 4 deletions(-)
diffs (98 lines):
diff -r 06055a659d6b -r 6c8b9c03516c games/armagetronad-server/Makefile
--- a/games/armagetronad-server/Makefile Thu Dec 15 23:51:03 2016 +0000
+++ b/games/armagetronad-server/Makefile Thu Dec 15 23:52:43 2016 +0000
@@ -1,9 +1,10 @@
-# $NetBSD: Makefile,v 1.1 2016/07/24 15:44:49 kamil Exp $
+# $NetBSD: Makefile,v 1.2 2016/12/15 23:52:43 joerg Exp $
#
.include "../../games/armagetronad/Makefile.common"
PKGNAME= ${DISTNAME:S/.src//:S/armagetronad/armagetronad-server/}
+PKGREVISION= 1
COMMENT= Server for the armagetronad game
MAINTAINER= pkgsrc-users%NetBSD.org@localhost
diff -r 06055a659d6b -r 6c8b9c03516c games/armagetronad/Makefile
--- a/games/armagetronad/Makefile Thu Dec 15 23:51:03 2016 +0000
+++ b/games/armagetronad/Makefile Thu Dec 15 23:52:43 2016 +0000
@@ -1,9 +1,10 @@
-# $NetBSD: Makefile,v 1.1 2016/07/24 15:43:50 kamil Exp $
+# $NetBSD: Makefile,v 1.2 2016/12/15 23:52:43 joerg Exp $
#
.include "Makefile.common"
PKGNAME= ${DISTNAME:S/.src//}
+PKGREVISION= 1
COMMENT= Tron clone in 3D with advanced gameplay and multiplayer
MAINTAINER= pkgsrc-users%NetBSD.org@localhost
diff -r 06055a659d6b -r 6c8b9c03516c games/armagetronad/Makefile.common
--- a/games/armagetronad/Makefile.common Thu Dec 15 23:51:03 2016 +0000
+++ b/games/armagetronad/Makefile.common Thu Dec 15 23:52:43 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.1 2016/07/24 15:43:50 kamil Exp $
+# $NetBSD: Makefile.common,v 1.2 2016/12/15 23:52:43 joerg Exp $
#
# used by games/armagetronad/Makefile
# used by games/armagetronad-server/Makefile
@@ -13,6 +13,7 @@
WRKSRC= ${WRKDIR}/${DISTNAME:S/.src//}
DISTINFO_FILE= ${.CURDIR}/../../games/armagetronad/distinfo
+PATCHDIR= ${.CURDIR}/../../games/armagetronad/patches
GNU_CONFIGURE= yes
USE_LANGUAGES= c c++
diff -r 06055a659d6b -r 6c8b9c03516c games/armagetronad/distinfo
--- a/games/armagetronad/distinfo Thu Dec 15 23:51:03 2016 +0000
+++ b/games/armagetronad/distinfo Thu Dec 15 23:52:43 2016 +0000
@@ -1,6 +1,8 @@
-$NetBSD: distinfo,v 1.1 2016/07/24 15:43:50 kamil Exp $
+$NetBSD: distinfo,v 1.2 2016/12/15 23:52:43 joerg Exp $
SHA1 (armagetronad-0.2.8.3.3.src.tar.gz) = f27657dfcddce681915d48f55d7dde1959167d4a
RMD160 (armagetronad-0.2.8.3.3.src.tar.gz) = 251c2253ff956207544b9dba6fd233630ed85efd
SHA512 (armagetronad-0.2.8.3.3.src.tar.gz) = b83d109107887b41b8f26c3709c50e730bc4bdc30eac247002cfab661bece9b6af9e1e9808a2295df6ad38c99bb519d12e0ea7bbaef0ce0615e2d814ca69b04e
Size (armagetronad-0.2.8.3.3.src.tar.gz) = 2230775 bytes
+SHA1 (patch-src_network_nNetObject.cpp) = ba694328894bccf9b82454276ccac146f89b55be
+SHA1 (patch-src_tools_tResourceManager.cpp) = 2963dc40af13cff052cd86d04b9a2a110f20156b
diff -r 06055a659d6b -r 6c8b9c03516c games/armagetronad/patches/patch-src_network_nNetObject.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/armagetronad/patches/patch-src_network_nNetObject.cpp Thu Dec 15 23:52:43 2016 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_network_nNetObject.cpp,v 1.1 2016/12/15 23:52:43 joerg Exp $
+
+Pointers don't order with 0, check for non-NULL instead.
+
+--- src/network/nNetObject.cpp.orig 2016-12-15 17:38:01.972071566 +0000
++++ src/network/nNetObject.cpp
+@@ -1530,7 +1530,7 @@ void nNetObject::SyncAll(){
+ // con << sn_SyncRequestedObject.Len() << "/" << sn_netObjects.Len() << "\n";
+
+ int currentSync = sn_SyncRequestedObject.Len()-1;
+- while(sn_Connections[user].socket>0 &&
++ while(sn_Connections[user].socket &&
+ sn_Connections[user].bandwidthControl_.CanSend() &&
+ sn_Connections[user].ackPending<sn_maxNoAck &&
+ currentSync >= 0){
diff -r 06055a659d6b -r 6c8b9c03516c games/armagetronad/patches/patch-src_tools_tResourceManager.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/armagetronad/patches/patch-src_tools_tResourceManager.cpp Thu Dec 15 23:52:43 2016 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_tools_tResourceManager.cpp,v 1.1 2016/12/15 23:52:43 joerg Exp $
+
+fopen returns a NULL pointer on failure.
+
+--- src/tools/tResourceManager.cpp.orig 2016-12-15 17:37:32.864347941 +0000
++++ src/tools/tResourceManager.cpp
+@@ -44,7 +44,7 @@ static int myHTTPFetch(const char *URI,
+ }
+
+ fd = fopen(savepath, "w");
+- if (fd < 0) {
++ if (fd == NULL) {
+ xmlNanoHTTPClose(ctxt);
+ con << tOutput( "$resource_no_write", savepath );
+ return 3;
Home |
Main Index |
Thread Index |
Old Index