aboutsummaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
authorGravatar Bernd Kuhls <bernd.kuhls@t-online.de>2014-08-16 11:44:38 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-08-17 21:01:10 +0200
commit7fa43f911be83555df8789e4739816e762e1ff26 (patch)
treea544985515ab3a429f5c4572dc94a102c6024d2c /support
parentdce24bba0d2e85eb4bae50e2b061bd3f3bcbd531 (diff)
downloadbuildroot-7fa43f911be83555df8789e4739816e762e1ff26.tar.gz
buildroot-7fa43f911be83555df8789e4739816e762e1ff26.tar.bz2
dependencies: Reject gcj in BR2_NEEDS_HOST_JAVA check
Xbmc uses the Groovy java package to generate API code, for details see http://wiki.xbmc.org/index.php?title=Codegeneration#How_it_works Groovy itself is broken when used with gcj: http://jira.codehaus.org/browse/GROOVY-3701 Xbmc recommends to use another java package instead, like openjdk: http://forum.xbmc.org/showthread.php?tid=199742 Until we come up with a host package to provide a java setup and in order to make autobuilder happy let´s reject gcj when we check for a java installation on the host. Currently Xbmc is the only package using BR2_NEEDS_HOST_JAVA so changing the behaviour of dependencies.sh has no side effects. Fixes http://autobuild.buildroot.net/results/213/213d7454a1dc68cfb8f4c8d9508f52ebf8e58e33/ http://autobuild.buildroot.net/results/639/639cda872cf36c122cbd6139dd76f6b51ac1864e/ http://autobuild.buildroot.net/results/c9e/c9eb12c95b2939c64590692a82af8d84bbd90956/ Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'support')
-rwxr-xr-xsupport/dependencies/dependencies.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/support/dependencies/dependencies.sh b/support/dependencies/dependencies.sh
index 88e5ad23b4..a9c5b311ce 100755
--- a/support/dependencies/dependencies.sh
+++ b/support/dependencies/dependencies.sh
@@ -189,6 +189,13 @@ fi
if grep -q ^BR2_NEEDS_HOST_JAVA=y $BR2_CONFIG ; then
check_prog_host "java"
+ JAVA_GCJ=$(java -version 2>&1 | grep gcj)
+ if [ ! -z "$JAVA_GCJ" ] ; then
+ echo
+ echo "$JAVA_GCJ is not sufficient to compile your package selection."
+ echo "Please install an OpenJDK/IcedTea/Oracle Java."
+ exit 1 ;
+ fi
fi
if grep -q ^BR2_NEEDS_HOST_JAVAC=y $BR2_CONFIG ; then