ports/164198: [patch] japanese/edict: unbreak build with clang
Jan Beich
jbeich at tormail.net
Mon Jan 16 10:30:07 UTC 2012
>Number: 164198
>Category: ports
>Synopsis: [patch] japanese/edict: 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 Jan 16 10:30:06 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Jan Beich
>Release: FreeBSD 10.0-CURRENT amd64
>Organization:
>Environment:
>Description:
>How-To-Repeat:
http://pointyhat-west.isc.freebsd.org/errorlogs/amd64-errorlogs/e.9-exp-clang.20120108021625.pointyhat-west/ja-edict-19990714_5.log.bz2
>Fix:
--- clang.diff begins here ---
Index: japanese/edict/Makefile
===================================================================
RCS file: /a/.csup/ports/japanese/edict/Makefile,v
retrieving revision 1.27
diff -u -p -r1.27 Makefile
--- japanese/edict/Makefile 7 Aug 2011 09:28:56 -0000 1.27
+++ japanese/edict/Makefile 16 Jan 2012 10:09:11 -0000
@@ -64,6 +64,10 @@ NO_WRKSUBDIR= yes
BROKEN= Fails to install on sparc64 with error 2
.endif
+post-patch:
+ @${GREP} -l '^main' ${WRKSRC}/*.c | ${XARGS} ${REINPLACE_CMD} \
+ -e '/argv/s/unsigned//'
+
do-extract:
@${RM} -rf ${WRKDIR}
@${MKDIR} ${WRKDIR}
--- clang.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list