ports/162594: [patch] devel/lemon: respect CC

Jan Beich jbeich at tormail.net
Tue Nov 15 19:40:09 UTC 2011


>Number:         162594
>Category:       ports
>Synopsis:       [patch] devel/lemon: 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 Nov 15 19: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:
Currently the port does not respect CC because it ignores MAKE_ENV. And bsd.prog.mk
usage has no benefit over basic targets in sys.mk so just drop dependency on it.
While `-g' is governed by WITH_DEBUG in bsd.port.mk, i.e. the binary is always
stripped by INSTALL_PROGRAM unless STRIP is undefined/empty.

Alternatively, one can prepend ${MAKE_ENV} before ${MAKE}.
>How-To-Repeat:
http://pointyhat.freebsd.org/errorlogs/amd64-errorlogs/e.9-exp.20110723205754/lemon-1.69.log
>Fix:
--- cc.diff begins here ---
Index: devel/lemon/Makefile
===================================================================
RCS file: /a/.csup/ports/devel/lemon/Makefile,v
retrieving revision 1.12
diff -u -p -r1.12 Makefile
--- devel/lemon/Makefile	4 Aug 2009 00:40:45 -0000	1.12
+++ devel/lemon/Makefile	15 Nov 2011 14:30:23 -0000
@@ -15,16 +15,13 @@ MAINTAINER=	vmagerya at gmail.com
 COMMENT=	An LALR(1) parser generator. Similar in function to yacc and bison
 
 USE_BZIP2=	yes
+MAKEFILE=	/dev/null
+ALL_TARGET=	${PORTNAME}
 
 post-patch:
 	${REINPLACE_CMD} -e 's| = pathsearch(.*| = "${DATADIR}/lempar.c";|' \
 		${WRKSRC}/lemon.c
 
-do-build:
-	cd ${WRKSRC} && ${MAKE} PROG=lemon NOMAN=1 NO_MAN=1 \
-		CFLAGS="-g ${CFLAGS}" \
-		-f /usr/share/mk/bsd.prog.mk
-
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/lemon ${PREFIX}/bin/
 	${MKDIR} ${DATADIR}
--- cc.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list