diff options
author | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2015-10-25 16:47:07 +0000 |
---|---|---|
committer | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2016-01-27 18:13:21 +0000 |
commit | 36f2976076d38953d8ee8d0e9d03e4b65bb40004 (patch) | |
tree | e715fd853175b8f8699b2c6010e823237827d9f6 | |
parent | c8cb2ff3a3fcdd4ea294efb327f66ccff5a1598b (diff) | |
download | definitions-36f2976076d38953d8ee8d0e9d03e4b65bb40004.tar.gz |
coreutils-common: Add GNU grep
Change-Id: Ic2eaea6d25aa280f9acced5a7ea49641e4cbc6c1
-rw-r--r-- | strata/coreutils-common.morph | 5 | ||||
-rw-r--r-- | strata/coreutils-common/grep.morph | 13 |
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/ |