internal/rosa: libtasn1 artifact
All checks were successful
Test / Create distribution (push) Successful in 1m3s
Test / Sandbox (push) Successful in 2m47s
Test / Hakurei (push) Successful in 3m39s
Test / ShareFS (push) Successful in 3m44s
Test / Sandbox (race detector) (push) Successful in 5m10s
Test / Hakurei (race detector) (push) Successful in 6m13s
Test / Flake checks (push) Successful in 1m23s

Optional dependency of p11-kit.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-04-01 17:12:57 +09:00
parent b6cbd49d8c
commit 64e5a1068b
3 changed files with 31 additions and 1 deletions

View File

@@ -82,8 +82,9 @@ const (
Libmd Libmd
Libmnl Libmnl
Libnftnl Libnftnl
Libtool
Libseccomp Libseccomp
Libtasn1
Libtool
Libucontext Libucontext
Libxml2 Libxml2
Libxslt Libxslt

View File

@@ -781,6 +781,29 @@ func init() {
} }
} }
func (t Toolchain) newLibtasn1() (pkg.Artifact, string) {
const (
version = "4.21.0"
checksum = "9DYI3UYbfYLy8JsKUcY6f0irskbfL0fHZA91Q-JEOA3kiUwpodyjemRsYRjUpjuq"
)
return t.NewPackage("libtasn1", version, pkg.NewHTTPGetTar(
nil, "https://ftpmirror.gnu.org/gnu/libtasn1/libtasn1-"+version+".tar.gz",
mustDecode(checksum),
pkg.TarGzip,
), nil, (*MakeHelper)(nil)), version
}
func init() {
artifactsM[Libtasn1] = Metadata{
f: Toolchain.newLibtasn1,
Name: "libtasn1",
Description: "the ASN.1 library used by GnuTLS, p11-kit and some other packages",
Website: "https://www.gnu.org/software/libtasn1/",
ID: 1734,
}
}
func (t Toolchain) newBinutils() (pkg.Artifact, string) { func (t Toolchain) newBinutils() (pkg.Artifact, string) {
const ( const (
version = "2.46.0" version = "2.46.0"

View File

@@ -17,6 +17,8 @@ func (t Toolchain) newP11Kit() (pkg.Artifact, string) {
}, },
Coreutils, Coreutils,
Diffutils, Diffutils,
Libtasn1,
), version ), version
} }
func init() { func init() {
@@ -27,6 +29,10 @@ func init() {
Description: "provides a way to load and enumerate PKCS#11 modules", Description: "provides a way to load and enumerate PKCS#11 modules",
Website: "https://p11-glue.freedesktop.org/p11-kit.html", Website: "https://p11-glue.freedesktop.org/p11-kit.html",
Dependencies: P{
Libtasn1,
},
ID: 2582, ID: 2582,
} }
} }