32e03b2cdd
Move content from stx-gplv2 into stx-integ Packages will be relocated to stx-integ: base/ bash cgcs-users cluster-resource-agents dpkg haproxy libfdt netpbm rpm database/ mariadb filesystem/ iscsi-initiator-utils filesystem/drbd/ drbd-tools kernel/kernel-modules/ drbd integrity intel-e1000e intel-i40e intel-i40evf intel-ixgbe intel-ixgbevf qat17 tpmdd ldap/ ldapscripts networking/ iptables net-tools Change-Id: Ibc2ad09bef7a7f40e337513a1694a22f38d7f4e9 Story: 2002801 Task: 22687 Signed-off-by: Scott Little <scott.little@windriver.com>
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 @bindir@/mysql_config-$bits ] ; then
|
|
@bindir@/mysql_config-$bits "$@"
|
|
else
|
|
echo "$0: error: needed binary: @bindir@/mysql_config-$bits is missing"
|
|
exit 1
|
|
fi
|
|
|