ports/161416: [patch] lang/ccl: fails to build if is set CCL_DEFAULT_DIRECTORY

Nali Toja nalitoja at gmail.com
Sun Oct 9 08:40:02 UTC 2011


>Number:         161416
>Category:       ports
>Synopsis:       [patch] lang/ccl: fails to build if is set CCL_DEFAULT_DIRECTORY
>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 09 08:40:01 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Nali Toja
>Release:        FreeBSD 10.0-CURRENT amd64
>Organization:
>Environment:
stumpwm
>Description:
The port fails to build if make(1) is a descendant of ccl and inherits CCL_DEFAULT_DIRECTORY.
>How-To-Repeat:
$ export CCL_DEFAULT_DIRECTORY=/nonexistent
$ make

$ export CCL_DEFAULT_DIRECTORY= # null value
$ make
>Fix:
--- unsetenv.diff begins here ---
Index: lang/ccl/Makefile
===================================================================
RCS file: /a/.csup/ports/lang/ccl/Makefile,v
retrieving revision 1.10
diff -u -p -r1.10 Makefile
--- lang/ccl/Makefile	17 Aug 2011 11:53:19 -0000	1.10
+++ lang/ccl/Makefile	9 Oct 2011 08:28:14 -0000
@@ -54,11 +54,11 @@ post-patch:
 do-build:
 	@${RM} -f ${WRKSRC}/fx86cl ${WRKSRC}/fx86cl64
 	@cd ${WRKSRC}/lisp-kernel/freebsd${LISP_ARCH} && ${MAKE} && ${RM} -f *.o
-	@cd ${WRKSRC} && if ! ${ECHO_CMD} | ./${FX86CL} --batch --quiet >/dev/null 2>&1; then \
+	@cd ${WRKSRC} && if ! ${ECHO_CMD} | ${SETENV} -u CCL_DEFAULT_DIRECTORY ./${FX86CL} --batch --quiet >/dev/null 2>&1; then \
 		${ECHO_MSG} "===>  This CPU doesn't support the SSE2 instruction set: cannot build port."; \
 		exit 1; \
 	fi
-	@cd ${WRKSRC} && ${ECHO_CMD} | ./${FX86CL} --no-init --batch --quiet \
+	@cd ${WRKSRC} && ${ECHO_CMD} | ${SETENV} -u CCL_DEFAULT_DIRECTORY ./${FX86CL} --no-init --batch --quiet \
 		--eval "(ccl:rebuild-ccl :full t)" \
 		--eval "(quit)"
 
@@ -71,7 +71,7 @@ do-install:
 	@${INSTALL_SCRIPT} ${WRKDIR}/ccl.sh ${PREFIX}/bin/ccl
 
 post-install:
-	@cd ${WRKSRC} && ${ECHO_CMD} | ./${FX86CL} --no-init --batch --quiet \
+	@cd ${WRKSRC} && ${ECHO_CMD} | ${SETENV} -u CCL_DEFAULT_DIRECTORY ./${FX86CL} --no-init --batch --quiet \
 		--eval "(require 'asdf)" \
 		--eval '(load "/usr/local/etc/asdf-init.lisp")' \
 		--eval "(quit)"
--- unsetenv.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list