From 1e87da9eab3db01210c9cb6fe5607140c81f980c Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN" Date: Sat, 4 May 2024 23:40:11 +0200 Subject: [PATCH] package/pkg-utils: add vendoring mechanism into generated archive filename When we change the way we vendor packages, either because our download backend or helpers evolve, or when the vendoring tools themselves change, we must avoid generating new archives with the same name, or there would be confusion when using older archives with newer Buildroot versions, or the other way around (and that would mess with local caches, like the one we share on s.b.o). This is going to be the case for example, when we enforce a better and more reproducible set of modes on archived files in the following commits. Introduce a version suffix for post-processed downloads, that we can bump when needed. Signed-off-by: Yann E. MORIN Signed-off-by: Arnout Vandecappelle --- package/pkg-utils.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/pkg-utils.mk b/package/pkg-utils.mk index 6181ae7a99..d1964299af 100644 --- a/package/pkg-utils.mk +++ b/package/pkg-utils.mk @@ -48,7 +48,7 @@ pkgname = $(lastword $(subst /, ,$(pkgdir))) # Helper to build the extension for a package archive, based on various # conditions. # $(1): upper-case package name -pkg_source_ext = $(BR_FMT_VERSION_$($(1)_SITE_METHOD)).tar.gz +pkg_source_ext = $(BR_FMT_VERSION_$($(1)_SITE_METHOD))$(BR_FMT_VERSION_$($(1)_DOWNLOAD_POST_PROCESS)).tar.gz # Define extractors for different archive suffixes INFLATE.bz2 = $(BZCAT)