ports/64649: devel/ossp-ex fix compile error on amd64

davidyu at r531a.ee.ntu.edu.tw davidyu at r531a.ee.ntu.edu.tw
Wed Mar 24 09:50:21 UTC 2004


>Number:         64649
>Category:       ports
>Synopsis:       devel/ossp-ex fix compile error on amd64
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 24 01:50:21 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Chia-Hsing Yu
>Release:        FreeBSD 5.2.1-RELEASE-p3 amd64
>Organization:
National Taiwan U. Speech Lab
>Environment:
System: FreeBSD amd 5.2.1-RELEASE-p3 FreeBSD 5.2.1-RELEASE-p3 #0: Wed Mar 24 12:59:56 CST 2004 root at amd:/usr/obj/usr/src/sys/AMD64 amd64

>Description:
	fix devel/ossp-ex compile error on amd64
>How-To-Repeat:
	
>Fix:
diff -ruN ossp-ex.orig/Makefile ossp-ex/Makefile
--- ossp-ex.orig/Makefile	Wed Mar 24 17:43:16 2004
+++ ossp-ex/Makefile	Wed Mar 24 17:42:32 2004
@@ -9,13 +9,13 @@
 
 PORTNAME=	ex
 PORTVERSION=	1.0.2
-PORTREVISION=	1
+PORTREVISION=	2
 PORTEPOCH=	0
 CATEGORIES=	devel
 MASTER_SITES=	ftp://ftp.ossp.org/pkg/lib/ex/
 PKGNAMEPREFIX=	ossp-
 
-MAINTAINER=	ports at FreeBSD.org
+MAINTAINER=	me at davidyu.org
 COMMENT=	OSSP ex is a small exception handling library for use in C
 
 USE_GMAKE=	yes
@@ -25,8 +25,8 @@
 
 .include <bsd.port.pre.mk>
 
-.if ${ARCH} == "alpha" || ${ARCH} == "amd64"
-BROKEN=		"Does not compile on alpha or amd64"
+.if ${ARCH} == "alpha"
+BROKEN=		"Does not compile on alpha"
 .endif
 
 .include "${FILESDIR}/manpages.mk"
diff -ruN ossp-ex.orig/files/patch-ts.c ossp-ex/files/patch-ts.c
--- ossp-ex.orig/files/patch-ts.c	Thu Jan  1 08:00:00 1970
+++ ossp-ex/files/patch-ts.c	Wed Mar 24 17:37:01 2004
@@ -0,0 +1,11 @@
+--- ts.c.orig	Wed Mar 24 17:36:35 2004
++++ ts.c	Wed Mar 24 17:36:49 2004
+@@ -202,7 +202,7 @@
+ 
+     if (format == NULL || ap == NULL)
+         return NULL;
+-    ap2 = ap;
++    va_copy(ap2, ap);
+     if ((n = ts_suite_mvxprintf(NULL, 0, format, ap)) == -1)
+         return NULL;
+     if ((buffer = (char *)malloc(n+1)) == NULL)
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list