jjb: update SLES detection in build scripts
authorMichael Jeanson <mjeanson@efficios.com>
Mon, 27 Mar 2023 18:51:01 +0000 (14:51 -0400)
committerMichael Jeanson <mjeanson@efficios.com>
Mon, 27 Mar 2023 18:51:39 +0000 (14:51 -0400)
Change-Id: I64b6f8a1950bcc31c4aa79c39fb9d40e080ca061
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
scripts/babeltrace/build.sh
scripts/liburcu/build.sh
scripts/lttng-tools/build.sh
scripts/lttng-ust/build.sh

index 6f2f0f76174e872aef508aa715f263291f300e7b..91681d01e39ac4c3c918671cd0c8d5836ee5300a 100755 (executable)
@@ -110,7 +110,7 @@ LIBDIR_ARCH="$LIBDIR"
 
 # 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/SuSE-release || -f /etc/yocto-release ) ]]; then
+if [[ ( -f /etc/redhat-release || -f /etc/products.d/SLES.prod || -f /etc/yocto-release ) ]]; then
     # Detect the userspace bitness in a distro agnostic way
     if file -L /bin/bash | grep '64-bit' >/dev/null 2>&1; then
         LIBDIR_ARCH="${LIBDIR}64"
index b4cc761e3eef10717d30e49b42c7f5e0f4fd8be0..c8f0c73fc9e461fe521eacdd0705b2f4f82aa1a9 100755 (executable)
@@ -102,7 +102,7 @@ LIBDIR_ARCH="$LIBDIR"
 
 # 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/SuSE-release || -f /etc/yocto-release ) ]]; then
+if [[ ( -f /etc/redhat-release || -f /etc/products.d/SLES.prod || -f /etc/yocto-release ) ]]; then
     # Detect the userspace bitness in a distro agnostic way
     if file -L /bin/bash | grep '64-bit' >/dev/null 2>&1; then
         LIBDIR_ARCH="${LIBDIR}64"
index fb9703f5e65fed2c5060034b81da42a138b8def6..3b0eb9d6485a250aa8c4949be33a840eed0e1108 100755 (executable)
@@ -119,7 +119,7 @@ LIBDIR_ARCH="$LIBDIR"
 
 # 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/SuSE-release || -f /etc/yocto-release ) ]]; then
+if [[ ( -f /etc/redhat-release || -f /etc/products.d/SLES.prod || -f /etc/yocto-release ) ]]; then
     # Detect the userspace bitness in a distro agnostic way
     if file -L /bin/bash | grep '64-bit' >/dev/null 2>&1; then
         LIBDIR_ARCH="${LIBDIR}64"
index b31f8ff817392bc8b72b8776f0f831ba4fd77689..a311594ca9dc6edffd7fbc4c3cb95e80476485ec 100755 (executable)
@@ -102,7 +102,7 @@ LIBDIR_ARCH="$LIBDIR"
 
 # 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/SuSE-release || -f /etc/yocto-release ) ]]; then
+if [[ ( -f /etc/redhat-release || -f /etc/products.d/SLES.prod || -f /etc/yocto-release ) ]]; then
     # Detect the userspace bitness in a distro agnostic way
     if file -L /bin/bash | grep '64-bit' >/dev/null 2>&1; then
         LIBDIR_ARCH="${LIBDIR}64"
This page took 0.027212 seconds and 4 git commands to generate.