summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alvarez <pedro.alvarez@codethink.co.uk>2015-10-25 16:47:07 +0000
committerPedro Alvarez <pedro.alvarez@codethink.co.uk>2015-10-25 16:47:25 +0000
commit4ba344339136825374633083648507f54b096d79 (patch)
treecb3c0f08b26d832e8b853475d7e065cab4760abb
parentd3e39b69d4a5b5f1c13c76195102531dec9889af (diff)
downloaddefinitions-4ba344339136825374633083648507f54b096d79.tar.gz
coreutils-common: Add GNU grep
Change-Id: Ic2eaea6d25aa280f9acced5a7ea49641e4cbc6c1
-rw-r--r--strata/coreutils-common.morph5
-rw-r--r--strata/coreutils-common/grep.morph13
2 files changed, 18 insertions, 0 deletions
diff --git a/strata/coreutils-common.morph b/strata/coreutils-common.morph
index 2ad2d866..aec6fb8e 100644
--- a/strata/coreutils-common.morph
+++ b/strata/coreutils-common.morph
@@ -38,3 +38,8 @@ chunks:
repo: upstream:findutils
ref: ee6b25541336f9d74624ca814538ddc8c67f0732
unpetrify-ref: baserock/v4.5.14
+- name: grep
+ morph: strata/coreutils-common/grep.morph
+ repo: upstream:grep
+ ref: 2c729ff5924c91df3417b1dfab0b49e09f618cbe
+ unpetrify-ref: baserock/v2.21
diff --git a/strata/coreutils-common/grep.morph b/strata/coreutils-common/grep.morph
new file mode 100644
index 00000000..ae35fa9e
--- /dev/null
+++ b/strata/coreutils-common/grep.morph
@@ -0,0 +1,13 @@
+name: grep
+kind: chunk
+build-system: autotools
+pre-configure-commands:
+- sed -i -e '/^buildreq="/,/^"/{/rsync/d}' bootstrap.conf
+- bash bootstrap --skip-po --no-git --gnulib-srcdir=gnulib
+configure-commands:
+- ./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/grep "$DESTDIR"/bin/