summaryrefslogtreecommitdiff
path: root/strata/coreutils-common-wrt/sed.morph
diff options
context:
space:
mode:
Diffstat (limited to 'strata/coreutils-common-wrt/sed.morph')
-rw-r--r--strata/coreutils-common-wrt/sed.morph16
1 files changed, 16 insertions, 0 deletions
diff --git a/strata/coreutils-common-wrt/sed.morph b/strata/coreutils-common-wrt/sed.morph
new file mode 100644
index 00000000..8565b0cf
--- /dev/null
+++ b/strata/coreutils-common-wrt/sed.morph
@@ -0,0 +1,16 @@
+name: sed
+kind: chunk
+build-system: autotools
+pre-configure-commands:
+- sed -i -e '/^buildreq="/,/^"/{/rsync/d}' bootstrap.conf
+- sed -i -e '/^buildreq="/,/^"/{/gettext/d}' bootstrap.conf
+- ./bootstrap --skip-po --no-git --gnulib-srcdir=gnulib
+
+configure-commands:
+- ac_c_werror_flag=no ./configure --prefix="$PREFIX" --disable-gcc-warnings --disable-nls
+
+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/