Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Dec 2011 11:32:30 -0900
From:      Jan Beich <jbeich@tormail.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/163172: [patch] biology/primer3: respect CC
Message-ID:  <1RZUUb-0000uh-6P@internal.tormail.net>
Resent-Message-ID: <201112102140.pBALe8Wn082986@freefall.freebsd.org>

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

>Number:         163172
>Category:       ports
>Synopsis:       [patch] biology/primer3: 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:   Sat Dec 10 21:40:08 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:
While here, use `+=' consistently for *FLAGS.
>How-To-Repeat:
http://pointyhat.freebsd.org/errorlogs/amd64-errorlogs/e.9-exp.20110723205754/primer3-1.1.4.log
>Fix:
--- cc.diff begins here ---
Index: biology/primer3/Makefile
===================================================================
RCS file: /a/.csup/ports/biology/primer3/Makefile,v
retrieving revision 1.13
diff -u -p -r1.13 Makefile
--- biology/primer3/Makefile	29 Dec 2010 20:04:12 -0000	1.13
+++ biology/primer3/Makefile	10 Dec 2011 20:29:22 -0000
@@ -19,9 +19,10 @@ DOCUMENTS=	README.txt example
 
 post-patch:
 	@${REINPLACE_CMD} \
+		-e 's#^CC *=#CC ?=#;' \
 		-e 's#^CFLAGS.*#CFLAGS  += \$$\(CC_OPTS\)#;' \
 		-e 's#CC_OPTS = -g#CC_OPTS =#;' \
-		-e 's#LDFLAGS = -g#LDFLAGS ?=#;' \
+		-e 's#LDFLAGS = -g#LDFLAGS +=#;' \
 		-e 's#^WHITEHEAD_SPECIFIC_HACK.*##;' \
 		${WRKDIR}/src/Makefile
 
--- 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?1RZUUb-0000uh-6P>