ports/162532: [patch] lang/alisp: respect CC/CFLAGS/STRIP

Jan Beich jbeich at tormail.net
Sun Nov 13 20:50:10 UTC 2011


>Number:         162532
>Category:       ports
>Synopsis:       [patch] lang/alisp: respect CC/CFLAGS/STRIP
>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 Nov 13 20:50:10 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/alisp-20060917.log
>Fix:
--- cc.diff begins here ---
Index: lang/alisp/Makefile
===================================================================
RCS file: /a/.csup/ports/lang/alisp/Makefile,v
retrieving revision 1.21
diff -u -p -r1.21 Makefile
--- lang/alisp/Makefile	8 Jan 2009 16:58:28 -0000	1.21
+++ lang/alisp/Makefile	13 Nov 2011 18:08:31 -0000
@@ -20,7 +20,12 @@ USE_LDCONFIG=	yes
 MAKE_ENV+=	BINOWN=${BINOWN} \
 		BINGRP=${BINGRP}
 
-post-patch:
+post-patch:	.SILENT
+	${REINPLACE_CMD} -e 's/cc/$$(CC)/' \
+		-e '/^CFLAGS/{s/=/+=/;s/-g//;s/-O//;}' \
+		-e '/strip alisp/d' \
+		-e '/install.*alisp /s/install/& ${STRIP}/' \
+		${WRKSRC}/Makefile
 	${REINPLACE_CMD} -e 's,/usr/local,${PREFIX},g' ${WRKSRC}/alisp.h
 
 .include <bsd.port.mk>
--- cc.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list