aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordaichi <daichi@FreeBSD.org>2003-06-27 11:59:03 +0800
committerdaichi <daichi@FreeBSD.org>2003-06-27 11:59:03 +0800
commitb8950c4cddc497c0941d40512ad2000345af0021 (patch)
tree50f87cc8c08f3a2b2dc4ed1b3aaa8f45d8229632
parentf70e9c8e3fe11b195aeb65d755e341376e8c94ea (diff)
downloadfreebsd-ports-gnome-b8950c4cddc497c0941d40512ad2000345af0021.tar.gz
freebsd-ports-gnome-b8950c4cddc497c0941d40512ad2000345af0021.tar.zst
freebsd-ports-gnome-b8950c4cddc497c0941d40512ad2000345af0021.zip
Unbreak games/quake2forge on 5.1/alpha
- Unbreak Quake2 on Alpha - Remove useless use of cat PR: 53758 Submitted by: Ulrich Spoerlein <q@uni.de> (maintainer)
-rw-r--r--games/quake2forge/Makefile2
-rw-r--r--games/quake2forge/files/patch-main.c18
2 files changed, 19 insertions, 1 deletions
diff --git a/games/quake2forge/Makefile b/games/quake2forge/Makefile
index fbadebcd9fe8..b89f7136c137 100644
--- a/games/quake2forge/Makefile
+++ b/games/quake2forge/Makefile
@@ -89,6 +89,6 @@ do-install:
.endif
post-install:
- @${CAT} ${PKGMESSAGE} | ${SED} -e 's#$${PREFIX}#${PREFIX}#g'
+ @${SED} -e 's#$${PREFIX}#${PREFIX}#g' ${PKGMESSAGE}
.include <bsd.port.post.mk>
diff --git a/games/quake2forge/files/patch-main.c b/games/quake2forge/files/patch-main.c
index 8979f8a45349..78718d143537 100644
--- a/games/quake2forge/files/patch-main.c
+++ b/games/quake2forge/files/patch-main.c
@@ -22,3 +22,21 @@
#endif
#include "qcommon.h"
+@@ -518,7 +527,7 @@
+ ret = fread(ptr, size, nitems, fp);
+ err = errno;
+ if (ret != nitems) {
+- printf("verify_fread(...,%d,%d,...): return value: %d\n", size, nitems, ret);
++ printf("verify_fread(...,%zu,%zu,...): return value: %zu\n", size, nitems, ret);
+ if (ret == 0 && ferror(fp)) {
+ printf(" error: %s\n", strerror(err));
+ printf(" fileno=%d\n", fileno(fp));
+@@ -536,7 +545,7 @@
+ ret = fwrite(ptr, size, nitems, fp);
+ err = errno;
+ if (ret != nitems) {
+- printf("verify_fwrite(...,%d,%d,...) = %d\n", size, nitems, ret);
++ printf("verify_fwrite(...,%zu,%zu,...) = %zu\n", size, nitems, ret);
+ if (ret == 0 && ferror(fp)) {
+ printf(" error: %s\n", strerror(err));
+ printf(" fileno=%d\n", fileno(fp));