Skip to content

Commit

Permalink
MDEV-23117 : Galera build script does not work in RHEL 8
Browse files Browse the repository at this point in the history
RHEL8 scoons has different name scons-3
  • Loading branch information
janlindstrom committed Apr 6, 2023
1 parent 06a0c28 commit 2c40f55
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions scripts/build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

set -eu
set -eux

# $Id$

Expand Down Expand Up @@ -52,6 +52,10 @@ Options:
EOF
}

# Scons executable on RHEL-8 is scons-3
SCONSBIN=scons
[[ -n "$(which scons-3)" ]] && SCONSBIN=scons-3

OS=$(uname)
# disable building vsbes by default
DISABLE_VSBES=${DISABLE_VSBES:-"yes"}
Expand Down Expand Up @@ -452,12 +456,12 @@ then

if [ "$SCRATCH" == "yes" ]
then
scons -Q -c --conf=force $scons_args $SCONS_OPTS
${SCONSBIN} -Q -c --conf=force $scons_args $SCONS_OPTS
fi

if [ "$SKIP_BUILD" != "yes" ]
then
scons $scons_args -j $JOBS $SCONS_OPTS
${SCONSBIN} $scons_args -j $JOBS $SCONS_OPTS
fi

elif test "$SKIP_BUILD" == "no"; then # Build using autotools
Expand Down

0 comments on commit 2c40f55

Please sign in to comment.