ports/58143: [bento fix] irc/dancer: fix build on -CURRENT
Clement Laforet
sheepkiller at cultdeadsheep.org
Thu Oct 16 21:20:20 UTC 2003
>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: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Thu Oct 16 14:20:16 PDT 2003
>Closed-Date:
>Last-Modified:
>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 at 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:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list