From johans@stack.nl  Thu Sep 15 10:16:16 2005
Return-Path: <johans@stack.nl>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id D416D16A41F
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 15 Sep 2005 10:16:16 +0000 (GMT)
	(envelope-from johans@stack.nl)
Received: from mailhost.stack.nl (vaak.stack.nl [131.155.140.140])
	by mx1.FreeBSD.org (Postfix) with ESMTP id EDFAD43D49
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 15 Sep 2005 10:16:14 +0000 (GMT)
	(envelope-from johans@stack.nl)
Received: from hammer.stack.nl (hammer.stack.nl [IPv6:2001:610:1108:5010::153])
	by mailhost.stack.nl (Postfix) with ESMTP id 69A20A3009
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 15 Sep 2005 12:16:13 +0200 (CEST)
Received: by hammer.stack.nl (Postfix, from userid 801)
	id 1CC2F63F7; Thu, 15 Sep 2005 12:16:12 +0200 (CEST)
Message-Id: <20050915101612.1CC2F63F7@hammer.stack.nl>
Date: Thu, 15 Sep 2005 12:16:12 +0200 (CEST)
From: Johan van Selst <johans@stack.nl>
Reply-To: Johan van Selst <johans@stack.nl>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: www/wsmake: unbreak on !i386
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         86150
>Category:       ports
>Synopsis:       www/wsmake: unbreak on !i386
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    barner
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 15 10:20:12 GMT 2005
>Closed-Date:    Thu Sep 15 13:02:30 GMT 2005
>Last-Modified:  Thu Sep 15 13:02:30 GMT 2005
>Originator:     Johan van Selst
>Release:        FreeBSD 6.0-BETA4 amd64
>Organization:
>Environment:
System: FreeBSD hammer.stack.nl 6.0-BETA4 FreeBSD 6.0-BETA4 #2: Fri Sep 9 18:52:55 CEST 2005 root@hammer.stack.nl:/usr/obj/usr/src/sys/HAMMER amd64


	
>Description:
	

	This patch makes the port work on amd64 and probably other archs.

	Update MASTER_SITES while were at it, but note that SF doesn't
	provide the examples and documentation either.

>How-To-Repeat:
	
>Fix:

	

	va_end() expects a va_list as argument.

	This patch introduces:
	 wsmake/files/patch-libwsmake_wsUtil.cpp
	 wsmake/files/patch-libwsmake_wsUtil.h

diff -uNr wsmake/Makefile wsmake/Makefile
--- wsmake/Makefile	Thu Nov 25 11:15:32 2004
+++ wsmake/Makefile	Thu Sep 15 12:09:41 2005
@@ -8,8 +8,8 @@
 PORTNAME=	wsmake
 PORTVERSION=	0.6.4
 CATEGORIES=	www
-MASTER_SITES=	http://www.wsmake.org/dwnlds/stable/ \
-		http://www.wsmake.org/docs/
+MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR=	wsmake
 DISTFILES=	${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} examples.tar.gz
 DIST_SUBDIR=	${PORTNAME}
 EXTRACT_ONLY=	${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
@@ -26,10 +26,6 @@
 .endif
 
 .include <bsd.port.pre.mk>
-
-.if ${ARCH} != "i386"
-BROKEN=		"Does not compile on !i386"
-.endif
 
 post-patch:
 	@${REINPLACE_CMD} -e 's,void\*,char\*,g' ${WRKSRC}/libwsmake/wsUtil.cpp
diff -uNr wsmake/files/patch-libwsmake_wsUtil.cpp wsmake/files/patch-libwsmake_wsUtil.cpp
--- wsmake/files/patch-libwsmake_wsUtil.cpp	Thu Jan  1 01:00:00 1970
+++ wsmake/files/patch-libwsmake_wsUtil.cpp	Thu Sep 15 09:41:22 2005
@@ -0,0 +1,17 @@
+--- libwsmake/wsUtil.cpp.orig	Thu Sep 15 09:39:57 2005
++++ libwsmake/wsUtil.cpp	Thu Sep 15 09:37:15 2005
+@@ -709,12 +709,12 @@ void std::__wsmake_set_quiet(int quiet)
+   }
+ }
+ 
+-void std::__wsmake_print_it(FILE *out, const char *output, const va_list *ap)
++void std::__wsmake_print_it(FILE *out, const char *output, va_list *ap)
+ {
+   if(__wsmake_quiet) return;
+ 
+   vfprintf(out,output,*ap);
+-  va_end((char*&)*ap);
++  va_end(*ap);
+ }
+ 
+ #ifdef DEBUG
diff -uNr wsmake/files/patch-libwsmake_wsUtil.h wsmake/files/patch-libwsmake_wsUtil.h
--- wsmake/files/patch-libwsmake_wsUtil.h	Thu Jan  1 01:00:00 1970
+++ wsmake/files/patch-libwsmake_wsUtil.h	Thu Sep 15 09:41:16 2005
@@ -0,0 +1,11 @@
+--- libwsmake/wsUtil.h.orig	Thu Sep 15 09:39:51 2005
++++ libwsmake/wsUtil.h	Thu Sep 15 09:38:34 2005
+@@ -77,7 +77,7 @@ namespace std
+   void __wsmake_print_error(const char *, ...);
+   void __wsmake_print(const char *, ...);
+   void __wsmake_print(int, const char *, ...);
+-  void __wsmake_print_it(FILE *, const char *, const va_list *);
++  void __wsmake_print_it(FILE *, const char *, va_list *);
+ }
+ 
+ #endif /* __WSUTIL_H__ */

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->barner 
Responsible-Changed-By: barner 
Responsible-Changed-When: Thu Sep 15 12:29:58 GMT 2005 
Responsible-Changed-Why:  
Grab. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=86150 
State-Changed-From-To: open->closed  
State-Changed-By: barner 
State-Changed-When: Thu Sep 15 13:02:15 GMT 2005 
State-Changed-Why:  
Committed, thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=86150 
>Unformatted:
