diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-02-21 00:30:40 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-02-21 00:30:40 +0900 |
| commit | 0123bbee3df72e977fc8bc01d1f2910fba2a8e86 (patch) | |
| tree | cfe83f2bfb7202ff8ed274d9c4f6aec74a58066c /internal | |
| parent | 771adad60369cb99e4904e2929719a6dbbb26018 (diff) | |
internal/rosa: bc artifact
Required by the kernel.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/rosa/all.go | 2 | ||||
| -rw-r--r-- | internal/rosa/gnu.go | 20 |
2 files changed, 22 insertions, 0 deletions
diff --git a/internal/rosa/all.go b/internal/rosa/all.go index 278e7628..26d563b7 100644 --- a/internal/rosa/all.go +++ b/internal/rosa/all.go @@ -15,6 +15,7 @@ const ( Attr Autoconf Automake + BC Bash Binutils Bison @@ -135,6 +136,7 @@ func ResolveName(name string) (p PArtifact, ok bool) { "attr": Attr, "autoconf": Autoconf, "automake": Automake, + "bc": BC, "bash": Bash, "binutils": Binutils, "bison": Bison, diff --git a/internal/rosa/gnu.go b/internal/rosa/gnu.go index 276ae3cb..9e0cc231 100644 --- a/internal/rosa/gnu.go +++ b/internal/rosa/gnu.go @@ -386,6 +386,26 @@ echo 'int main(){return 0;}' > tests/xargs/test-sigusr.c } func init() { artifactsF[Findutils] = Toolchain.newFindutils } +func (t Toolchain) newBC() pkg.Artifact { + const ( + version = "1.08.2" + checksum = "8h6f3hjV80XiFs6v9HOPF2KEyg1kuOgn5eeFdVspV05ODBVQss-ey5glc8AmneLy" + ) + return t.NewViaMake("bc", version, t.NewPatchedSource( + "bc", version, pkg.NewHTTPGetTar( + nil, "https://ftpmirror.gnu.org/gnu/bc/bc-"+version+".tar.gz", + mustDecode(checksum), + pkg.TarGzip, + ), false, + ), &MakeAttr{ + Writable: true, + }, + t.Load(Perl), + t.Load(Texinfo), + ) +} +func init() { artifactsF[BC] = Toolchain.newBC } + func (t Toolchain) newBinutils() pkg.Artifact { const ( version = "2.45" |
