Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions packages/ghc-4.08.2/build.ncl
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,12 @@ let patch = import "../patch/build.ncl" in
let version = "4.08.2" in
let is_arm = target.arch == 'Arm64 in
# x86_64 compiles with the bedrock gcc against its glibc sysroot; aarch64 with the toolchain, itself hex0-rooted
let cc_build = if is_arm then [toolchain] else [gcc-bedrock, binutils, glibc-bedrock] in
let cc_runtime = if is_arm then [glibc, toolchain] else [subsetOf glibc-bedrock ["sysroot_lib"], gcc-bedrock, binutils] in
let cc_build = if is_arm then [toolchain] else [gcc-bedrock, binutils] in
# The sysroot is taken only as a subsetOf slice, and only through runtime_deps (a spec's own runtime_deps
# are in its build sandbox too). glibc-bedrock-2.42 is prebuilt, so a bare import lands its whole tarball,
# a complete glibc 2.42 at /usr/lib included, which collides with production glibc there (the lowest spec
# hash wins). A subsetOf in build_deps is no alternative: the builder does not implement it yet.
let cc_runtime = if is_arm then [glibc, toolchain] else [subsetOf glibc-bedrock ["sysroot_lib", "sysroot_include"], gcc-bedrock, binutils] in
let spec =
{
name = "ghc-4.08.2",
Expand Down
8 changes: 6 additions & 2 deletions packages/ghc-5.04.3/build.ncl
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,12 @@ let patch = import "../patch/build.ncl" in
let version = "5.04.3" in
let is_arm = target.arch == 'Arm64 in
# x86_64 compiles with the bedrock gcc against its glibc sysroot; aarch64 with the toolchain, itself hex0-rooted
let cc_build = if is_arm then [toolchain] else [gcc-bedrock, binutils, glibc-bedrock] in
let cc_runtime = if is_arm then [glibc, toolchain] else [subsetOf glibc-bedrock ["sysroot_lib"], gcc-bedrock, binutils] in
let cc_build = if is_arm then [toolchain] else [gcc-bedrock, binutils] in
# The sysroot is taken only as a subsetOf slice, and only through runtime_deps (a spec's own runtime_deps
# are in its build sandbox too). glibc-bedrock-2.42 is prebuilt, so a bare import lands its whole tarball,
# a complete glibc 2.42 at /usr/lib included, which collides with production glibc there (the lowest spec
# hash wins). A subsetOf in build_deps is no alternative: the builder does not implement it yet.
let cc_runtime = if is_arm then [glibc, toolchain] else [subsetOf glibc-bedrock ["sysroot_lib", "sysroot_include"], gcc-bedrock, binutils] in
let spec =
{
name = "ghc-5.04.3",
Expand Down
8 changes: 6 additions & 2 deletions packages/ghc-6.10.4/build.ncl
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,12 @@ let patch = import "../patch/build.ncl" in
let version = "6.10.4" in
let is_arm = target.arch == 'Arm64 in
# x86_64 compiles with the bedrock gcc against its glibc sysroot; aarch64 with the toolchain, itself hex0-rooted
let cc_build = if is_arm then [toolchain] else [gcc-bedrock, binutils, glibc-bedrock] in
let cc_runtime = if is_arm then [glibc, toolchain] else [subsetOf glibc-bedrock ["sysroot_lib"], gcc-bedrock, binutils] in
let cc_build = if is_arm then [toolchain] else [gcc-bedrock, binutils] in
# The sysroot is taken only as a subsetOf slice, and only through runtime_deps (a spec's own runtime_deps
# are in its build sandbox too). glibc-bedrock-2.42 is prebuilt, so a bare import lands its whole tarball,
# a complete glibc 2.42 at /usr/lib included, which collides with production glibc there (the lowest spec
# hash wins). A subsetOf in build_deps is no alternative: the builder does not implement it yet.
let cc_runtime = if is_arm then [glibc, toolchain] else [subsetOf glibc-bedrock ["sysroot_lib", "sysroot_include"], gcc-bedrock, binutils] in
let arm_sources =
if is_arm then
[
Expand Down
8 changes: 6 additions & 2 deletions packages/ghc-6.6.1/build.ncl
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,12 @@ let patch = import "../patch/build.ncl" in
let version = "6.6.1" in
let is_arm = target.arch == 'Arm64 in
# x86_64 compiles with the bedrock gcc against its glibc sysroot; aarch64 with the toolchain, itself hex0-rooted
let cc_build = if is_arm then [toolchain] else [gcc-bedrock, binutils, glibc-bedrock] in
let cc_runtime = if is_arm then [glibc, toolchain] else [subsetOf glibc-bedrock ["sysroot_lib"], gcc-bedrock, binutils] in
let cc_build = if is_arm then [toolchain] else [gcc-bedrock, binutils] in
# The sysroot is taken only as a subsetOf slice, and only through runtime_deps (a spec's own runtime_deps
# are in its build sandbox too). glibc-bedrock-2.42 is prebuilt, so a bare import lands its whole tarball,
# a complete glibc 2.42 at /usr/lib included, which collides with production glibc there (the lowest spec
# hash wins). A subsetOf in build_deps is no alternative: the builder does not implement it yet.
let cc_runtime = if is_arm then [glibc, toolchain] else [subsetOf glibc-bedrock ["sysroot_lib", "sysroot_include"], gcc-bedrock, binutils] in
let spec =
{
name = "ghc-6.6.1",
Expand Down
8 changes: 6 additions & 2 deletions packages/ghc-7.0.4/build.ncl
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,12 @@ let patch = import "../patch/build.ncl" in
let version = "7.0.4" in
let is_arm = target.arch == 'Arm64 in
# x86_64 compiles with the bedrock gcc against its glibc sysroot; aarch64 with the toolchain, itself hex0-rooted
let cc_build = if is_arm then [toolchain] else [gcc-bedrock, binutils, glibc-bedrock] in
let cc_runtime = if is_arm then [glibc, toolchain] else [subsetOf glibc-bedrock ["sysroot_lib"], gcc-bedrock, binutils] in
let cc_build = if is_arm then [toolchain] else [gcc-bedrock, binutils] in
# The sysroot is taken only as a subsetOf slice, and only through runtime_deps (a spec's own runtime_deps
# are in its build sandbox too). glibc-bedrock-2.42 is prebuilt, so a bare import lands its whole tarball,
# a complete glibc 2.42 at /usr/lib included, which collides with production glibc there (the lowest spec
# hash wins). A subsetOf in build_deps is no alternative: the builder does not implement it yet.
let cc_runtime = if is_arm then [glibc, toolchain] else [subsetOf glibc-bedrock ["sysroot_lib", "sysroot_include"], gcc-bedrock, binutils] in
let arm_sources =
if is_arm then
[
Expand Down
11 changes: 9 additions & 2 deletions packages/ghc-7.10.3/build.ncl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
let { Attrs, BuildSpec, Local, OutputData, Source, .. } = import "minimal.ncl" in
let { subsetOf, Attrs, BuildSpec, Local, OutputData, Source, .. } = import "minimal.ncl" in
let { target, .. } = import "config.ncl" in
# ghc-7.10.3: one rung of the GHC ladder (7.6.3 -> 7.8.4 -> 7.10.3 -> 8.2.2 -> 8.6.5 -> 8.10.7 -> 9.2.8 -> 9.6.7 -> ghc).
# Builds GHC 7.10.3 from the pinned source tarball with ../ghc-7.8.4 as the boot compiler and installs
Expand Down Expand Up @@ -32,7 +32,12 @@ let patch = import "../patch/build.ncl" in # and patches it
let version = "7.10.3" in
let is_arm = target.arch == 'Arm64 in
# x86_64 compiles with the bedrock gcc against its glibc sysroot; aarch64 with the toolchain, itself hex0-rooted
let cc_build = if is_arm then [toolchain] else [gcc-bedrock, binutils, glibc-bedrock] in
let cc_build = if is_arm then [toolchain] else [gcc-bedrock, binutils] in
# The sysroot is taken only as a subsetOf slice, and only through runtime_deps (a spec's own runtime_deps
# are in its build sandbox too). glibc-bedrock-2.42 is prebuilt, so a bare import lands its whole tarball,
# a complete glibc 2.42 at /usr/lib included, which collides with production glibc there (the lowest spec
# hash wins). A subsetOf in build_deps is no alternative: the builder does not implement it yet.
let cc_runtime = if is_arm then [] else [subsetOf glibc-bedrock ["sysroot_lib", "sysroot_include"]] in
let spec =
{
name = "ghc-7.10.3",
Expand Down Expand Up @@ -64,6 +69,8 @@ let spec =
]
@ cc_build
@ (if is_arm then [] else [{ file = "amd64-env.sh" } | Local]),
# x86_64: this rung's binaries and C wrapper run against the sysroot
runtime_deps = cc_runtime,
# x86_64 runs build.sh with the sysroot's iconv modules; aarch64 runs it directly
cmd = if is_arm then "./build.sh" else "./amd64-env.sh",
outputs = {
Expand Down
11 changes: 9 additions & 2 deletions packages/ghc-7.6.3/build.ncl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
let { Attrs, BuildSpec, Local, OutputData, Source, .. } = import "minimal.ncl" in
let { subsetOf, Attrs, BuildSpec, Local, OutputData, Source, .. } = import "minimal.ncl" in
let { target, .. } = import "config.ncl" in
# ghc-7.6.3: where the source-only lineage (microhs -> 4.08.2 -> 5.04.3 -> 6.6.1 -> 6.10.4 -> 7.0.4) meets the
# upper ladder (7.6.3 -> 7.8.4 -> 7.10.3 -> 8.2.2 -> 8.6.5 -> 8.10.7 -> 9.2.8 -> 9.6.7 -> ghc). Built from the
Expand Down Expand Up @@ -32,7 +32,7 @@ let patch = import "../patch/build.ncl" in # the build system patches the bundle
let version = "7.6.3" in
let is_arm = target.arch == 'Arm64 in
# x86_64 compiles with the bedrock gcc against its glibc sysroot; aarch64 with the toolchain, itself hex0-rooted
let cc_build = if is_arm then [toolchain] else [gcc-bedrock, binutils, glibc-bedrock] in
let cc_build = if is_arm then [toolchain] else [gcc-bedrock, binutils] in
let arm_extra =
if is_arm then
[
Expand All @@ -55,6 +55,11 @@ let arm_extra =
else
[]
in
# The sysroot is taken only as a subsetOf slice, and only through runtime_deps (a spec's own runtime_deps
# are in its build sandbox too). glibc-bedrock-2.42 is prebuilt, so a bare import lands its whole tarball,
# a complete glibc 2.42 at /usr/lib included, which collides with production glibc there (the lowest spec
# hash wins). A subsetOf in build_deps is no alternative: the builder does not implement it yet.
let cc_runtime = if is_arm then [] else [subsetOf glibc-bedrock ["sysroot_lib", "sysroot_include"]] in
let spec =
{
name = "ghc-7.6.3",
Expand Down Expand Up @@ -91,6 +96,8 @@ let spec =
@ cc_build
@ arm_extra
@ (if is_arm then [] else [{ file = "amd64-env.sh" } | Local]),
# x86_64: this rung's binaries and C wrapper run against the sysroot
runtime_deps = cc_runtime,
# x86_64 runs build.sh with the sysroot's iconv modules; aarch64 runs it directly
cmd = if is_arm then "./build.sh" else "./amd64-env.sh",
outputs = {
Expand Down
11 changes: 9 additions & 2 deletions packages/ghc-7.8.4/build.ncl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
let { Attrs, BuildSpec, Local, OutputData, Source, .. } = import "minimal.ncl" in
let { subsetOf, Attrs, BuildSpec, Local, OutputData, Source, .. } = import "minimal.ncl" in
let { target, .. } = import "config.ncl" in
# ghc-7.8.4: one rung of the GHC ladder (7.6.3 -> 7.8.4 -> 7.10.3 -> 8.2.2 -> 8.6.5 -> 8.10.7 -> 9.2.8 -> 9.6.7 -> ghc).
# Builds GHC 7.8.4 from the pinned source tarball with ../ghc-7.6.3 as the boot compiler and installs
Expand Down Expand Up @@ -32,7 +32,7 @@ let patch = import "../patch/build.ncl" in # and patches it
let version = "7.8.4" in
let is_arm = target.arch == 'Arm64 in
# x86_64 compiles with the bedrock gcc against its glibc sysroot; aarch64 with the toolchain, itself hex0-rooted
let cc_build = if is_arm then [toolchain] else [gcc-bedrock, binutils, glibc-bedrock] in
let cc_build = if is_arm then [toolchain] else [gcc-bedrock, binutils] in
let arm_extra =
if is_arm then
[
Expand All @@ -55,6 +55,11 @@ let arm_extra =
else
[]
in
# The sysroot is taken only as a subsetOf slice, and only through runtime_deps (a spec's own runtime_deps
# are in its build sandbox too). glibc-bedrock-2.42 is prebuilt, so a bare import lands its whole tarball,
# a complete glibc 2.42 at /usr/lib included, which collides with production glibc there (the lowest spec
# hash wins). A subsetOf in build_deps is no alternative: the builder does not implement it yet.
let cc_runtime = if is_arm then [] else [subsetOf glibc-bedrock ["sysroot_lib", "sysroot_include"]] in
let spec =
{
name = "ghc-7.8.4",
Expand Down Expand Up @@ -87,6 +92,8 @@ let spec =
@ cc_build
@ arm_extra
@ (if is_arm then [] else [{ file = "amd64-env.sh" } | Local]),
# x86_64: this rung's binaries and C wrapper run against the sysroot
runtime_deps = cc_runtime,
# x86_64 runs build.sh with the sysroot's iconv modules; aarch64 runs it directly
cmd = if is_arm then "./build.sh" else "./amd64-env.sh",
outputs = {
Expand Down
11 changes: 9 additions & 2 deletions packages/ghc-8.10.7/build.ncl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
let { Attrs, BuildSpec, Local, OutputData, Source, .. } = import "minimal.ncl" in
let { subsetOf, Attrs, BuildSpec, Local, OutputData, Source, .. } = import "minimal.ncl" in
let { target, .. } = import "config.ncl" in
# ghc-8.10.7: one rung of the GHC ladder (7.6.3 -> 7.8.4 -> 7.10.3 -> 8.2.2 -> 8.6.5 -> 8.10.7 -> 9.2.8 -> 9.6.7 -> ghc).
# Builds GHC 8.10.7 from the pinned source tarball with ../ghc-8.6.5 as the boot compiler and installs
Expand Down Expand Up @@ -32,7 +32,12 @@ let patch = import "../patch/build.ncl" in # and patches it
let version = "8.10.7" in
let is_arm = target.arch == 'Arm64 in
# x86_64 compiles with the bedrock gcc against its glibc sysroot; aarch64 with the toolchain, itself hex0-rooted
let cc_build = if is_arm then [toolchain] else [gcc-bedrock, binutils, glibc-bedrock] in
let cc_build = if is_arm then [toolchain] else [gcc-bedrock, binutils] in
# The sysroot is taken only as a subsetOf slice, and only through runtime_deps (a spec's own runtime_deps
# are in its build sandbox too). glibc-bedrock-2.42 is prebuilt, so a bare import lands its whole tarball,
# a complete glibc 2.42 at /usr/lib included, which collides with production glibc there (the lowest spec
# hash wins). A subsetOf in build_deps is no alternative: the builder does not implement it yet.
let cc_runtime = if is_arm then [] else [subsetOf glibc-bedrock ["sysroot_lib", "sysroot_include"]] in
let spec =
{
name = "ghc-8.10.7",
Expand Down Expand Up @@ -64,6 +69,8 @@ let spec =
]
@ cc_build
@ (if is_arm then [] else [{ file = "amd64-env.sh" } | Local]),
# x86_64: this rung's binaries and C wrapper run against the sysroot
runtime_deps = cc_runtime,
# x86_64 runs build.sh with the sysroot's iconv modules; aarch64 runs it directly
cmd = if is_arm then "./build.sh" else "./amd64-env.sh",
outputs = {
Expand Down
11 changes: 9 additions & 2 deletions packages/ghc-8.2.2/build.ncl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
let { Attrs, BuildSpec, Local, OutputData, Source, .. } = import "minimal.ncl" in
let { subsetOf, Attrs, BuildSpec, Local, OutputData, Source, .. } = import "minimal.ncl" in
let { target, .. } = import "config.ncl" in
# ghc-8.2.2: one rung of the GHC ladder (7.6.3 -> 7.8.4 -> 7.10.3 -> 8.2.2 -> 8.6.5 -> 8.10.7 -> 9.2.8 -> 9.6.7 -> ghc).
# Builds GHC 8.2.2 from the pinned source tarball with ../ghc-7.10.3 as the boot compiler and installs
Expand Down Expand Up @@ -32,7 +32,12 @@ let patch = import "../patch/build.ncl" in # and patches it
let version = "8.2.2" in
let is_arm = target.arch == 'Arm64 in
# x86_64 compiles with the bedrock gcc against its glibc sysroot; aarch64 with the toolchain, itself hex0-rooted
let cc_build = if is_arm then [toolchain] else [gcc-bedrock, binutils, glibc-bedrock] in
let cc_build = if is_arm then [toolchain] else [gcc-bedrock, binutils] in
# The sysroot is taken only as a subsetOf slice, and only through runtime_deps (a spec's own runtime_deps
# are in its build sandbox too). glibc-bedrock-2.42 is prebuilt, so a bare import lands its whole tarball,
# a complete glibc 2.42 at /usr/lib included, which collides with production glibc there (the lowest spec
# hash wins). A subsetOf in build_deps is no alternative: the builder does not implement it yet.
let cc_runtime = if is_arm then [] else [subsetOf glibc-bedrock ["sysroot_lib", "sysroot_include"]] in
let spec =
{
name = "ghc-8.2.2",
Expand Down Expand Up @@ -64,6 +69,8 @@ let spec =
]
@ cc_build
@ (if is_arm then [] else [{ file = "amd64-env.sh" } | Local]),
# x86_64: this rung's binaries and C wrapper run against the sysroot
runtime_deps = cc_runtime,
# x86_64 runs build.sh with the sysroot's iconv modules; aarch64 runs it directly
cmd = if is_arm then "./build.sh" else "./amd64-env.sh",
outputs = {
Expand Down
11 changes: 9 additions & 2 deletions packages/ghc-8.6.5/build.ncl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
let { Attrs, BuildSpec, Local, OutputData, Source, .. } = import "minimal.ncl" in
let { subsetOf, Attrs, BuildSpec, Local, OutputData, Source, .. } = import "minimal.ncl" in
let { target, .. } = import "config.ncl" in
# ghc-8.6.5: one rung of the GHC ladder (7.6.3 -> 7.8.4 -> 7.10.3 -> 8.2.2 -> 8.6.5 -> 8.10.7 -> 9.2.8 -> 9.6.7 -> ghc).
# Builds GHC 8.6.5 from the pinned source tarball with ../ghc-8.2.2 as the boot compiler and installs
Expand Down Expand Up @@ -32,7 +32,12 @@ let patch = import "../patch/build.ncl" in # and patches it
let version = "8.6.5" in
let is_arm = target.arch == 'Arm64 in
# x86_64 compiles with the bedrock gcc against its glibc sysroot; aarch64 with the toolchain, itself hex0-rooted
let cc_build = if is_arm then [toolchain] else [gcc-bedrock, binutils, glibc-bedrock] in
let cc_build = if is_arm then [toolchain] else [gcc-bedrock, binutils] in
# The sysroot is taken only as a subsetOf slice, and only through runtime_deps (a spec's own runtime_deps
# are in its build sandbox too). glibc-bedrock-2.42 is prebuilt, so a bare import lands its whole tarball,
# a complete glibc 2.42 at /usr/lib included, which collides with production glibc there (the lowest spec
# hash wins). A subsetOf in build_deps is no alternative: the builder does not implement it yet.
let cc_runtime = if is_arm then [] else [subsetOf glibc-bedrock ["sysroot_lib", "sysroot_include"]] in
let spec =
{
name = "ghc-8.6.5",
Expand Down Expand Up @@ -64,6 +69,8 @@ let spec =
]
@ cc_build
@ (if is_arm then [] else [{ file = "amd64-env.sh" } | Local]),
# x86_64: this rung's binaries and C wrapper run against the sysroot
runtime_deps = cc_runtime,
# x86_64 runs build.sh with the sysroot's iconv modules; aarch64 runs it directly
cmd = if is_arm then "./build.sh" else "./amd64-env.sh",
outputs = {
Expand Down
11 changes: 9 additions & 2 deletions packages/ghc-9.2.8/build.ncl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
let { Attrs, BuildSpec, Local, OutputData, Source, .. } = import "minimal.ncl" in
let { subsetOf, Attrs, BuildSpec, Local, OutputData, Source, .. } = import "minimal.ncl" in
let { target, .. } = import "config.ncl" in
# ghc-9.2.8: one rung of the GHC ladder (7.6.3 -> 7.8.4 -> 7.10.3 -> 8.2.2 -> 8.6.5 -> 8.10.7 -> 9.2.8 -> 9.6.7 -> ghc).
# Builds GHC 9.2.8 from the pinned source tarball with ../ghc-8.10.7 as the boot compiler and installs
Expand Down Expand Up @@ -33,7 +33,7 @@ let patch = import "../patch/build.ncl" in # and patches it
let version = "9.2.8" in
let is_arm = target.arch == 'Arm64 in
# x86_64 compiles with the bedrock gcc against its glibc sysroot; aarch64 with the toolchain, itself hex0-rooted
let cc_build = if is_arm then [toolchain] else [gcc-bedrock, binutils, glibc-bedrock] in
let cc_build = if is_arm then [toolchain] else [gcc-bedrock, binutils] in
let arm_extra =
if is_arm then
[
Expand All @@ -42,6 +42,11 @@ let arm_extra =
else
[]
in
# The sysroot is taken only as a subsetOf slice, and only through runtime_deps (a spec's own runtime_deps
# are in its build sandbox too). glibc-bedrock-2.42 is prebuilt, so a bare import lands its whole tarball,
# a complete glibc 2.42 at /usr/lib included, which collides with production glibc there (the lowest spec
# hash wins). A subsetOf in build_deps is no alternative: the builder does not implement it yet.
let cc_runtime = if is_arm then [] else [subsetOf glibc-bedrock ["sysroot_lib", "sysroot_include"]] in
let spec =
{
name = "ghc-9.2.8",
Expand Down Expand Up @@ -74,6 +79,8 @@ let spec =
@ cc_build
@ arm_extra
@ (if is_arm then [] else [{ file = "amd64-env.sh" } | Local]),
# x86_64: this rung's binaries and C wrapper run against the sysroot
runtime_deps = cc_runtime,
# x86_64 runs build.sh with the sysroot's iconv modules; aarch64 runs it directly
cmd = if is_arm then "./build.sh" else "./amd64-env.sh",
outputs = {
Expand Down
Loading