summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikolai Merinov <n.merinov@samsung.com>2019-01-29 11:18:57 +0300
committerNikolai Merinov <n.merinov@samsung.com>2019-01-29 11:37:56 +0300
commit08cccaab45a70795f6bb72184e84640dafe315f5 (patch)
tree0e2d548593644fae08129a0df024c822f8c6a6d7
parent9d190f67faec2914e9347d21e485077f1d6e5f7c (diff)
downloadqemu-accel-sandbox/nmerinov/llvm.tar.gz
qemu-accel-sandbox/nmerinov/llvm.tar.bz2
qemu-accel-sandbox/nmerinov/llvm.zip
Remove requirements of host gccsandbox/nmerinov/llvm
-rw-r--r--packaging/qemu-accel-aarch64.spec2
-rw-r--r--packaging/qemu-accel-armv7hl.spec2
-rw-r--r--packaging/qemu-accel-armv7l.spec2
-rw-r--r--packaging/qemu-accel.spec.in2
4 files changed, 4 insertions, 4 deletions
diff --git a/packaging/qemu-accel-aarch64.spec b/packaging/qemu-accel-aarch64.spec
index 4d96c9e..6d2101c 100644
--- a/packaging/qemu-accel-aarch64.spec
+++ b/packaging/qemu-accel-aarch64.spec
@@ -130,7 +130,7 @@ This package is used in qemu-accel to accelerate clang compiler.
%install
set +x
-gcc_version=`gcc --version | sed -ne '1s/[^0-9]*\(\([0-9]\.\?\)*\).*/\1/p'`
+gcc_version=`%{target_arch}-gcc --version | sed -ne '1s/[^ ]*[^0-9]*\(\([0-9]\.\?\)*\).*/\1/p'`
# just like it is determided in python.spec
python_version=`python --version 2>&1 | sed -ne '1s/.* //p' | head -c 3`
diff --git a/packaging/qemu-accel-armv7hl.spec b/packaging/qemu-accel-armv7hl.spec
index fc5d190..9172bc2 100644
--- a/packaging/qemu-accel-armv7hl.spec
+++ b/packaging/qemu-accel-armv7hl.spec
@@ -130,7 +130,7 @@ This package is used in qemu-accel to accelerate clang compiler.
%install
set +x
-gcc_version=`gcc --version | sed -ne '1s/[^0-9]*\(\([0-9]\.\?\)*\).*/\1/p'`
+gcc_version=`%{target_arch}-gcc --version | sed -ne '1s/[^ ]*[^0-9]*\(\([0-9]\.\?\)*\).*/\1/p'`
# just like it is determided in python.spec
python_version=`python --version 2>&1 | sed -ne '1s/.* //p' | head -c 3`
diff --git a/packaging/qemu-accel-armv7l.spec b/packaging/qemu-accel-armv7l.spec
index bd36086..b15b8f6 100644
--- a/packaging/qemu-accel-armv7l.spec
+++ b/packaging/qemu-accel-armv7l.spec
@@ -130,7 +130,7 @@ This package is used in qemu-accel to accelerate clang compiler.
%install
set +x
-gcc_version=`gcc --version | sed -ne '1s/[^0-9]*\(\([0-9]\.\?\)*\).*/\1/p'`
+gcc_version=`%{target_arch}-gcc --version | sed -ne '1s/[^ ]*[^0-9]*\(\([0-9]\.\?\)*\).*/\1/p'`
# just like it is determided in python.spec
python_version=`python --version 2>&1 | sed -ne '1s/.* //p' | head -c 3`
diff --git a/packaging/qemu-accel.spec.in b/packaging/qemu-accel.spec.in
index 5fb3dcb..f206e0b 100644
--- a/packaging/qemu-accel.spec.in
+++ b/packaging/qemu-accel.spec.in
@@ -127,7 +127,7 @@ This package is used in qemu-accel to accelerate clang compiler.
%install
set +x
-gcc_version=`gcc --version | sed -ne '1s/[^0-9]*\(\([0-9]\.\?\)*\).*/\1/p'`
+gcc_version=`%{target_arch}-gcc --version | sed -ne '1s/[^ ]*[^0-9]*\(\([0-9]\.\?\)*\).*/\1/p'`
# just like it is determided in python.spec
python_version=`python --version 2>&1 | sed -ne '1s/.* //p' | head -c 3`