aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/gnu.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-04-01 17:12:57 +0900
committerOphestra <cat@gensokyo.uk>2026-04-01 17:20:12 +0900
commit64e5a1068bdb5e7bd97283cc927088c870b8208e (patch)
tree4a7e10431a1ee73f08235e5f9eb4efb8e2a08325 /internal/rosa/gnu.go
parentb6cbd49d8cb56c0918eda2b676744a31e4142d58 (diff)
internal/rosa: libtasn1 artifact
Optional dependency of p11-kit. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/gnu.go')
-rw-r--r--internal/rosa/gnu.go23
1 files changed, 23 insertions, 0 deletions
diff --git a/internal/rosa/gnu.go b/internal/rosa/gnu.go
index 8f67505c..4b1f4303 100644
--- a/internal/rosa/gnu.go
+++ b/internal/rosa/gnu.go
@@ -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) {
const (
version = "2.46.0"