Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Dec 2011 11:02:14 +0700
From:      Jan Beich <jbeich@tormail.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/163227: [patch] net-mgmt/rate: respect CC
Message-ID:  <1RaLSN-000H53-5q@internal.tormail.net>
Resent-Message-ID: <201112130610.pBD6ABYF090254@freefall.freebsd.org>

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

>Number:         163227
>Category:       ports
>Synopsis:       [patch] net-mgmt/rate: 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:   Tue Dec 13 06:10: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:
Override CC as well as CFLAGS/LDFLAGS from command line.
>How-To-Repeat:
http://pointyhat.freebsd.org/errorlogs/amd64-errorlogs/e.9-exp.20110723205754/rate-0.9.log
>Fix:
--- cc.diff begins here ---
Index: net-mgmt/rate/Makefile
===================================================================
RCS file: /a/.csup/ports/net-mgmt/rate/Makefile,v
retrieving revision 1.4
diff -u -p -r1.4 Makefile
--- net-mgmt/rate/Makefile	11 May 2006 22:49:43 -0000	1.4
+++ net-mgmt/rate/Makefile	13 Dec 2011 03:58:30 -0000
@@ -13,15 +13,10 @@ MASTER_SITES=	http://s-tech.elsat.net.pl
 MAINTAINER=	mich@FreeBSD.org
 COMMENT=	A traffic analysis command-line utility
 
+MAKE_ARGS=	${MAKE_ENV}
 LDFLAGS+=	-lcompat
 CFLAGS+=	-DOPEN_BSD=1 -DHAVE_REGEX -DSTREAM_ANALYZER -DIOCTL_GETWINSIZE -DAUTOSENSE_DLH
 
-post-patch:
-	@${REINPLACE_CMD} -e \
-	's|^CFLAGS.*$$|CFLAGS=${CFLAGS}|g ; \
-	s|^LDFLAGS.*$$|LDFLAGS=${LDFLAGS}|g ; \
-	s|gcc|${CC}|g' ${WRKSRC}/Makefile
-
 do-install:
 	${INSTALL_SCRIPT} ${WRKSRC}/rate ${PREFIX}/bin/rate
 	${INSTALL_MAN} ${WRKSRC}/doc/rate.1 ${PREFIX}/man/man1
--- 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?1RaLSN-000H53-5q>