jjb: Use java 1.8 with SLES builds
authorKienan Stewart <kstewart@efficios.com>
Thu, 22 Feb 2024 18:06:56 +0000 (13:06 -0500)
committerKienan Stewart <kstewart@efficios.com>
Thu, 22 Feb 2024 18:06:56 +0000 (13:06 -0500)
Change-Id: I087b79efbd3490f9a854625beb8c29fec082ecb5
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
scripts/lttng-tools/build.sh
scripts/lttng-ust/build.sh

index c4b4fdb084fc91bcc1a20862de9cec3f2f8048e7..6c9f03b0e848af63a52c7627d66002f18085e087 100755 (executable)
@@ -327,6 +327,8 @@ agents)
     fi
     export CLASSPATH="$DEPS_JAVA/lttng-ust-agent-all.jar:/usr/share/java/log4j-api.jar:/usr/share/java/log4j-core.jar:/usr/share/java/log4j-1.2.jar"
     if [[ -f /etc/products.d/SLES.prod ]] ; then
+        export JAVA_HOME="/usr/${LIBDIR_ARCH}/jvm/java-1.8.0-openjdk-1.8.0"
+        export PATH="/usr/${LIBDIR_ARCH}/jvm/java-1.8.0-openjdk-1.8.0/bin:/usr/${LIBDIR_ARCH}/jvm/jre-1.8.0-openjdk/bin:${PATH}"
         SLES_VERSION="$(grep -E '</version>' /etc/products.d/SLES.prod | grep -E -o '[0-9]+\.[0-9]+')"
         if vergte "${SLES_VERSION}" "15.5" ; then
             export CLASSPATH="${DEPS_JAVA}/lttng-ust-agent-all.jar:/usr/share/java/log4j/log4j-api.jar:/usr/share/java/log4j/log4j-core.jar:/usr/share/java/log4j12/log4j-12.jar"
index 8d83d29905436ec2a621e354d0b9362997de617e..68fd2da49a71ea5ff20433f7cf1851df4625f4ce 100755 (executable)
@@ -200,6 +200,9 @@ freebsd*)
 esac
 
 if [[ -f /etc/products.d/SLES.prod ]] ; then
+    export JAVA_HOME="/usr/${LIBDIR_ARCH}/jvm/java-1.8.0-openjdk-1.8.0"
+    export PATH="/usr/${LIBDIR_ARCH}/jvm/java-1.8.0-openjdk-1.8.0/bin:/usr/${LIBDIR_ARCH}/jvm/jre-1.8.0-openjdk/bin:${PATH}"
+    # Used by automake
     SLES_VERSION="$(grep -E '</version>' /etc/products.d/SLES.prod | grep -E -o '[0-9]+\.[0-9]+')"
     if vergte "${SLES_VERSION}" "15.5" ; then
         export CLASSPATH='/usr/share/java/log4j/log4j-api.jar:/usr/share/java/log4j/log4j-core.jar:/usr/share/java/log4j12/log4j-12.jar'
This page took 0.024753 seconds and 4 git commands to generate.