build on arch linux

Co-authored-by: ccat3z <fzhang.chn@foxmail.com>
Co-authored-by: LINxiansheng <wangzelin19961202@gmail.com>
This commit is contained in:
LINxiansheng
2022-04-07 10:51:52 +08:00
committed by LINxiansheng
parent d37c871fea
commit 021cb19e6c
3 changed files with 10 additions and 2 deletions

View File

@ -41,6 +41,7 @@ OceanBase 数据库使用 [MulanPubL - 2.0](http://license.coscl.org.cn/MulanPub
| 操作系统 | 版本 | 架构 | 编译 | 包部署 | 编译部署 | mysqltest |
| ---- | ---- | ---- | ---- | ---- | ---- | ---- |
| Alibaba Cloud Linux | 2.1903 | x86_64 | ✅ | ✅ | ✅ | ✅ |
| Arch | Rolling | x86_64 | ✅ | ❌ | ❌ | ❌ |
| CentOS | 7.2, 8.3 | x86_64 | ✅ | ✅ | ✅ | ✅ |
| Debian | 9.8, 10.9 | x86_64 | ✅ | ✅ | ✅ | ✅ |
| Fedora | 33 | x86_64 | ✅ | ✅ | ✅ | ✅ |

View File

@ -48,6 +48,7 @@ OceanBase Database is under [MulanPubL - 2.0](http://license.coscl.org.cn/MulanP
| OS | Ver. | Arch | Compilable | Package Deployable | Compiled Binary Deployable | Mysqltest Passed |
| ---- | ---- | ---- | ---- | ---- | ---- | ---- |
| Alibaba Cloud Linux | 2.1903 | x86_64 | ✅ | ✅ | ✅ | ✅ |
| Arch | Rolling | x86_64 | ✅ | ❌ | ❌ | ❌ |
| CentOS | 7.2, 8.3 | x86_64 | ✅ | ✅ | ✅ | ✅ |
| Debian | 9.8, 10.9 | x86_64 | ✅ | ✅ | ✅ | ✅ |
| Fedora | 33 | x86_64 | ✅ | ✅ | ✅ | ✅ |

View File

@ -72,6 +72,9 @@ function get_os_release() {
uos)
version_ge "20" && compat_centos7 && return
;;
arch)
compat_centos8 && return
;;
esac
elif [[ "${OS_ARCH}x" == "aarch64x" ]]; then
case "$ID" in
@ -169,8 +172,11 @@ do
fi
fi
echo -e "unpack package <${pkg}>... \c"
rpm2cpio "${PWD}/pkg/${pkg}" | cpio -di -u --quiet
if [ "$ID" = "arch" ]; then
rpmextract.sh "${PWD}/pkg/${pkg}"
else
rpm2cpio "${PWD}/pkg/${pkg}" | cpio -di -u --quiet
fi
if [[ $? -eq 0 ]]; then
echo "SUCCESS"
else