summaryrefslogtreecommitdiffstats
path: root/scripts/mk/vendor.mk
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-07 13:32:49 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-07 13:32:49 +0000
commit9155e8d6752d34e4ea3f022ee51e099420517669 (patch)
tree61c6261279988bba2de9f629a0ee0bd91b45d32f /scripts/mk/vendor.mk
parentAdding upstream version 1.22.9. (diff)
downloaddpkg-9155e8d6752d34e4ea3f022ee51e099420517669.tar.xz
dpkg-9155e8d6752d34e4ea3f022ee51e099420517669.zip
Adding upstream version 1.22.10.upstream/1.22.10
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--scripts/mk/vendor.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/mk/vendor.mk b/scripts/mk/vendor.mk
index d257edd..a8d29cb 100644
--- a/scripts/mk/vendor.mk
+++ b/scripts/mk/vendor.mk
@@ -41,10 +41,10 @@ ifndef dpkg_datadir
endif
include $(dpkg_datadir)/buildapi.mk
-dpkg_lazy_eval ?= $(eval $(1) = $(2)$$($(1)))
-dpkg_lazy_set ?= $(call dpkg_lazy_eval,$(1),$$(eval $(1) := $(2)))
-$(call dpkg_lazy_set,DEB_VENDOR,$$(shell dpkg-vendor --query Vendor))
-$(call dpkg_lazy_set,DEB_PARENT_VENDOR,$$(shell dpkg-vendor --query Parent))
+dpkg_late_eval ?= $(or $(value DPKG_CACHE_$(1)),$(eval DPKG_CACHE_$(1) := $(shell $(2)))$(value DPKG_CACHE_$(1)))
+
+DEB_VENDOR = $(call dpkg_late_eval,DEB_VENDOR,dpkg-vendor --query Vendor)
+DEB_PARENT_VENDOR = $(call dpkg_late_eval,DEB_PARENT_VENDOR,dpkg-vendor --query Parent)
dpkg_vendor_derives_from_v0 = dpkg-vendor --derives-from $(1) && echo yes || echo no
dpkg_vendor_derives_from_v1 = $(shell $(dpkg_vendor_derives_from_v0))