Bug 53758 - [Maintainer] Unbreak games/quake2forge on 5.1/alpha
Summary: [Maintainer] Unbreak games/quake2forge on 5.1/alpha
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-26 11:20 UTC by Ulrich Spoerlein
Modified: 2003-06-27 04:59 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Spoerlein 2003-06-26 11:20:23 UTC
- Unbreak Quake2 on Alpha
- Remove useless use of cat

Note: Due to alignment errors, the clients are still unuseable on alpha.
The dedicated server runs fine though.

Fix: 

--- Makefile    28 Mar 2003 10:23:20 -0000      1.4
+++ Makefile    26 Jun 2003 10:03:40 -0000
@@ -89,6 +89,6 @@
.endif

post-install:
-	@${CAT} ${PKGMESSAGE} | ${SED} -e 's#$${PREFIX}#${PREFIX}#g'
+	@${SED} -e 's#$${PREFIX}#${PREFIX}#g' ${PKGMESSAGE}

.include <bsd.port.post.mk>
--- files/patch-main.c	28 Mar 2003 10:23:20 -0000	1.1
+++ files/patch-main.c	26 Jun 2003 09:42:34 -0000
@@ -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));
Comment 1 Daichi GOTO freebsd_committer freebsd_triage 2003-06-27 04:59:15 UTC
State Changed
From-To: open->closed

Committed. Thanks!