From f08a1d68228e9e87dc9c9dd59a9539570094320d Mon Sep 17 00:00:00 2001 From: Rafal Stefanowski Date: Thu, 1 Dec 2022 10:23:48 +0100 Subject: [PATCH] packages: Fix architecture detection Change uname flag for detecting current system architecture, as the old flag was not reporting proper architecture type on Debian distribution. According to uname documentation, the new flag is portable so it should be supported on all platforms. Signed-off-by: Rafal Stefanowski --- tools/pckgen.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/pckgen.sh b/tools/pckgen.sh index c93362f..902db8e 100755 --- a/tools/pckgen.sh +++ b/tools/pckgen.sh @@ -19,7 +19,7 @@ CAS_LICENSE_NAME="BSD-3-Clause" CAS_MODULES_DIR="extra/block/opencas" SUPPORTED_FROM_VERSION="20.03" THIS=$(basename "$0") -ARCH="$(uname -i)" +ARCH="$(uname -m)" SCRIPT_BASE_DIR=$(dirname $(realpath "$0")) RPM_SPEC_FILE="$SCRIPT_BASE_DIR/${THIS%.*}.d/rpm/CAS_NAME.spec" DEB_CONTROL_FILES_DIR="$SCRIPT_BASE_DIR/${THIS%.*}.d/deb/debian"