ports/174744: devel/coccinelle fix build with clang

Pawel Pekala pawel at FreeBSD.org
Thu Dec 27 19:50:01 UTC 2012


>Number:         174744
>Category:       ports
>Synopsis:       devel/coccinelle fix build with clang
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 27 19:50:00 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Pawel Pekala
>Release:        10.0-CURRENT
>Organization:
>Environment:
FreeBSD blaviken.slowicza.org 10.0-CURRENT FreeBSD 10.0-CURRENT #2: Fri Nov 30 20:03:01 CET 2012     corn at blaviken.slowicza.org:/usr/obj/amd64.amd64/usr/src/sys/BLAVIKEN64  amd64

>Description:
This patch fixes port build when compiled with clang
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -urN /usr/ports/devel/coccinelle/Makefile devel/coccinelle/Makefile
--- /usr/ports/devel/coccinelle/Makefile	2012-11-17 06:55:38.000000000 +0100
+++ devel/coccinelle/Makefile	2012-12-27 20:25:08.000000000 +0100
@@ -20,4 +20,8 @@
 
 MAN1=		spatch.1
 
+post-patch:
+	@${REINPLACE_CMD} 's|CAMLreturn0|return 0|' \
+		${WRKSRC}/pycaml/pycaml_ml.c
+
 .include <bsd.port.mk>


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list