diff options
author | Yury Usishchev <y.usishchev@samsung.com> | 2015-10-22 21:34:16 +0300 |
---|---|---|
committer | Yury Usishchev <y.usishchev@samsung.com> | 2015-10-22 21:34:16 +0300 |
commit | 0e16a9fa681db246e9a855bdfce96facf74b5d5c (patch) | |
tree | 57c2068ff75f86fdd2558c9f22a25dfded18710a | |
parent | c5eafdab618efebca009b698c34dc81b702c2f05 (diff) | |
download | qemu-accel-0e16a9fa681db246e9a855bdfce96facf74b5d5c.tar.gz qemu-accel-0e16a9fa681db246e9a855bdfce96facf74b5d5c.tar.bz2 qemu-accel-0e16a9fa681db246e9a855bdfce96facf74b5d5c.zip |
Change gcc version parsing
Linaro gcc have different version line
-rw-r--r-- | packaging/qemu-accel-aarch64.spec | 2 | ||||
-rw-r--r-- | packaging/qemu-accel-armv7l.spec | 2 | ||||
-rw-r--r-- | packaging/qemu-accel.spec | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/packaging/qemu-accel-aarch64.spec b/packaging/qemu-accel-aarch64.spec index 3a0a666..381d508 100644 --- a/packaging/qemu-accel-aarch64.spec +++ b/packaging/qemu-accel-aarch64.spec @@ -77,7 +77,7 @@ This package is used in qemu-accel to accelerate python. %build %install -gcc_version=`gcc --version | sed -ne '1s/.* //p'` +gcc_version=`gcc --version | sed -ne '1s/[^0-9]*\(\([0-9]\.\?\)*\).*/\1/p'` # just like it is determided in python.spec python_version=`python --version |& sed -ne '1s/.* //p' | head -c 3` diff --git a/packaging/qemu-accel-armv7l.spec b/packaging/qemu-accel-armv7l.spec index 3d07098..e0ede89 100644 --- a/packaging/qemu-accel-armv7l.spec +++ b/packaging/qemu-accel-armv7l.spec @@ -77,7 +77,7 @@ This package is used in qemu-accel to accelerate python. %build %install -gcc_version=`gcc --version | sed -ne '1s/.* //p'` +gcc_version=`gcc --version | sed -ne '1s/[^0-9]*\(\([0-9]\.\?\)*\).*/\1/p'` # just like it is determided in python.spec python_version=`python --version |& sed -ne '1s/.* //p' | head -c 3` diff --git a/packaging/qemu-accel.spec b/packaging/qemu-accel.spec index cab5fad..deaf9d4 100644 --- a/packaging/qemu-accel.spec +++ b/packaging/qemu-accel.spec @@ -74,7 +74,7 @@ This package is used in qemu-accel to accelerate python. %build %install -gcc_version=`gcc --version | sed -ne '1s/.* //p'` +gcc_version=`gcc --version | sed -ne '1s/[^0-9]*\(\([0-9]\.\?\)*\).*/\1/p'` # just like it is determided in python.spec python_version=`python --version |& sed -ne '1s/.* //p' | head -c 3` |