diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-04-03 00:00:13 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-04-03 00:00:13 +0900 |
| commit | ff3b385b12d8f3d7155bfe5ed727280ba48ea418 (patch) | |
| tree | f84b745d4cf86a7b4dd234bc3eaf493714245230 | |
| parent | c6920e6ab711d3b66a810c281c96fc2888817b1b (diff) | |
internal/rosa: libunistring artifact
Required by GnuTLS.
Signed-off-by: Ophestra <cat@gensokyo.uk>
| -rw-r--r-- | internal/rosa/all.go | 5 | ||||
| -rw-r--r-- | internal/rosa/gnu.go | 33 |
2 files changed, 36 insertions, 2 deletions
diff --git a/internal/rosa/all.go b/internal/rosa/all.go index 5ca1fb63..f3d9a97f 100644 --- a/internal/rosa/all.go +++ b/internal/rosa/all.go @@ -76,17 +76,18 @@ const ( Libcap Libev Libexpat - Libiconv - Libpsl Libffi Libgd + Libiconv Libmd Libmnl Libnftnl + Libpsl Libseccomp Libtasn1 Libtool Libucontext + Libunistring Libxml2 Libxslt M4 diff --git a/internal/rosa/gnu.go b/internal/rosa/gnu.go index 4b1f4303..72328365 100644 --- a/internal/rosa/gnu.go +++ b/internal/rosa/gnu.go @@ -781,6 +781,39 @@ func init() { } } +func (t Toolchain) newLibunistring() (pkg.Artifact, string) { + const ( + version = "1.4.2" + checksum = "iW9BbfLoVlXjWoLTZ4AekQSu4cFBnLcZ4W8OHWbv0AhJNgD3j65_zqaLMzFKylg2" + ) + return t.NewPackage("libunistring", version, pkg.NewHTTPGetTar( + nil, "https://ftp.gnu.org/gnu/libunistring/libunistring-"+version+".tar.gz", + mustDecode(checksum), + pkg.TarGzip, + ), &PackageAttr{ + Writable: true, + ScriptEarly: ` +test_disable() { chmod +w "$2" && echo "$1" > "$2"; } + +test_disable '#!/bin/sh' tests/test-c32ispunct.sh +test_disable 'int main(){return 0;}' tests/test-c32ispunct.c +`, + }, (*MakeHelper)(nil), + Diffutils, + ), version +} +func init() { + artifactsM[Libunistring] = Metadata{ + f: Toolchain.newLibunistring, + + Name: "libunistring", + Description: "provides functions for manipulating Unicode strings", + Website: "https://www.gnu.org/software/libunistring/", + + ID: 1747, + } +} + func (t Toolchain) newLibtasn1() (pkg.Artifact, string) { const ( version = "4.21.0" |
