From sheepkiller@cultdeadsheep.org  Thu Oct 16 14:11:47 2003
Return-Path: <sheepkiller@cultdeadsheep.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 5B15816A4B3
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 16 Oct 2003 14:11:47 -0700 (PDT)
Received: from cultdeadsheep.org (charon.cultdeadsheep.org [80.65.226.72])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 117E643FDD
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 16 Oct 2003 14:11:42 -0700 (PDT)
	(envelope-from sheepkiller@cultdeadsheep.org)
Received: (qmail 56818 invoked by uid 85); 16 Oct 2003 23:11:40 +0200
Received: from sheepkiller@cultdeadsheep.org by goofy.cultdeadsheep.org by uid 82 with qmail-scanner-1.20rc2 
 ( Clear:RC:1:. 
 Processed in 0.300981 secs); 16 Oct 2003 21:11:40 -0000
Received: from lucifer.cultdeadsheep.org (192.168.0.2)
  by goofy.cultdeadsheep.org with SMTP; 16 Oct 2003 23:11:39 +0200
Received: by lucifer.cultdeadsheep.org (sSMTP sendmail emulation); Thu, 16 Oct 2003 23:11:10 +0200
Message-Id: <20031016211142.117E643FDD@mx1.FreeBSD.org>
Date: Thu, 16 Oct 2003 23:11:10 +0200
From: Clement Laforet <sheepkiller@cultdeadsheep.org>
Reply-To: Clement Laforet <sheepkiller@cultdeadsheep.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc: Clement Laforet <sheepkiller@cultdeadsheep.org>
Subject: [bento fix] irc/dancer: fix build on -CURRENT
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         58143
>Category:       ports
>Synopsis:       [bento fix] irc/dancer: fix build on -CURRENT
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 16 14:20:16 PDT 2003
>Closed-Date:    Thu Oct 16 23:55:29 PDT 2003
>Last-Modified:  Thu Oct 16 23:55:29 PDT 2003
>Originator:     Clement Laforet
>Release:        FreeBSD 5.1-CURRENT i386
>Organization:
cotds.org
>Environment:
System: FreeBSD lucifer.cultdeadsheep.org 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Mon Sep 22 08:20:10 CEST 2003 clement@lucifer.cultdeadsheep.org:/usr/obj/usr/src/sys/LUCIFER i386


	
>Description:
	Fix build on -CURRENT
	New file:
		dancer/files/patch-src::list.h
>How-To-Repeat:
	See bento:
		http://bento.freebsd.org/errorlogs/i386-5-latest/dancer-4.16.log
>Fix:

	

--- dancer.diff begins here ---
Index: dancer/Makefile
===================================================================
RCS file: /WORK/REPO/ports/irc/dancer/Makefile,v
retrieving revision 1.4
diff -u -r1.4 Makefile
--- dancer/Makefile	24 Sep 2003 08:37:36 -0000	1.4
+++ dancer/Makefile	16 Oct 2003 20:51:00 -0000
@@ -27,7 +27,8 @@
 .include <bsd.port.pre.mk>
 
 .if ${OSVERSION} > 500000
-BROKEN=		Does not compile
+LDFLAGS+=	-lm
+MAKE_ARGS+=	LDFLAGS="${LDFLAGS}"
 .endif
 
 .include <bsd.port.post.mk>
Index: dancer/files/patch-src::list.h
===================================================================
RCS file: dancer/files/patch-src::list.h
diff -N dancer/files/patch-src::list.h
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ dancer/files/patch-src::list.h	16 Oct 2003 20:51:00 -0000
@@ -0,0 +1,15 @@
+--- src/list.h.orig	Mon Nov 13 03:42:45 2000
++++ src/list.h	Thu Oct 16 22:36:07 2003
+@@ -52,10 +52,10 @@
+   ((NULL == (list)) || (NULL == ((header *)(list))->next))
+ 
+ /* NewList creates a header for a list of the specified type */
+-#define NewList(type) ( ##type## *)calloc(1, sizeof( ##type## ))
++#define NewList(type) (type *)calloc(1, sizeof(type))
+ 
+ /* NewEntry allocates a new entry of the specified type */
+-#define NewEntry(type) ( ##type## *)calloc(1, sizeof( ##type## ))
++#define NewEntry(type) (type *)calloc(1, sizeof(type))
+ 
+ #define RemoveFirst(list) RemoveEntry((list), (list).h->next)
+ #define RemoveLast(list)  RemoveEntry((list), (list).h->prev)
--- dancer.diff ends here ---


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: erwin 
State-Changed-When: Thu Oct 16 23:54:22 PDT 2003 
State-Changed-Why:  
Great, thanks! I used a lot of time tracking this down, 
without finding a solution... BTW the cvs version works 
out of the box, but the author still hasn't made a new release yet. 

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