Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Nov 2011 01:37:32 +0800
From:      Jan Beich <jbeich@tormail.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/162530: [patch] lang/chicken: respect CC
Message-ID:  <1RPgrg-000H2o-9e@internal.tormail.net>
Resent-Message-ID: <201111132050.pADKo92H042207@freefall.freebsd.org>

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

>Number:         162530
>Category:       ports
>Synopsis:       [patch] lang/chicken: respect CC
>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:09 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/chicken-4.7.0.log
>Fix:
--- cc.diff begins here ---
Index: lang/chicken/Makefile
===================================================================
RCS file: /a/.csup/ports/lang/chicken/Makefile,v
retrieving revision 1.45
diff -u -p -r1.45 Makefile
--- lang/chicken/Makefile	8 Oct 2011 21:24:53 -0000	1.45
+++ lang/chicken/Makefile	13 Nov 2011 17:26:39 -0000
@@ -35,7 +35,10 @@ MAKE_ARGS+=	HACKED_APPLY=
 
 post-patch:
 	@${REINPLACE_CMD} \
-		's|^DOCDIR = .*$$|DOCDIR = ${DOCSDIR}|' \
+		-e 's|^DOCDIR = .*$$|DOCDIR = ${DOCSDIR}|' \
+		-e '/^C_COMPILER/s|gcc|${CC}|' \
+		-e '/^CXX_COMPILER/s|g++|${CXX}|' \
+		-e '/^LIBRARIAN/s|ar|${AR}|' \
 		${WRKSRC}/defaults.make
 
 post-install:
--- 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?1RPgrg-000H2o-9e>