Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Nov 2011 10:28:08 -0900
From:      Jan Beich <jbeich@tormail.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/162538: [patch] lang/nbfc: respect CC/CFLAGS
Message-ID:  <1RPgy9-000HA6-KL@internal.tormail.net>
Resent-Message-ID: <201111132050.pADKoC2t042346@freefall.freebsd.org>

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

>Number:         162538
>Category:       ports
>Synopsis:       [patch] lang/nbfc: 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:12 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/nbfc-0.1.log
>Fix:
--- cc.diff begins here ---
Index: lang/nbfc/Makefile
===================================================================
RCS file: /a/.csup/ports/lang/nbfc/Makefile,v
retrieving revision 1.1
diff -u -p -r1.1 Makefile
--- lang/nbfc/Makefile	29 May 2008 19:14:47 -0000	1.1
+++ lang/nbfc/Makefile	13 Nov 2011 19:26:26 -0000
@@ -17,8 +17,11 @@ MAN1=	nbfc.1
 
 PLIST_FILES=	bin/nbfc
 
-post-patch:
-	${REINPLACE_CMD} -e 's|/usr|${PREFIX}|g;s|bison -y|yacc -|g' \
+post-patch:	.SILENT
+	${REINPLACE_CMD} -e 's|/usr|${PREFIX}|g' \
+		-e 's|bison -y|${YACC} -|g' \
+		-e 's/gcc/$$(CC) $$(CFLAGS)/' \
+		-e 's/-g//' -e 's/-O4//' \
 		${WRKSRC}/Makefile
 
 .include <bsd.port.mk>
--- cc.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?1RPgy9-000HA6-KL>