aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGregor <dan.mcgregor@usask.ca>2014-05-30 15:39:48 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-06-10 17:10:33 +0100
commit26e46f935cc98845225c41d954b34b3312a4c37d (patch)
tree8968e8d8fcace862afb094324d94267bc28eb1ff
parentd5a9290649fb493b6ac8b585d82ee9f02d138147 (diff)
downloadopenembedded-core-contrib-26e46f935cc98845225c41d954b34b3312a4c37d.tar.gz
openembedded-core-contrib-26e46f935cc98845225c41d954b34b3312a4c37d.tar.bz2
openembedded-core-contrib-26e46f935cc98845225c41d954b34b3312a4c37d.zip
gzip: Avoid host contamination during build
On systems with /bin and /usr/bin merged the gzip recipe may find grep in /usr/bin, while OE puts it in /bin. Force the recipe to find grep in the correct place. (From OE-Core rev: 8ae714bb59c67433ded1efe6a8750e0e9c126dab) Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-extended/gzip/gzip.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-extended/gzip/gzip.inc b/meta/recipes-extended/gzip/gzip.inc
index 6ec1dae0fd..c6b865aba6 100644
--- a/meta/recipes-extended/gzip/gzip.inc
+++ b/meta/recipes-extended/gzip/gzip.inc
@@ -12,6 +12,8 @@ SRC_URI = "${GNU_MIRROR}/gzip/${BP}.tar.gz"
inherit autotools
+EXTRA_OEMAKE_class-target = "GREP=${base_bindir}/grep"
+
do_install_append () {
# Rename and move files into /bin (FHS), which is typical place for gzip
install -d ${D}${base_bindir}