From 779ea3dfb35edaa240c69bbe261d10916876cecf Mon Sep 17 00:00:00 2001 From: MyungJoo Ham Date: Wed, 11 Oct 2017 16:11:11 +0900 Subject: Workaround for qemu before Tizen:Base accepting this QEMU is executing the previous version of cmake for arm. Until Tizen:Base and qemu accepts the new version, we need a workaround for packages requiring Cmake 3.9.4 Signed-off-by: MyungJoo Ham --- packaging/cmake.spec | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/packaging/cmake.spec b/packaging/cmake.spec index 13b0c0a0a..70366943e 100644 --- a/packaging/cmake.spec +++ b/packaging/cmake.spec @@ -16,6 +16,13 @@ BuildRequires: pkgconfig(zlib) BuildRequires: procps BuildRequires: ncurses-devel BuildRequires: gcc-c++ +# To remove /emul/usr/bin/cmake, it should be installed before cmake +%ifarch armv7l +Requires: qemu-accel-x86_64-armv7l +%endif +%ifarch aarch64 +Requires: qemu-accel-x86_64-aarch64 +%endif %description CMake is used to control the software compilation process using simple platform @@ -62,6 +69,19 @@ fdupes %{buildroot}%{_datadir}/%{name} %docs_package +%post +%ifarch armv7l aarch64 +# WORKAROUND before Tizen:Base accepting Cmake 3.9 +if echo `cmake --version` | grep -q "%{version}" +then + echo "The correct version is working" +else + echo "Probably qemu is executing previous version. Remove it." + rm -f /emul/usr/bin/cmake + rm -f /emul/usr/bin/ccmake +fi +%endif + %files %manifest %{name}.manifest %defattr(-,root,root,-) -- cgit v1.2.3