ports/152456: Fix port: sysutils/busybox Stop breakage on FreeBSD 8+
Chris Rees
utisoft at gmail.com
Sun Nov 21 19:20:08 UTC 2010
>Number: 152456
>Category: ports
>Synopsis: Fix port: sysutils/busybox Stop breakage on FreeBSD 8+
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Nov 21 19:20:07 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Chris Rees
>Release: FreeBSD 8.1-RELEASE i386
>Organization:
>Environment:
System: FreeBSD amnesiac.bayofrum.net 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:55:53 UTC 2010 root at almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
>Description:
Busybox has been broken for a while since FreeBSD implemented dprintf in ~8.0. This patch renames the BusyBox function and so removes the collision.
>How-To-Repeat:
cd ${PORTSDIR}/sysutils/busybox && make TRYBROKEN=yes
>Fix:
From http://lists.busybox.net/pipermail/busybox/2005-October/050803.html
Rename the function bb_dprintf
--- busybox.diff begins here ---
diff -ruN busybox.orig/Makefile busybox/Makefile
--- busybox.orig/Makefile 2010-11-21 16:26:46.000000000 +0000
+++ busybox/Makefile 2010-11-21 18:57:07.000000000 +0000
@@ -25,10 +25,12 @@
.if ${ARCH} == "amd64"
BROKEN= does not compile
-.elif ${OSVERSION} >= 800000
-BROKEN= does not compile
.endif
+post-patch:
+ find ${WRKSRC} -name '*.[ch]' | ${XARGS} \
+ ${REINPLACE_CMD} -e 's/ dprintf(/ bb_dprintf(/g'
+
do-configure:
${CP} ${FILESDIR}/data-.config ${WRKSRC}/.config
cd ${WRKSRC} && ${GMAKE} oldconfig
--- busybox.diff ends here ---
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list