Date: Sun, 21 Nov 2010 19:07:01 GMT From: Chris Rees <utisoft@gmail.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/152456: Fix port: sysutils/busybox Stop breakage on FreeBSD 8+ Message-ID: <201011211907.oALJ716n065546@amnesiac.bayofrum.net> Resent-Message-ID: <201011211920.oALJK7kh035331@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011211907.oALJ716n065546>