summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorVyacheslav Cherkashin <v.cherkashin@samsung.com>2019-03-18 20:10:02 +0300
committerVyacheslav Cherkashin <v.cherkashin@samsung.com>2019-03-18 20:37:23 +0300
commit079df2deca64838017bb8262b319dccff65c7bd8 (patch)
treea95923d99b77ae198cb27619070baa4909f1b7c6 /build
parent3ff61ee2a67258a5e075a1d4e21ca4a2e35032d2 (diff)
downloadrpm-079df2deca64838017bb8262b319dccff65c7bd8.tar.gz
rpm-079df2deca64838017bb8262b319dccff65c7bd8.tar.bz2
rpm-079df2deca64838017bb8262b319dccff65c7bd8.zip
`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 <v.cherkashin@samsung.com>
Diffstat (limited to 'build')
-rw-r--r--build/parseBuildInstallClean.c2
1 files changed, 1 insertions, 1 deletions
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"