]> code.ossystems Code Review - openembedded-core.git/commitdiff
gzip: Avoid host contamination during build
authorDan McGregor <dan.mcgregor@usask.ca>
Fri, 30 May 2014 21:39:48 +0000 (15:39 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 1 Jun 2014 13:28:35 +0000 (14:28 +0100)
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.

Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/gzip/gzip.inc

index 920b256d438ffe1b84515f0e79a686dc49c1eda2..5f0a5cab369d51505aebea0499e35423ccb63edb 100644 (file)
@@ -12,6 +12,8 @@ SRC_URI = "${GNU_MIRROR}/gzip/${BP}.tar.gz"
 
 inherit autotools texinfo
 
+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}