Recover depends downloads with stale fetch stamps

This commit is contained in:
root
2026-05-03 08:59:37 +00:00
parent 18f14e0c80
commit 1d382a7560
2 changed files with 11 additions and 2 deletions
+5 -1
View File
@@ -83,9 +83,13 @@ download: $(foreach p,$(all_packages),$($(p)_fetched))
# and generate share/config.site for top-level ./configure.
# --------------------------------------------------------------------
.PHONY: install install-clean reinstall install-prefix
.PHONY: install install-clean reinstall install-prefix clean-sources
install: install-prefix
clean-sources:
@echo "== Removing downloaded source archives and fetch stamps"
@rm -rf "$(SOURCES_PATH)"
install-prefix: $(packages)
@echo "== Installing depends into: $(host_prefix)"
@rm -rf "$(host_prefix)"
+6 -1
View File
@@ -82,7 +82,12 @@ $(1)_download_path_fixed=$(subst :,\:,$$($(1)_download_path))
#default commands
# The default behavior for tar will try to set ownership when running as uid 0 and may not succeed, --no-same-owner disables this behavior
$(1)_fetch_cmds ?= $(call fetch_file,$(1),$(subst \:,:,$$($(1)_download_path_fixed)),$$($(1)_download_file),$($(1)_file_name),$($(1)_sha256_hash))
$(1)_extract_cmds ?= mkdir -p $$($(1)_extract_dir) && echo "$$($(1)_sha256_hash) $$($(1)_source)" > $$($(1)_extract_dir)/.$$($(1)_file_name).hash && $(build_SHA256SUM) -c $$($(1)_extract_dir)/.$$($(1)_file_name).hash && tar --no-same-owner --strip-components=1 -xf $$($(1)_source)
$(1)_extract_cmds ?= mkdir -p $$($(1)_extract_dir) && echo "$$($(1)_sha256_hash) $$($(1)_source)" > $$($(1)_extract_dir)/.$$($(1)_file_name).hash && \
( $(build_SHA256SUM) -c $$($(1)_extract_dir)/.$$($(1)_file_name).hash || \
( rm -f $$($(1)_source) $$($(1)_fetched) && \
$(call fetch_file,$(1),$(subst \:,:,$$($(1)_download_path_fixed)),$$($(1)_download_file),$($(1)_file_name),$($(1)_sha256_hash)) && \
$(build_SHA256SUM) -c $$($(1)_extract_dir)/.$$($(1)_file_name).hash ) ) && \
tar --no-same-owner --strip-components=1 -xf $$($(1)_source)
$(1)_preprocess_cmds ?=
$(1)_build_cmds ?=
$(1)_config_cmds ?=