ports/70169: Update port: games/xjig

KATO Tsuguru tkato432 at yahoo.com
Sun Aug 8 14:10:29 UTC 2004


>Number:         70169
>Category:       ports
>Synopsis:       Update port: games/xjig
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 08 14:10:28 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 4.10-RELEASE-p2 i386
>Organization:
>Environment:
>Description:
- Fix build on -current after gcc 3.4 import

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/games/xjig/files/patch-ag games/xjig/files/patch-ag
--- /usr/ports/games/xjig/files/patch-ag	Sun Apr 12 03:34:44 1998
+++ games/xjig/files/patch-ag	Fri Aug  6 03:15:28 2004
@@ -1,6 +1,6 @@
---- reset_image.H.orig	Tue Jul 16 10:59:50 1996
-+++ reset_image.H	Tue Apr  7 15:34:33 1998
-@@ -16,15 +16,24 @@
+--- reset_image.H.orig	Wed Jul 17 02:59:50 1996
++++ reset_image.H	Fri Aug  6 03:12:24 2004
+@@ -16,15 +16,25 @@
  // to access data beyond the allocated image, that might lead to a segmentation
  // violation. Therefore, it might be good to allocated some additional
  // rows of data for the image.
@@ -21,7 +21,8 @@
 -			*xdata_run++=(DATA_TYPE)blk_pixel;
 +			// *xdata_run++=(DATA_TYPE)blk_pixel;
 +			*xdata_run=(DATA_TYPE)blk_pixel; // align fault
-+			((char *)xdata_run) += DATA_BYTES;
++			char *my_xdata_run = (char *)xdata_run;
++			my_xdata_run += DATA_BYTES;
  		}
  	}
 -	xdata+=(offset_bytes/sizeof(DATA_TYPE));
@@ -29,7 +30,7 @@
  
  	if (!xdata) {
  		fprintf(stderr,"not enough memory for XImage-data");
-@@ -32,9 +41,11 @@
+@@ -32,9 +42,11 @@
  	}
  
  // create the XImage
@@ -43,7 +44,7 @@
  
  	if (!ximage) {
  		fprintf(stderr,"\n*** can't allocate ximage.\n" );
-@@ -47,9 +58,23 @@
+@@ -47,9 +59,23 @@
  		register const byte	*org  = Data();
  		register int	j,i;
  
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list