Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Nov 2011 11:37:04 +0600
From:      Jan Beich <jbeich@tormail.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/162913: [patch] lang/rexx-wrapper: respect CC/CFLAGS
Message-ID:  <1RUu0T-000NVS-VK@internal.tormail.net>
Resent-Message-ID: <201111280550.pAS5o9mZ060415@freefall.freebsd.org>

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

>Number:         162913
>Category:       ports
>Synopsis:       [patch] lang/rexx-wrapper: 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:   Mon Nov 28 05:50:08 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Jan Beich
>Release:        FreeBSD 10.0-CURRENT amd64
>Organization:
>Environment:
>Description:
>How-To-Repeat:
http://pointyhat-west.isc.freebsd.org/errorlogs/amd64-errorlogs/e.9-exp-clang.20111126065358.pointyhat-west/rexx-wrapper-2.4.log
>Fix:
--- cc.diff begins here ---
Index: lang/rexx-wrapper/Makefile
===================================================================
RCS file: /a/.csup/ports/lang/rexx-wrapper/Makefile,v
retrieving revision 1.4
diff -u -p -r1.4 Makefile
--- lang/rexx-wrapper/Makefile	22 Aug 2009 00:24:34 -0000	1.4
+++ lang/rexx-wrapper/Makefile	28 Nov 2011 05:35:56 -0000
@@ -23,4 +23,12 @@ GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--with-rexx=regina
 DATADIR=	${PREFIX}/share/rexx${PORTNAME}
 
+post-patch:	.SILENT
+	@${REINPLACE_CMD} -Ee "/^compiler\.unix/s,'.*','${CC:T}'," \
+		-e "s,cc\.cc = .*,cc.${CC:T} = '${CC}'," \
+		-e "/ opt/s/-[Og][^' ]?//" \
+		-e "s,cflags\. = '(.*)',cflags. = '\1 ${CFLAGS}'," \
+		${WRKSRC}/rexxwrap.cmd
+	@${REINPLACE_CMD} 's/-compiler=$$(CC/&:T/' ${WRKSRC}/Makefile.in
+
 .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?1RUu0T-000NVS-VK>