Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Oct 2011 20:10:00 +0000
From:      Nali Toja <nalitoja@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/161943: [patch] lang/ucc: respect CC/CFLAGS, drop USE_GMAKE
Message-ID:  <86sjmjxyef.fsf@gmail.com>
Resent-Message-ID: <201110232040.p9NKe1c0030018@freefall.freebsd.org>

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

>Number:         161943
>Category:       ports
>Synopsis:       [patch] lang/ucc: respect CC/CFLAGS, drop USE_GMAKE
>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 Oct 23 20:40:00 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Nali Toja
>Release:        FreeBSD 10.0-CURRENT amd64
>Organization:
>Environment:
# slightly different from pointyhat
$ export PATH=~/.bin:$PATH
$ for cc in CC cc c++ gcc g++; do ln -s /usr/bin/false ~/.bin/${cc}; done
>Description:
>How-To-Repeat:
http://pointyhat.freebsd.org/errorlogs/amd64-errorlogs/e.9-exp.20110723205754/ucc-1.6.0.log
>Fix:
--- build.diff begins here ---
Index: lang/ucc/Makefile
===================================================================
RCS file: /a/.csup/ports/lang/ucc/Makefile,v
retrieving revision 1.2
diff -u -p -r1.2 Makefile
--- lang/ucc/Makefile	22 Aug 2009 00:24:36 -0000	1.2
+++ lang/ucc/Makefile	23 Oct 2011 20:07:28 -0000
@@ -15,9 +15,19 @@ MAINTAINER=	wenheping@gmail.com
 COMMENT=	C Compiler Which Implements the ANSI C89 Standard
 
 USE_ZIP=	yes
+USE_DOS2UNIX=	yes
 WRKSRC=		${WRKDIR}/${PORTNAME}
 
-USE_GMAKE=	yes
 USE_LDCONFIG=	yes
 
+post-patch:	.SILENT
+	${REINPLACE_CMD} 's/gmake/$$(MAKE)/' \
+		${WRKSRC}/Makefile
+	${REINPLACE_CMD} -e '/^CC[[:blank:]]*=/d' \
+		-e '/^CFLAGS/ { s/=/+=/; s/-g//; }' \
+		-e '/:[[:blank:]]/s/\.c/.o/g' \
+		-e 's/$$^/$$>/g' \
+		${WRKSRC}/driver/Makefile \
+		${WRKSRC}/ucl/Makefile
+
 .include <bsd.port.mk>
--- build.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?86sjmjxyef.fsf>