1. Apply all the patch fixes in old branches. 2. Adaptive the latest cmake version and change spec file. 3. Refresh the systemd services files accordlly. 4. Fix up all scripts when cmake is too new for mariadb. (cherry picked from commit 91ecc4121887ef7f6568932a32523a43ab88b0a3)
27 lines
525 B
Bash
27 lines
525 B
Bash
#! /bin/sh
|
|
#
|
|
# Wrapper script for mysql_config to support multilib
|
|
#
|
|
# This command respects setarch
|
|
|
|
bits=$(rpm --eval %__isa_bits)
|
|
|
|
case $bits in
|
|
32|64) status=known ;;
|
|
*) status=unknown ;;
|
|
esac
|
|
|
|
if [ "$status" = "unknown" ] ; then
|
|
echo "$0: error: command 'rpm --eval %__isa_bits' returned unknown value: $bits"
|
|
exit 1
|
|
fi
|
|
|
|
|
|
if [ -x /usr/bin/mysql_config-$bits ] ; then
|
|
/usr/bin/mysql_config-$bits "$@"
|
|
else
|
|
echo "$0: error: needed binary: /usr/bin/mysql_config-$bits is missing"
|
|
exit 1
|
|
fi
|
|
|