aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Marshall <robert.marshall@codethink.co.uk>2016-09-21 10:26:36 +0100
committerRobert Marshall <robert.marshall@codethink.co.uk>2016-09-21 10:26:36 +0100
commit7033a0378dd7438835d2fe317142cf1332958168 (patch)
treec53614115132a2aaa875cd35670728d5866e91cd
parenta8e5770edd2fb8e949129ec5f72b58c826a990c9 (diff)
downloadmeta-ivi-7033a0378dd7438835d2fe317142cf1332958168.tar.gz
meta-ivi-7033a0378dd7438835d2fe317142cf1332958168.tar.bz2
meta-ivi-7033a0378dd7438835d2fe317142cf1332958168.zip
Fix build issue with java versions other than 1.8
[GDP-398] bitbake was spotting that grep was returning 1 This commit avoids that issue
-rw-r--r--meta-ivi/recipes-extended/common-api/capicxx-native.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-ivi/recipes-extended/common-api/capicxx-native.inc b/meta-ivi/recipes-extended/common-api/capicxx-native.inc
index f3300bd..58beda1 100644
--- a/meta-ivi/recipes-extended/common-api/capicxx-native.inc
+++ b/meta-ivi/recipes-extended/common-api/capicxx-native.inc
@@ -26,7 +26,7 @@ DD = "${D}${datadir}/${PN}-${PV}"
do_install() {
# work around for java-8
- java_version=`java -version 2>&1 | head -n 1 | grep '[ "]1\.8[\. "$$]'`
+ java_version=`java -version 2>&1 | head -n 1 | grep { '[ "]1\.8[\. "$$]' || true; }`
if [ "x${java_version}" != "x" ]; then
for i in x86 x86_64; do
perl -pi -e 's|-XX:PermSize=128m||' ${S}/${LAUNCHER_BASE}-linux-${i}.ini