Skip to content

Commit

Permalink
games/openbor: update to 7691
Browse files Browse the repository at this point in the history
Changes:	DCurrent/openbor@ec0f444...cbade65
(cherry picked from commit 0ac48e6)
  • Loading branch information
jbeich committed Apr 25, 2024
1 parent 02be125 commit 7b15f34
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 19 deletions.
4 changes: 2 additions & 2 deletions games/openbor/Makefile
@@ -1,6 +1,6 @@
PORTNAME= openbor
# Hint: svn revision is git rev-list --count ${GH_TAGNAME}
PORTVERSION?= 7633
PORTVERSION?= 7691
PORTREVISION?= 0
CATEGORIES= games

Expand Down Expand Up @@ -35,7 +35,7 @@ PORTSCOUT= ignore:1

USE_GITHUB= yes
GH_ACCOUNT= DCurrent
GH_TAGNAME?= ec0f4446
GH_TAGNAME?= cbade65a

USES+= cpe gmake pkgconfig sdl
.if ${PORTVERSION} < 4433
Expand Down
6 changes: 3 additions & 3 deletions games/openbor/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1712969790
SHA256 (DCurrent-openbor-7633-ec0f4446_GH0.tar.gz) = bcf54a39e5c49e1f8cd2d677f35947c331cd15e2743953a49fc8a0f8c2412de5
SIZE (DCurrent-openbor-7633-ec0f4446_GH0.tar.gz) = 212701948
TIMESTAMP = 1713915161
SHA256 (DCurrent-openbor-7691-cbade65a_GH0.tar.gz) = 1b27c910c6e0399d708088331c463cc20b39ed59335edb52ea412d844430120e
SIZE (DCurrent-openbor-7691-cbade65a_GH0.tar.gz) = 212713048
16 changes: 2 additions & 14 deletions games/openbor/files/patch-source_utils.c
@@ -1,6 +1,3 @@
source/utils.c:18:10: fatal error: 'features.h' file not found
18 | #include <features.h>
| ^~~~~~~~~~~~
source/utils.c:303:54: error: implicit declaration of function 'mallinfo' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
writeToLogFile("Memory usage at exit: %u\n", mallinfo().arena);
Expand All @@ -9,18 +6,9 @@ source/utils.c:303:64: error: member reference base type 'int' is not a structur
writeToLogFile("Memory usage at exit: %u\n", mallinfo().arena);
~~~~~~~~~~^~~~~~

--- source/utils.c.orig 2024-04-11 18:46:01 UTC
--- source/utils.c.orig 2024-04-23 23:32:41 UTC
+++ source/utils.c
@@ -14,7 +14,7 @@
#include <locale.h>
#include <math.h>

-#ifdef LINUX
+#if defined(__linux__)
#include <features.h>
#endif

@@ -307,7 +307,7 @@ void *checkAlloc(void *ptr, size_t size, const char *f
@@ -303,7 +303,7 @@ void *checkAlloc(void *ptr, size_t size, const char *f
"\n* Shutting Down *\n\n");
writeToLogFile("Out of memory!\n");
writeToLogFile("Allocation of size %i failed in function '%s' at %s:%i.\n", size, func, file, line);
Expand Down

0 comments on commit 7b15f34

Please sign in to comment.