diff options
author | Vyacheslav Cherkashin <v.cherkashin@samsung.com> | 2019-03-18 20:10:02 +0300 |
---|---|---|
committer | Vyacheslav Cherkashin <v.cherkashin@samsung.com> | 2019-03-18 20:37:23 +0300 |
commit | 079df2deca64838017bb8262b319dccff65c7bd8 (patch) | |
tree | a95923d99b77ae198cb27619070baa4909f1b7c6 /build | |
parent | 3ff61ee2a67258a5e075a1d4e21ca4a2e35032d2 (diff) | |
download | rpm-079df2deca64838017bb8262b319dccff65c7bd8.tar.gz rpm-079df2deca64838017bb8262b319dccff65c7bd8.tar.bz2 rpm-079df2deca64838017bb8262b319dccff65c7bd8.zip |
Fix detection of rpm arch typesubmit/tizen_base/20190326.000421accepted/tizen/base/20190402.084607
`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.c | 2 |
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" |