Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Feb 2004 20:37:22 -0800 (PST)
From:      Ade Lovett <ade@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        ade@FreeBSD.org
Subject:   ports/62247: bsd.port.mk WRKDIRPREFIX breakage
Message-ID:  <200402020437.i124bMIK052545@freefall.freebsd.org>
Resent-Message-ID: <200402020440.i124eGLY052604@freefall.freebsd.org>

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

>Number:         62247
>Category:       ports
>Synopsis:       bsd.port.mk WRKDIRPREFIX breakage
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 01 20:40:16 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Ade Lovett
>Release:        FreeBSD 4.9-STABLE i386
>Organization:
>Environment:

System environment irrelevant, affects 4.x and 5.x

>Description:

with WRKDIRPREFIX set, there are still a couple of areas where invocations
of make(1) within bsd.port.mk fail due to assumptions being made about
the current directory.

>How-To-Repeat:

set WRKDIRPREFIX, build a few ports, watch *carefully* for errors just
after install.

>Fix:

http://people.FreeBSD.org/~ade/bsd.port.mk_fix-make.patch


Index: bsd.port.mk
===================================================================
RCS file: /home/FreeBSD/cvs/ports/Mk/bsd.port.mk,v
retrieving revision 1.481
diff -u -1 -r1.481 bsd.port.mk
--- bsd.port.mk	23 Jan 2004 16:22:26 -0000	1.481
+++ bsd.port.mk	23 Jan 2004 22:28:20 -0000
@@ -3537,3 +3537,4 @@
 	then \
-	    if [ ! -z "`make www-site`" ]; then \
+		www_site=$$(cd ${.CURDIR} && ${MAKE} ${__softMAKEFLAGS} www-site); \
+	    if [ ! -z "$${www_site}" ]; then \
 			${ECHO_MSG}; \
@@ -3541,3 +3542,3 @@
 			${ECHO_MSG} "      status of this software, see the following webpage: "; \
-			${MAKE} www-site; \
+			${ECHO_MSG} "$${www_site}"; \
 		fi; \
@@ -3631,3 +3632,4 @@
 		${ECHO_MSG} "      to deinstall the port if this is a concern."; \
-	    if [ ! -z "`make www-site`" ]; then \
+		www_site=$$(cd ${.CURDIR} && ${MAKE} ${__softMAKEFLAGS} www-site); \
+	    if [ ! -z "$${www_site}" ]; then \
 			${ECHO_MSG}; \
@@ -3635,3 +3637,3 @@
 			${ECHO_MSG} "      status of this software, see the following webpage: "; \
-			${MAKE} www-site; \
+			${ECHO_MSG} "$${www_site}"; \
 		fi; \
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200402020437.i124bMIK052545>