From 079df2deca64838017bb8262b319dccff65c7bd8 Mon Sep 17 00:00:00 2001 From: Vyacheslav Cherkashin Date: Mon, 18 Mar 2019 20:10:02 +0300 Subject: Fix detection of rpm arch type `uname -m` command does not correctly identify the architecture to build the package because the buildroot architecture may be different from the kernel architecture Change-Id: Ic88898ddd9317301305a2c5c676857186ccb96ac Signed-off-by: Vyacheslav Cherkashin --- build/parseBuildInstallClean.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build') diff --git a/build/parseBuildInstallClean.c b/build/parseBuildInstallClean.c index f7b4bb715..7cfd70755 100644 --- a/build/parseBuildInstallClean.c +++ b/build/parseBuildInstallClean.c @@ -49,7 +49,7 @@ int parseBuildInstallClean(rpmSpec spec, int parsePart) if (parsePart == PART_BUILD) { char* buf = strdup( - "if [[ `uname -m` == \"aarch64\" ]]; then\n" + "if [[ $RPM_ARCH == \"aarch64\" ]]; then\n" "ref=/usr/lib/rpm\n" "for s in guess sub; do\n" " for c in $(find -maxdepth 8 -name \"config.$s\"); do\n" -- cgit v1.2.3