summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alvarez <pedro.alvarez@codethink.co.uk>2014-10-28 16:26:11 +0000
committerPedro Alvarez <pedro.alvarez@codethink.co.uk>2014-11-11 18:24:29 +0000
commit56fef2e864f229d80bb9e1c33d2136e85e19dcad (patch)
treec07619e685c1e188eae22184bbbe7025051d5396
parentb0a84b3fb79efb7fe4846f69b466f553b15ff799 (diff)
downloaddefinitions-56fef2e864f229d80bb9e1c33d2136e85e19dcad.tar.gz
Add stage2-fake-bash before eglibc
This change is to prepare the transition to glibc since the latter is going to need bash to build.
-rw-r--r--strata/build-essential.morph10
-rw-r--r--strata/build-essential/stage2-fake-bash.morph4
2 files changed, 14 insertions, 0 deletions
diff --git a/strata/build-essential.morph b/strata/build-essential.morph
index 70cf57e1..c7156c27 100644
--- a/strata/build-essential.morph
+++ b/strata/build-essential.morph
@@ -121,6 +121,15 @@ chunks:
- stage2-eglibc
build-mode: bootstrap
prefix: /tools
+- name: stage2-fake-bash
+ morph: strata/build-essential/stage2-fake-bash.morph
+ repo: upstream:bash
+ ref: 3590145af6f1c9fa321dff231f69ae696e7e740b
+ unpetrify-ref: baserock/bash-4.3-patch-27
+ build-depends:
+ - stage2-busybox
+ build-mode: bootstrap
+ prefix: /tools
- name: stage2-fhs-dirs
morph: strata/build-essential/stage2-fhs-dirs.morph
repo: baserock:baserock/fhs-dirs
@@ -201,6 +210,7 @@ chunks:
build-depends:
- stage2-binutils
- stage2-busybox
+ - stage2-fake-bash
- stage2-eglibc
- stage2-fhs-dirs
- stage2-gawk
diff --git a/strata/build-essential/stage2-fake-bash.morph b/strata/build-essential/stage2-fake-bash.morph
new file mode 100644
index 00000000..021fd366
--- /dev/null
+++ b/strata/build-essential/stage2-fake-bash.morph
@@ -0,0 +1,4 @@
+name: stage2-fake-bash
+kind: chunk
+install-commands:
+- printf '#!/bin/sh\nexec /bin/sh "$@"\n' | install -D /proc/self/fd/0 -m 755 "$DESTDIR$PREFIX/bin/bash"