pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/buildlink3 don't try to create buildlinks if BUILDL...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b2bed1ee7975
branches:  trunk
changeset: 365999:b2bed1ee7975
user:      dbj <dbj%pkgsrc.org@localhost>
date:      Tue Aug 01 05:48:12 2017 +0000

description:
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:

 mk/buildlink3/bsd.buildlink3.mk |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 67de73e48865 -r b2bed1ee7975 mk/buildlink3/bsd.buildlink3.mk
--- a/mk/buildlink3/bsd.buildlink3.mk   Tue Aug 01 02:54:14 2017 +0000
+++ b/mk/buildlink3/bsd.buildlink3.mk   Tue Aug 01 05:48:12 2017 +0000
@@ -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 @@
        ${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";             \



Home | Main Index | Thread Index | Old Index