summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMyungJoo Ham <myungjoo.ham@samsung.com>2017-10-11 07:11:11 (GMT)
committerMyungJoo Ham <myungjoo.ham@samsung.com>2017-10-30 02:54:52 (GMT)
commit779ea3dfb35edaa240c69bbe261d10916876cecf (patch)
tree1babc1e468e66d9238f7f0d348677639a2820248
parentd2da1d795e53547eea754244b6c9f85c539a1c73 (diff)
downloadcmake-sandbox/mzx/3.9.4.zip
cmake-sandbox/mzx/3.9.4.tar.gz
cmake-sandbox/mzx/3.9.4.tar.bz2
Workaround for qemu before Tizen:Base accepting thissandbox/mzx/3.9.4
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 <myungjoo.ham@samsung.com>
-rw-r--r--packaging/cmake.spec20
1 files changed, 20 insertions, 0 deletions
diff --git a/packaging/cmake.spec b/packaging/cmake.spec
index 13b0c0a..7036694 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,-)