]> code.ossystems Code Review - openembedded-core.git/commit
apr: avoid absolute paths for grep
authorJackie Huang <jackie.huang@windriver.com>
Mon, 8 Dec 2014 06:08:03 +0000 (01:08 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 31 Dec 2014 10:17:45 +0000 (10:17 +0000)
commitbbfa5c57ee97a96acf0b280ce342a515744b89a2
tree05608deccf66b7e1037f9c03b5622d42051ba229
parent0c18fdd44accbcc04731e1e3f1ce1faa5e350db9
apr: avoid absolute paths for grep

The apr provides usr/share/build-1/libtool which is required by
the recipe such as apache2, and it will find grep on the host
and set absolute paths in libtool: GREP="/usr/bin/grep"

If we build apr/apr-native on a host that grep is in "/usr/bin/grep",
and re-use the sstate on another host with "/bin/grep", it will fail
when build apache2/apache2-native with:

| tmp/sysroots/x86_64-linux/usr/share/build-1/libtool: line 1093: /usr/bin/grep: No such file or directory
| tmp/sysroots/intel-x86-64/usr/share/build-1/libtool: line 1093: /usr/bin/grep: No such file or directory

(From OE-Core rev: 475709fc4f32e1ed01f45ee44819cd24e739eb43)

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/recipes-support/apr/apr_1.5.1.bb