pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/build mk/build: in build-env, output BUILD_DIRS rel...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/943b61154758
branches:  trunk
changeset: 400701:943b61154758
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Mon Sep 02 02:59:47 2019 +0000

description:
mk/build: in build-env, output BUILD_DIRS relative to WRKSRC

diffstat:

 mk/build/build.mk |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r 756334e53412 -r 943b61154758 mk/build/build.mk
--- a/mk/build/build.mk Mon Sep 02 02:54:57 2019 +0000
+++ b/mk/build/build.mk Mon Sep 02 02:59:47 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: build.mk,v 1.27 2019/09/02 02:54:57 rillig Exp $
+# $NetBSD: build.mk,v 1.28 2019/09/02 02:59:47 rillig Exp $
 #
 # This file defines what happens in the build phase, excluding the
 # self-test, which is defined in test.mk.
@@ -203,8 +203,9 @@
 build-env: .PHONY ${_PKGSRC_BARRIER:Ubarrier:D_build-env}
 _build-env: .PHONY configure
        @${STEP_MSG} "Entering the build environment for ${PKGNAME}"
-.if ${BUILD_DIRS:[#]} > 1
-       @${ECHO_MSG} "The BUILD_DIRS are: "${BUILD_DIRS:Q}
+.if ${BUILD_DIRS:[#]} > 1 || ${BUILD_DIRS} != ${WRKSRC}
+       @${ECHO_MSG} "The BUILD_DIRS are:" \
+               ${BUILD_DIRS:S,^${WRKSRC}$,.,:S,^${WRKSRC}/,,:Q}
 .endif
        ${RUN}${_ULIMIT_CMD}                                            \
        cd ${WRKSRC} && ${PKGSRC_SETENV} ${MAKE_ENV} ${BUILD_ENV_SHELL}



Home | Main Index | Thread Index | Old Index