pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/games



Module Name:    pkgsrc
Committed By:   joerg
Date:           Thu Dec 15 23:52:43 UTC 2016

Modified Files:
        pkgsrc/games/armagetronad: Makefile Makefile.common distinfo
        pkgsrc/games/armagetronad-server: Makefile
Added Files:
        pkgsrc/games/armagetronad/patches: patch-src_network_nNetObject.cpp
            patch-src_tools_tResourceManager.cpp

Log Message:
Pointers are not ordered relative to 0. Check the error of fopen
correctly. Share patches when sharing distinfo. Bump revision.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/games/armagetronad/Makefile \
    pkgsrc/games/armagetronad/Makefile.common \
    pkgsrc/games/armagetronad/distinfo
cvs rdiff -u -r1.1 -r1.2 pkgsrc/games/armagetronad-server/Makefile
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/games/armagetronad/patches/patch-src_network_nNetObject.cpp \
    pkgsrc/games/armagetronad/patches/patch-src_tools_tResourceManager.cpp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/games/armagetronad/Makefile
diff -u pkgsrc/games/armagetronad/Makefile:1.1 pkgsrc/games/armagetronad/Makefile:1.2
--- pkgsrc/games/armagetronad/Makefile:1.1      Sun Jul 24 15:43:50 2016
+++ pkgsrc/games/armagetronad/Makefile  Thu Dec 15 23:52:43 2016
@@ -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
Index: pkgsrc/games/armagetronad/Makefile.common
diff -u pkgsrc/games/armagetronad/Makefile.common:1.1 pkgsrc/games/armagetronad/Makefile.common:1.2
--- pkgsrc/games/armagetronad/Makefile.common:1.1       Sun Jul 24 15:43:50 2016
+++ pkgsrc/games/armagetronad/Makefile.common   Thu Dec 15 23:52:43 2016
@@ -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 @@ LICENSE=      gnu-gpl-v2
 WRKSRC=                ${WRKDIR}/${DISTNAME:S/.src//}
 
 DISTINFO_FILE= ${.CURDIR}/../../games/armagetronad/distinfo
+PATCHDIR=      ${.CURDIR}/../../games/armagetronad/patches
 
 GNU_CONFIGURE= yes
 USE_LANGUAGES= c c++
Index: pkgsrc/games/armagetronad/distinfo
diff -u pkgsrc/games/armagetronad/distinfo:1.1 pkgsrc/games/armagetronad/distinfo:1.2
--- pkgsrc/games/armagetronad/distinfo:1.1      Sun Jul 24 15:43:50 2016
+++ pkgsrc/games/armagetronad/distinfo  Thu Dec 15 23:52:43 2016
@@ -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

Index: pkgsrc/games/armagetronad-server/Makefile
diff -u pkgsrc/games/armagetronad-server/Makefile:1.1 pkgsrc/games/armagetronad-server/Makefile:1.2
--- pkgsrc/games/armagetronad-server/Makefile:1.1       Sun Jul 24 15:44:49 2016
+++ pkgsrc/games/armagetronad-server/Makefile   Thu Dec 15 23:52:43 2016
@@ -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

Added files:

Index: pkgsrc/games/armagetronad/patches/patch-src_network_nNetObject.cpp
diff -u /dev/null pkgsrc/games/armagetronad/patches/patch-src_network_nNetObject.cpp:1.1
--- /dev/null   Thu Dec 15 23:52:43 2016
+++ pkgsrc/games/armagetronad/patches/patch-src_network_nNetObject.cpp  Thu Dec 15 23:52:43 2016
@@ -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){
Index: pkgsrc/games/armagetronad/patches/patch-src_tools_tResourceManager.cpp
diff -u /dev/null pkgsrc/games/armagetronad/patches/patch-src_tools_tResourceManager.cpp:1.1
--- /dev/null   Thu Dec 15 23:52:43 2016
+++ pkgsrc/games/armagetronad/patches/patch-src_tools_tResourceManager.cpp      Thu Dec 15 23:52:43 2016
@@ -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