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-09 14:31:50 +0000
commitef96ea3ad88440710d60b71bc9b6db740b97e9d2 (patch)
tree9f2553cf94f0f7cc39a28f675127beb3d03764a4
parent43ff7a7473c5a8c095ed2d3b3f8c5dcbc7b42f9e (diff)
downloaddefinitions-ef96ea3ad88440710d60b71bc9b6db740b97e9d2.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 ecd77b12..6935968d 100644
--- a/strata/build-essential.morph
+++ b/strata/build-essential.morph
@@ -120,6 +120,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
@@ -200,6 +209,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"