diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-08-07 13:32:49 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-08-07 13:32:49 +0000 |
commit | 9155e8d6752d34e4ea3f022ee51e099420517669 (patch) | |
tree | 61c6261279988bba2de9f629a0ee0bd91b45d32f /scripts/mk/pkg-info.mk | |
parent | Adding upstream version 1.22.9. (diff) | |
download | dpkg-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 'scripts/mk/pkg-info.mk')
-rw-r--r-- | scripts/mk/pkg-info.mk | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/scripts/mk/pkg-info.mk b/scripts/mk/pkg-info.mk index 37bf422..658e4f6 100644 --- a/scripts/mk/pkg-info.mk +++ b/scripts/mk/pkg-info.mk @@ -21,18 +21,15 @@ ifndef dpkg_pkg_info_mk_included dpkg_pkg_info_mk_included = yes -dpkg_parsechangelog_run = $(eval $(shell dpkg-parsechangelog | sed -n '\ - s/^Distribution: \(.*\)/$$(eval DEB_DISTRIBUTION:=\1)/p;\ - s/^Source: \(.*\)/$$(eval DEB_SOURCE:=\1)/p;\ - s/^Version: \([0-9]*:\)\{0,1\}\([^-]*\)\(\(.*\)-[^-]*\)\{0,1\}$$/\ - $$(eval DEB_VERSION:=\1\2\3)\ - $$(eval DEB_VERSION_EPOCH_UPSTREAM:=\1\2\4)\ - $$(eval DEB_VERSION_UPSTREAM_REVISION:=\2\3)\ - $$(eval DEB_VERSION_UPSTREAM:=\2\4)/p;\ - s/^Timestamp: \(.*\)/$$(eval DEB_TIMESTAMP:=\1)/p')) +dpkg_late_eval ?= $(or $(value DPKG_CACHE_$(1)),$(eval DPKG_CACHE_$(1) := $(shell $(2)))$(value DPKG_CACHE_$(1))) -# Compute all the values in one go. -$(dpkg_parsechangelog_run) +DEB_SOURCE = $(call dpkg_late_eval,DEB_SOURCE,dpkg-parsechangelog -SSource) +DEB_VERSION = $(call dpkg_late_eval,DEB_VERSION,dpkg-parsechangelog -SVersion) +DEB_VERSION_EPOCH_UPSTREAM = $(call dpkg_late_eval,DEB_VERSION_EPOCH_UPSTREAM,echo '$(DEB_VERSION)' | sed -e 's/-[^-]*$$//') +DEB_VERSION_UPSTREAM_REVISION = $(call dpkg_late_eval,DEB_VERSION_UPSTREAM_REVISION,echo '$(DEB_VERSION)' | sed -e 's/^[0-9]*://') +DEB_VERSION_UPSTREAM = $(call dpkg_late_eval,DEB_VERSION_UPSTREAM,echo '$(DEB_VERSION_EPOCH_UPSTREAM)' | sed -e 's/^[0-9]*://') +DEB_DISTRIBUTION = $(call dpkg_late_eval,DEB_DISTRIBUTION,dpkg-parsechangelog -SDistribution) +DEB_TIMESTAMP = $(call dpkg_late_eval,DEB_TIMESTAMP,dpkg-parsechangelog -STimestamp) SOURCE_DATE_EPOCH ?= $(DEB_TIMESTAMP) export SOURCE_DATE_EPOCH |