[PATCH 1/1] avoid unspecific file names in download cache

6 views
Skip to first unread message

Felix Moessbauer

unread,
Dec 12, 2025, 8:18:48 AM (5 days ago) Dec 12
to isar-...@googlegroups.com, Felix Moessbauer
With the recent introduction of the SBOM series, we also introduced
artifacts with unspecific names (only v<version>.tar.gz) in the download
cache. As this can easily lead to name collisions, we manually provide
the downloadfilename for the related artifacts.

Signed-off-by: Felix Moessbauer <felix.mo...@siemens.com>
---
.../recipes-support/python3-beartype/python3-beartype_0.19.0.bb | 2 +-
.../python3-spdx-tools/python3-spdx-tools_0.8.3.bb | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-support/python3-beartype/python3-beartype_0.19.0.bb b/meta/recipes-support/python3-beartype/python3-beartype_0.19.0.bb
index b8bc2708..d4ada80c 100644
--- a/meta/recipes-support/python3-beartype/python3-beartype_0.19.0.bb
+++ b/meta/recipes-support/python3-beartype/python3-beartype_0.19.0.bb
@@ -18,7 +18,7 @@ DEBIAN_CHANGELOG_TIMESTAMP = "315532800"
DESCRIPTION = "Unbearably fast near-real-time hybrid runtime-static type-checking in pure Python."

SRC_URI = "\
- https://github.com/beartype/beartype/archive/refs/tags/v0.19.0.tar.gz \
+ https://github.com/beartype/beartype/archive/refs/tags/v0.19.0.tar.gz;downloadfilename=${PN}-${PV}.tar.gz \
file://rules \
"
SRC_URI[sha256sum] = "e7ad00eebf527d60f30e0b391209b561dabd2074b608c50e26c94c2d8250a6cd"
diff --git a/meta/recipes-support/python3-spdx-tools/python3-spdx-tools_0.8.3.bb b/meta/recipes-support/python3-spdx-tools/python3-spdx-tools_0.8.3.bb
index 30d090a9..14e46994 100644
--- a/meta/recipes-support/python3-spdx-tools/python3-spdx-tools_0.8.3.bb
+++ b/meta/recipes-support/python3-spdx-tools/python3-spdx-tools_0.8.3.bb
@@ -35,7 +35,7 @@ DEB_BUILD_OPTIONS += "nocheck"
DESCRIPTION = "SPDX parser and tools."

SRC_URI = "\
- https://github.com/spdx/tools-python/archive/refs/tags/v0.8.3.tar.gz \
+ https://github.com/spdx/tools-python/archive/refs/tags/v0.8.3.tar.gz;downloadfilename=${PN}-${PV}.tar.gz \
file://rules \
"
SRC_URI[sha256sum] = "17cb0140adbaefb58819c9d5d56060dc6a70c673a854fa9bd882ecfa4e062a7f"
--
2.51.0

Felix Moessbauer

unread,
Dec 15, 2025, 2:42:35 AM (3 days ago) Dec 15
to isar-...@googlegroups.com, Felix Moessbauer
With the recent introduction of the SBOM series, we also introduced
artifacts with unspecific names (only v<version>.tar.gz) in the download
cache. As this can easily lead to name collisions, we manually provide
the downloadfilename for the related artifacts.

Signed-off-by: Felix Moessbauer <felix.mo...@siemens.com>
---
Changes since v1:
- use BPN instead of PN to avoid double-download on -native
(a linter could have caught this, but we don't have one yet)

Felix

.../recipes-support/python3-beartype/python3-beartype_0.19.0.bb | 2 +-
.../python3-spdx-tools/python3-spdx-tools_0.8.3.bb | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-support/python3-beartype/python3-beartype_0.19.0.bb b/meta/recipes-support/python3-beartype/python3-beartype_0.19.0.bb
index b8bc2708..92a9ca12 100644
--- a/meta/recipes-support/python3-beartype/python3-beartype_0.19.0.bb
+++ b/meta/recipes-support/python3-beartype/python3-beartype_0.19.0.bb
@@ -18,7 +18,7 @@ DEBIAN_CHANGELOG_TIMESTAMP = "315532800"
DESCRIPTION = "Unbearably fast near-real-time hybrid runtime-static type-checking in pure Python."

SRC_URI = "\
- https://github.com/beartype/beartype/archive/refs/tags/v0.19.0.tar.gz \
+ https://github.com/beartype/beartype/archive/refs/tags/v0.19.0.tar.gz;downloadfilename=${BPN}-${PV}.tar.gz \
file://rules \
"
SRC_URI[sha256sum] = "e7ad00eebf527d60f30e0b391209b561dabd2074b608c50e26c94c2d8250a6cd"
diff --git a/meta/recipes-support/python3-spdx-tools/python3-spdx-tools_0.8.3.bb b/meta/recipes-support/python3-spdx-tools/python3-spdx-tools_0.8.3.bb
index 30d090a9..6285f332 100644
--- a/meta/recipes-support/python3-spdx-tools/python3-spdx-tools_0.8.3.bb
+++ b/meta/recipes-support/python3-spdx-tools/python3-spdx-tools_0.8.3.bb
@@ -35,7 +35,7 @@ DEB_BUILD_OPTIONS += "nocheck"
DESCRIPTION = "SPDX parser and tools."

SRC_URI = "\
- https://github.com/spdx/tools-python/archive/refs/tags/v0.8.3.tar.gz \
+ https://github.com/spdx/tools-python/archive/refs/tags/v0.8.3.tar.gz;downloadfilename=${BPN}-${PV}.tar.gz \
Reply all
Reply to author
Forward
0 new messages