[Buildroot] [PATCH 4/7] package/pkg-cargo: support PURL generation
Thomas Perale
thomas.perale at mind.be
Tue Apr 15 19:55:38 UTC 2025
The PURL specification for Cargo packages follows the coordinates from
the sonatype ossindex:
https://ossindex.sonatype.org/ecosystem/cargo
- The type is defined as 'cargo'.
- The name is the package name
Signed-off-by: Thomas Perale <thomas.perale at mind.be>
---
package/pkg-cargo.mk | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/package/pkg-cargo.mk b/package/pkg-cargo.mk
index 47a6353f25..6fb3cb8bc2 100644
--- a/package/pkg-cargo.mk
+++ b/package/pkg-cargo.mk
@@ -306,6 +306,14 @@ define $(2)_INSTALL_CMDS
endef
endif
+ifndef $(2)_PURL_TYPE
+ ifdef $(3)_PURL_TYPE
+ $(2)_PURL_TYPE = $$($(3)_PURL_TYPE)
+ else
+ $(2)_PURL_TYPE = cargo
+ endif
+endif
+
# Call the generic package infrastructure to generate the necessary
# make targets
$(call inner-generic-package,$(1),$(2),$(3),$(4))
--
2.49.0
More information about the buildroot
mailing list