ports/162921: [patch] devel/bglibs: unbreak build with clang

Jan Beich jbeich at tormail.net
Mon Nov 28 11:20:08 UTC 2011


>Number:         162921
>Category:       ports
>Synopsis:       [patch] devel/bglibs: unbreak build with clang
>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:   Mon Nov 28 11:20:07 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Jan Beich
>Release:        FreeBSD 10.0-CURRENT amd64
>Organization:
>Environment:
>Description:
hasunsetenv test fails because main() has wrong return type
>How-To-Repeat:
http://pointyhat-west.isc.freebsd.org/errorlogs/amd64-errorlogs/e.9-exp-clang.20111122163211.pointyhat-west/bglibs-1.106,1.log
>Fix:
--- clang.diff begins here ----
Index: devel/bglibs/Makefile
===================================================================
RCS file: /a/.csup/ports/devel/bglibs/Makefile,v
retrieving revision 1.41
diff -u -p -r1.41 Makefile
--- devel/bglibs/Makefile	30 May 2011 12:28:18 -0000	1.41
+++ devel/bglibs/Makefile	28 Nov 2011 11:04:09 -0000
@@ -29,4 +28,7 @@ USE_LDCONFIG=	${BGLIBS_LIB}
 MAN1=		cli-generate.1
 
+post-patch:
+	${REINPLACE_CMD} '/main/s/void/int/' ${WRKSRC}/sys/try*.c
+
 do-configure:
 	${ECHO_CMD} "${CC} ${CFLAGS}"	> ${WRKSRC}/conf-cc
--- clang.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list