From 5959e2fac63ece49720597979856d3f68ab943a7 Mon Sep 17 00:00:00 2001 From: Keshav Yadav <73339349+keshayad@users.noreply.github.com> Date: Tue, 11 May 2021 18:04:21 +0100 Subject: [PATCH] packager: fetch glibc corresponding to the architecture (#120) --- packaging/packager | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packaging/packager b/packaging/packager index d333891..ab27526 100755 --- a/packaging/packager +++ b/packaging/packager @@ -45,6 +45,7 @@ done set -- "${POSITIONAL[@]}" # restore positional parameters PKG_BIN_PATH=$1 +architecture=$(arch) if [ ! -f "$PKG_BIN_PATH" ]; then echo "$PKG_BIN_PATH" - No such file.; @@ -73,8 +74,8 @@ function package_libc_via_dpkg() { function package_libc_via_rpm() { if type rpm > /dev/null 2>&1; then - if [[ $(rpm --query --list glibc.x86_64 | wc -l) -gt 1 ]]; then - rpm --query --list glibc.x86_64 | sed -E '/\.so$|\.so\.[0-9]+$/!d' + if [[ $(rpm --query --list glibc.$architecture | wc -l) -gt 1 ]]; then + rpm --query --list glibc.$architecture | sed -E '/\.so$|\.so\.[0-9]+$/!d' fi fi }