Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Nov 2011 14:08:30 +0300
From:      Jan Beich <jbeich@tormail.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/162921: [patch] devel/bglibs: unbreak build with clang
Message-ID:  <1RUz6B-0001rg-15@internal.tormail.net>
Resent-Message-ID: <201111281120.pASBK8wN072553@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1RUz6B-0001rg-15>