aboutsummaryrefslogtreecommitdiff
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2021-01-18 19:34:54 +0000
committerKyle Evans <kevans@FreeBSD.org>2021-01-18 19:34:54 +0000
commit95ae95d413bdbab9b7360d190a81c18aadf440f7 (patch)
treee4c3feedf1f4764af229c68075ab10ff54bd482f /Makefile.inc1
parent76ad42abf9d46c7a86c9e727603fe62e8b62a37b (diff)
downloadsrc-95ae95d413bdbab9b7360d190a81c18aadf440f7.tar.gz
src-95ae95d413bdbab9b7360d190a81c18aadf440f7.zip
pkgbase: limit PKG_VERSION_FROM calculation to real-update-packages
PKG_ABI is defined in some other targets that do not need to shell out and calculate PKG_VERSION_FROM. Moreover, it produces extra errors when bootstrapping an initial pkgbase repo, as the /latest link doesn't exist yet.
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc12
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index f77fe5cfa25c..bb3d2f98f4a3 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -1872,7 +1872,7 @@ _pkgbootstrap: .PHONY
PKG_ABI!=${PKG_CMD} -o ABI_FILE=${WSTAGEDIR}/usr/bin/uname config ABI
.endif
-.if !defined(PKG_VERSION_FROM)
+.if !defined(PKG_VERSION_FROM) && make(real-update-packages)
.if defined(PKG_ABI)
PKG_VERSION_FROM!=/usr/bin/readlink ${REPODIR}/${PKG_ABI}/latest
.endif