diff options
author | dbj <dbj@pkgsrc.org> | 2017-08-01 05:48:12 +0000 |
---|---|---|
committer | dbj <dbj@pkgsrc.org> | 2017-08-01 05:48:12 +0000 |
commit | 7c0e11e1b53092765ea2b72dbb281b29f627f09e (patch) | |
tree | 7e1fea5b0804d8b64a80874a1450443ab5ace561 /mk | |
parent | 1784b6d43be60b65d80b1ac77676090cbcbc77ba (diff) | |
download | pkgsrc-7c0e11e1b53092765ea2b72dbb281b29f627f09e.tar.gz |
don't try to create buildlinks if BUILDLINK_PREFIX.${_pkg_} is empty
without this change it looks for files in $HOME or fails if that is not set
Diffstat (limited to 'mk')
-rw-r--r-- | mk/buildlink3/bsd.buildlink3.mk | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mk/buildlink3/bsd.buildlink3.mk b/mk/buildlink3/bsd.buildlink3.mk index 2265a75c3f1..e068acb7716 100644 --- a/mk/buildlink3/bsd.buildlink3.mk +++ b/mk/buildlink3/bsd.buildlink3.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.buildlink3.mk,v 1.238 2016/06/09 02:38:34 markd Exp $ +# $NetBSD: bsd.buildlink3.mk,v 1.239 2017/08/01 05:48:12 dbj Exp $ # # Copyright (c) 2004 The NetBSD Foundation, Inc. # All rights reserved. @@ -657,7 +657,8 @@ ${_BLNK_COOKIE.${_pkg_}}: ${X11BASE}) buildlink_dir="${BUILDLINK_X11_DIR}" ;; \ *) buildlink_dir="${BUILDLINK_DIR}" ;; \ esac; \ - cd ${BUILDLINK_PREFIX.${_pkg_}}; \ + [ -z "${BUILDLINK_PREFIX.${_pkg_}:Q}" ] || \ + cd ${BUILDLINK_PREFIX.${_pkg_}} && \ ${_BLNK_FILES_CMD.${_pkg_}} | \ while read file; do \ src="${_CROSS_DESTDIR}${BUILDLINK_PREFIX.${_pkg_}}/$$file"; \ |