ports/162537: [patch] lang/fbbi: respect CC/CFLAGS
Jan Beich
jbeich at tormail.net
Sun Nov 13 20:50:12 UTC 2011
>Number: 162537
>Category: ports
>Synopsis: [patch] lang/fbbi: respect CC/CFLAGS
>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: Sun Nov 13 20:50:11 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Jan Beich
>Release: FreeBSD 10.0-CURRENT amd64
>Organization:
>Environment:
# slightly different from pointyhat
$ export PATH=~/.bin:$PATH
$ for cc in CC cc c++ gcc g++ cpp; do ln -s /usr/bin/false ~/.bin/${cc}; done
>Description:
>How-To-Repeat:
http://pointyhat.freebsd.org/errorlogs/amd64-errorlogs/e.9-exp.20110723205754/fbbi-2003.0326_1.log
>Fix:
--- cc.diff begins here ---
Index: lang/fbbi/Makefile
===================================================================
RCS file: /a/.csup/ports/lang/fbbi/Makefile,v
retrieving revision 1.7
diff -u -p -r1.7 Makefile
--- lang/fbbi/Makefile 6 Feb 2004 13:11:36 -0000 1.7
+++ lang/fbbi/Makefile 13 Nov 2011 19:15:34 -0000
@@ -20,6 +20,11 @@ USE_GMAKE= yes
WRKSRC= ${WRKDIR}/${DISTNAME}/src
+post-patch: .SILENT
+ ${REINPLACE_CMD} -e '/^CC/s/=/?=/' \
+ -e '/^CFLAGS/{s/=/+=/;s/-g//;s/-O//;}' \
+ ${WRKSRC}/Makefile
+
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/../bin/fbbi ${PREFIX}/bin
--- cc.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list