aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/musl-fts.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-02-20 21:29:09 +0900
committerOphestra <cat@gensokyo.uk>2026-02-20 21:29:09 +0900
commit273068b90cf6117738c2aa1d48fd4fa9b471bf50 (patch)
tree1c0f571e732ca4bc258ecf444cc8b31aaaf97b84 /internal/rosa/musl-fts.go
parent16b20e1d3405793124d633f80e8a21b01063b7f6 (diff)
internal/rosa: musl-fts artifact
Another nonstandard glibc extension used by elfutils. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/musl-fts.go')
-rw-r--r--internal/rosa/musl-fts.go33
1 files changed, 33 insertions, 0 deletions
diff --git a/internal/rosa/musl-fts.go b/internal/rosa/musl-fts.go
new file mode 100644
index 00000000..ab565fe6
--- /dev/null
+++ b/internal/rosa/musl-fts.go
@@ -0,0 +1,33 @@
+package rosa
+
+import "hakurei.app/internal/pkg"
+
+func (t Toolchain) newMuslFts() pkg.Artifact {
+ const (
+ version = "1.2.7"
+ checksum = "N_p_ZApX3eHt7xoDCw1hLf6XdJOw7ZSx7xPvpvAP0knG2zgU0zeN5w8tt5Pg60XJ"
+ )
+ return t.NewViaMake("musl-fts", version, pkg.NewHTTPGetTar(
+ nil, "https://github.com/void-linux/musl-fts/archive/refs/tags/"+
+ "v"+version+".tar.gz",
+ mustDecode(checksum),
+ pkg.TarGzip,
+ ), &MakeAttr{
+ Writable: true,
+ Env: []string{
+ "CC=cc -fPIC",
+ },
+ ScriptEarly: `
+cd /usr/src/musl-fts
+./bootstrap.sh
+`,
+ },
+ t.Load(M4),
+ t.Load(Perl),
+ t.Load(Autoconf),
+ t.Load(Automake),
+ t.Load(Libtool),
+ t.Load(PkgConfig),
+ )
+}
+func init() { artifactsF[MuslFts] = Toolchain.newMuslFts }