summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--strata/coreutils-common.morph7
-rw-r--r--strata/coreutils-common/sed.morph11
2 files changed, 18 insertions, 0 deletions
diff --git a/strata/coreutils-common.morph b/strata/coreutils-common.morph
index 9c5c38fe..427199a3 100644
--- a/strata/coreutils-common.morph
+++ b/strata/coreutils-common.morph
@@ -13,3 +13,10 @@ chunks:
ref: 9df9643842e4b4d8ece710fe6105f32fa38a0d22
unpetrify-ref: baserock/8.23
build-depends: []
+- name: sed
+ morph: strata/coreutils-common/sed.morph
+ repo: upstream:sed
+ ref: ed4b1d7c04f92b330b940d4f0d02cd51d2473ce9
+ unpetrify-ref: baserock/morph
+ build-depends:
+ - coreutils
diff --git a/strata/coreutils-common/sed.morph b/strata/coreutils-common/sed.morph
new file mode 100644
index 00000000..e426afe7
--- /dev/null
+++ b/strata/coreutils-common/sed.morph
@@ -0,0 +1,11 @@
+me: sed
+kind: chunk
+build-system: autotools
+configure-commands:
+- ./bootstrap --skip-po
+- ./configure --prefix="$PREFIX" --disable-gcc-warnings
+post-install-commands:
+# This hack is to use GNU sed instead the busybox one.
+# This will dissappear when we merge /usr/bin and /bin.
+- mkdir -p "$DESTDIR"/bin/
+- ln -sf ../usr/bin/sed "$DESTDIR"/bin/