diff options
author | CoprDistGit <infra@openeuler.org> | 2023-10-16 08:51:05 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-10-16 08:51:05 +0000 |
commit | 1cabb3ccb5222b459d643dc93c2607dfac702ffa (patch) | |
tree | cafff97469a1272a9b50ee404a490a4f19a79ba8 /mysql_config_multilib.sh | |
parent | b376534b0c4531c9bdae13fd3f922af950bfbc6b (diff) |
automatic import of mariadb
Diffstat (limited to 'mysql_config_multilib.sh')
-rw-r--r-- | mysql_config_multilib.sh | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/mysql_config_multilib.sh b/mysql_config_multilib.sh new file mode 100644 index 0000000..82edb26 --- /dev/null +++ b/mysql_config_multilib.sh @@ -0,0 +1,26 @@ +#! /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 + |