aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-02-07 14:02:23 +0900
committerOphestra <cat@gensokyo.uk>2026-02-07 14:02:23 +0900
commit31a8cc9b5cfe6056c9f19e15426794110ebaf874 (patch)
tree31554826403eb5c8889dd71c0eacd88bb9a5970a
parentbb3f60fc74433ee86728e6039bcb0e5f75bd8510 (diff)
internal/rosa/gnu: binutils artifact
Appears to be required by GCC? It complains with stuff installed by LLVM. Signed-off-by: Ophestra <cat@gensokyo.uk>
-rw-r--r--internal/rosa/all.go2
-rw-r--r--internal/rosa/gnu.go19
2 files changed, 21 insertions, 0 deletions
diff --git a/internal/rosa/all.go b/internal/rosa/all.go
index cbf9814e..5aea5ee4 100644
--- a/internal/rosa/all.go
+++ b/internal/rosa/all.go
@@ -15,6 +15,7 @@ const (
Autoconf
Automake
Bash
+ Binutils
CMake
Coreutils
Curl
@@ -106,6 +107,7 @@ func ResolveName(name string) (p PArtifact, ok bool) {
"autoconf": Autoconf,
"automake": Automake,
"bash": Bash,
+ "binutils": Binutils,
"cmake": CMake,
"coreutils": Coreutils,
"curl": Curl,
diff --git a/internal/rosa/gnu.go b/internal/rosa/gnu.go
index c006debb..9841cccb 100644
--- a/internal/rosa/gnu.go
+++ b/internal/rosa/gnu.go
@@ -351,6 +351,25 @@ echo 'int main(){return 0;}' > tests/xargs/test-sigusr.c
}
func init() { artifactsF[Findutils] = Toolchain.newFindutils }
+func (t Toolchain) newBinutils() pkg.Artifact {
+ const (
+ version = "2.45"
+ checksum = "hlLtqqHDmzAT2OQVHaKEd_io2DGFvJkaeS-igBuK8bRRir7LUKGHgHYNkDVKaHTT"
+ )
+ return t.NewViaMake("binutils", version, pkg.NewHTTPGetTar(
+ nil, "https://ftpmirror.gnu.org/gnu/binutils/binutils-"+version+".tar.bz2",
+ mustDecode(checksum),
+ pkg.TarBzip2,
+ ), &MakeAttr{
+ ScriptConfigured: `
+make "-j$(nproc)"
+`,
+ },
+ t.Load(Bash),
+ )
+}
+func init() { artifactsF[Binutils] = Toolchain.newBinutils }
+
func (t Toolchain) newGMP() pkg.Artifact {
const (
version = "6.3.0"