From 4ba344339136825374633083648507f54b096d79 Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Sun, 25 Oct 2015 16:47:07 +0000 Subject: coreutils-common: Add GNU grep Change-Id: Ic2eaea6d25aa280f9acced5a7ea49641e4cbc6c1 --- strata/coreutils-common.morph | 5 +++++ strata/coreutils-common/grep.morph | 13 +++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 strata/coreutils-common/grep.morph 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/ -- cgit v1.2.1