ports/163230: [patch] www/clearsilver: respect CC (depend)

Jan Beich jbeich at tormail.net
Tue Dec 13 06:10:15 UTC 2011


>Number:         163230
>Category:       ports
>Synopsis:       [patch] www/clearsilver: respect CC (depend)
>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:   Tue Dec 13 06:10: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/clearsilver-0.10.5.log
>Fix:
--- cc.diff begins here ---
Index: www/clearsilver/Makefile
===================================================================
RCS file: /a/.csup/ports/www/clearsilver/Makefile,v
retrieving revision 1.18
diff -u -p -r1.18 Makefile
--- www/clearsilver/Makefile	17 Jul 2007 23:57:53 -0000	1.18
+++ www/clearsilver/Makefile	13 Dec 2011 03:41:49 -0000
@@ -69,6 +69,8 @@ post-patch:
 	@${REINPLACE_CMD} -E 's,(\$$\(PYTHON\)),CFLAGS="" \1,g' ${WRKSRC}/python/Makefile
 	@# insert -fPIC into CFLAGS to fix non-i386 builds
 	@${REINPLACE_CMD} -e 's|= @CFLAGS@|= @CFLAGS@ -fPIC|g' ${WRKSRC}/rules.mk.in
+	@# don't hardcode gcc for make depend
+	@${REINPLACE_CMD} -e '/Makefile.depends:/,/^$$/s/gcc/$$(CC)/' ${WRKSRC}/rules.mk.in
 	@# Set PYTHON_SITE
 	@${REINPLACE_CMD} -E 's|(PYTHON=\$$.*)|\1;PYTHON_SITE="${PYTHONPREFIX_SITELIBDIR}"|g' ${WRKSRC}/configure
 	@# Create the features.h files that are needed to build
--- cc.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list