LIBDIR="lib"
LIBDIR_ARCH="$LIBDIR"
-# Force the normal Python install layout without 'local' on Debian / Ubuntu
-export DEB_PYTHON_INSTALL_LAYOUT="deb"
-
# RHEL and SLES both use lib64 but don't bother shipping a default autoconf
# site config that matches this.
if [[ ( -f /etc/redhat-release || -f /etc/products.d/SLES.prod || -f /etc/yocto-release ) ]]; then
export PYTHON="python3"
export PYTHON_CONFIG="python3-config"
export CLASSPATH='/usr/local/share/java/classes/*'
- export JAVA_HOME='/usr/local/openjdk11'
+ export JAVA_HOME='/usr/local/openjdk17'
;;
*)
;;
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.4" ; then
+ export CLASSPATH='/usr/share/java/log4j/log4j-api.jar:/usr/share/java/log4j/log4j-core.jar:/usr/share/java/log4j12/log4j-12.jar'
+ fi
+fi
+
# Print build env details
print_header "Build environment details"
+print_hardware || true
print_os || true
print_tooling || true