summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Firth <dan.firth@codethink.co.uk>2016-12-05 22:54:49 +0000
committerDaniel Firth <dan.firth@codethink.co.uk>2016-12-08 15:46:00 +0000
commit3d0265e052d8929a2354032431280860ba0e0854 (patch)
tree74f733de11ee28854ff411bc6c9b94e4eea1b5d7
parent226c4e1a1a1067783699e97d62baa98fdeb0a009 (diff)
downloaddefinitions-3d0265e052d8929a2354032431280860ba0e0854.tar.gz
Add ghc mixin stratum
-rw-r--r--.gitlab-ci.yml6
-rw-r--r--strata/ghc.morph139
-rw-r--r--strata/ghc/ghc.morph12
-rw-r--r--strata/ghc/stage1-ghc.morph9
4 files changed, 166 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5f2184df..df7b17b9 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -14,6 +14,12 @@ build-system-x86_64-chroot-build:
- master
- /^staging\/.*$/
+build-ghc-bootstrap:
+ stage: build
+ script:
+ - ybd/ybd.py strata/ghc.morph x86_64
+
+
#build-system-x86_64-chroot-deploy:
# stage: deploy
# dependencies:
diff --git a/strata/ghc.morph b/strata/ghc.morph
new file mode 100644
index 00000000..e9906b72
--- /dev/null
+++ b/strata/ghc.morph
@@ -0,0 +1,139 @@
+name: ghc
+kind: stratum
+build-depends:
+- morph: strata/core.morph
+chunks:
+- repo: http://git.haskell.org/ghc
+ ref: 847d229346431483b99adcff12e46c7bf6af15da
+ name: stage1-ghc
+ morph: strata/ghc/stage1-ghc.morph
+ build-mode: "bootstrap"
+ submodules:
+ libraries/binary:
+ url: http://git.haskell.org/packages/binary.git
+ libraries/bytestring:
+ url: http://git.haskell.org/packages/bytestring.git
+ libraries/Cabal:
+ url: http://git.haskell.org/packages/Cabal.git
+ libraries/containers:
+ url: http://git.haskell.org/packages/containers.git
+ libraries/haskeline:
+ url: http://git.haskell.org/packages/haskeline.git
+ libraries/pretty:
+ url: http://git.haskell.org/packages/pretty.git
+ libraries/terminfo:
+ url: http://git.haskell.org/packages/terminfo.git
+ libraries/transformers:
+ url: http://git.haskell.org/packages/transformers.git
+ libraries/xhtml:
+ url: http://git.haskell.org/packages/xhtml.git
+ libraries/Win32:
+ url: http://git.haskell.org/packages/Win32.git
+ libraries/primitive:
+ url: http://git.haskell.org/packages/primitive.git
+ libraries/vector:
+ url: http://git.haskell.org/packages/vector.git
+ libraries/time:
+ url: http://git.haskell.org/packages/time.git
+ libraries/random:
+ url: http://git.haskell.org/packages/random.git
+ libraries/array:
+ url: http://git.haskell.org/packages/array.git
+ libraries/deepseq:
+ url: http://git.haskell.org/packages/deepseq.git
+ libraries/directory:
+ url: http://git.haskell.org/packages/directory.git
+ libraries/filepath:
+ url: http://git.haskell.org/packages/filepath.git
+ libraries/hoopl:
+ url: http://git.haskell.org/packages/hoopl.git
+ libraries/hpc:
+ url: http://git.haskell.org/packages/hpc.git
+ libraries/process:
+ url: http://git.haskell.org/packages/process.git
+ libraries/unix:
+ url: http://git.haskell.org/packages/unix.git
+ libraries/parallel:
+ url: http://git.haskell.org/packages/parallel.git
+ libraries/stm:
+ url: http://git.haskell.org/packages/stm.git
+ libraries/dph:
+ url: http://git.haskell.org/packages/dph.git
+ utils/haddock:
+ url: http://git.haskell.org/haddock.git
+ nofib:
+ url: http://git.haskell.org/nofib.git
+ utils/hsc2hs:
+ url: http://git.haskell.org/hsc2hs.git
+ libffi-tarballs:
+ url: http://git.haskell.org/libffi-tarballs.git
+ .arc-linters/arcanist-external-json-linter:
+ url: http://git.haskell.org/arcanist-external-json-linter.git
+- name: ghc
+ repo: http://git.haskell.org/ghc
+ ref: 847d229346431483b99adcff12e46c7bf6af15da
+ name: ghc
+ morph: strata/ghc/ghc.morph
+ build-depends:
+ - stage1-ghc
+ submodules:
+ libraries/binary:
+ url: http://git.haskell.org/packages/binary.git
+ libraries/bytestring:
+ url: http://git.haskell.org/packages/bytestring.git
+ libraries/Cabal:
+ url: http://git.haskell.org/packages/Cabal.git
+ libraries/containers:
+ url: http://git.haskell.org/packages/containers.git
+ libraries/haskeline:
+ url: http://git.haskell.org/packages/haskeline.git
+ libraries/pretty:
+ url: http://git.haskell.org/packages/pretty.git
+ libraries/terminfo:
+ url: http://git.haskell.org/packages/terminfo.git
+ libraries/transformers:
+ url: http://git.haskell.org/packages/transformers.git
+ libraries/xhtml:
+ url: http://git.haskell.org/packages/xhtml.git
+ libraries/Win32:
+ url: http://git.haskell.org/packages/Win32.git
+ libraries/primitive:
+ url: http://git.haskell.org/packages/primitive.git
+ libraries/vector:
+ url: http://git.haskell.org/packages/vector.git
+ libraries/time:
+ url: http://git.haskell.org/packages/time.git
+ libraries/random:
+ url: http://git.haskell.org/packages/random.git
+ libraries/array:
+ url: http://git.haskell.org/packages/array.git
+ libraries/deepseq:
+ url: http://git.haskell.org/packages/deepseq.git
+ libraries/directory:
+ url: http://git.haskell.org/packages/directory.git
+ libraries/filepath:
+ url: http://git.haskell.org/packages/filepath.git
+ libraries/hoopl:
+ url: http://git.haskell.org/packages/hoopl.git
+ libraries/hpc:
+ url: http://git.haskell.org/packages/hpc.git
+ libraries/process:
+ url: http://git.haskell.org/packages/process.git
+ libraries/unix:
+ url: http://git.haskell.org/packages/unix.git
+ libraries/parallel:
+ url: http://git.haskell.org/packages/parallel.git
+ libraries/stm:
+ url: http://git.haskell.org/packages/stm.git
+ libraries/dph:
+ url: http://git.haskell.org/packages/dph.git
+ utils/haddock:
+ url: http://git.haskell.org/haddock.git
+ nofib:
+ url: http://git.haskell.org/nofib.git
+ utils/hsc2hs:
+ url: http://git.haskell.org/hsc2hs.git
+ libffi-tarballs:
+ url: http://git.haskell.org/libffi-tarballs.git
+ .arc-linters/arcanist-external-json-linter:
+ url: http://git.haskell.org/arcanist-external-json-linter.git
diff --git a/strata/ghc/ghc.morph b/strata/ghc/ghc.morph
new file mode 100644
index 00000000..19ba7984
--- /dev/null
+++ b/strata/ghc/ghc.morph
@@ -0,0 +1,12 @@
+name: ghc
+kind: chunk
+configure-commands:
+- |
+ ./boot
+ export CONF_CC_OPTS_STAGE2=-fno-PIE
+ export CONF_GCC_LINKER_OPTS_STAGE2=-no-pie
+ export CONF_LD_LINKER_OPTS_STAGE2=-no-pie
+ ./configure
+build-commands: []
+install-commands: []
+
diff --git a/strata/ghc/stage1-ghc.morph b/strata/ghc/stage1-ghc.morph
new file mode 100644
index 00000000..c256b2be
--- /dev/null
+++ b/strata/ghc/stage1-ghc.morph
@@ -0,0 +1,9 @@
+name: stage1-ghc
+kind: chunk
+configure-commands:
+- ./boot
+- ./configure
+build-commands:
+- make
+install-commands:
+- make install