ports/63884: mail/pgp4pine: fix on SPARC

Holger Lamm holger at e-gitt.net
Sun Mar 7 15:50:08 UTC 2004


>Number:         63884
>Category:       ports
>Synopsis:       mail/pgp4pine: fix on SPARC
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 07 07:50:08 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Holger Lamm
>Release:        FreeBSD 4.9-STABLE i386
>Organization:
>Environment:
System: FreeBSD gruft.de 4.9-STABLE FreeBSD 4.9-STABLE #39: Wed Mar 3 09:44:46 CET 2004 root at gruft.de:/usr/obj/usr/src/sys/EXPRESS i386


	
>Description:
Strange C construct is not compileable (little-endian platforms affected)
>How-To-Repeat:
	
>Fix:

diff -Nur pgp4pine.orig/Makefile pgp4pine/Makefile
--- pgp4pine.orig/Makefile	Sun Mar  7 16:35:49 2004
+++ pgp4pine/Makefile	Sun Mar  7 13:49:59 2004
@@ -36,10 +36,6 @@
 
 .include <bsd.port.pre.mk>
 
-.if ${ARCH} == "sparc64"
-BROKEN=		"Does not compile on sparc64"
-.endif
-
 # Post-patch
 #
 
diff -Nur pgp4pine.orig/files/patch-md5.c pgp4pine/files/patch-md5.c
--- pgp4pine.orig/files/patch-md5.c	Thu Jan  1 01:00:00 1970
+++ pgp4pine/files/patch-md5.c	Sun Mar  7 13:55:43 2004
@@ -0,0 +1,13 @@
+--- pgp4pine/md5.c.orig	Sun Mar  7 13:55:00 2004
++++ pgp4pine/md5.c	Sun Mar  7 13:55:02 2004
+@@ -288,8 +288,8 @@
+ 
+     p = hd->buf;
+ #ifdef WORDS_BIGENDIAN
+-#define X(a) do { *p++ = hd->##a	  ; *p++ = hd->##a >> 8;      \
+-		      *p++ = hd->##a >> 16; *p++ = hd->##a >> 24; } while(0)
++#define X(a) do { *p++ = (*hd).a	  ; *p++ = (*hd).a >> 8;      \
++		  *p++ = (*hd).a >> 16;     *p++ = (*hd).a >> 24; } while(0)
+ #else /* little endian */
+     /*#define X(a) do { *(u_int32_t*)p = hd->##a ; p += 4; } while(0)*/
+     /* Unixware's cpp doesn't like the above construct so we do it his way:
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list