ports/95352: [patch] unbreak www/links1 on recent -current
Antoine Brodin
antoine.brodin at laposte.net
Wed Apr 5 15:40:41 UTC 2006
>Number: 95352
>Category: ports
>Synopsis: [patch] unbreak www/links1 on recent -current
>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 Apr 05 15:40:17 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Antoine Brodin
>Release: FreeBSD 7.0-CURRENT i386
>Organization:
none
>Environment:
System: FreeBSD barton.dreadbsd.org 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Sat Apr 1 14:12:04 CEST 2006 root at barton.dreadbsd.org:/usr/obj/usr/src/sys/BARTON i386
>Description:
www/links1 is broken after strtonum import
maintainer is CCed
>How-To-Repeat:
On a recent -current:
cd /usr/ports/www/links1 && make
...
cc -DHAVE_CONFIG_H -I. -I. -I. -O2 -fno-strict-aliasing -pipe -march=athlon-xp -c kbdbind.c
kbdbind.c:78: error: conflicting types for 'strtonum'
/usr/include/stdlib.h:275: error: previous declaration of 'strtonum' was here
kbdbind.c:78: error: conflicting types for 'strtonum'
/usr/include/stdlib.h:275: error: previous declaration of 'strtonum' was here
*** Error code 1
>Fix:
from OpenBSD
( http://www.openbsd.org/cgi-bin/cvsweb/ports/www/links/patches/patch-kbdbind_c?rev=1.1&content-type=text/x-cvsweb-markup )
--- links1.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/www/links1/Makefile,v
retrieving revision 1.4
diff -u -p -r1.4 Makefile
--- Makefile 6 Feb 2004 11:37:57 -0000 1.4
+++ Makefile 5 Apr 2006 15:24:19 -0000
@@ -24,4 +24,7 @@ NO_LATEST_LINK= yes
MAN1= links.1
+post-patch:
+ @${REINPLACE_CMD} -e 's|strtonum(|str_to_num(|g' ${WRKSRC}/kbdbind.c
+
.include <bsd.port.mk>
--- links1.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list