summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMyungJoo Ham <myungjoo.ham@samsung.com>2017-10-11 16:11:11 +0900
committerMyungJoo Ham <myungjoo.ham@samsung.com>2017-10-30 11:54:52 +0900
commit779ea3dfb35edaa240c69bbe261d10916876cecf (patch)
tree1babc1e468e66d9238f7f0d348677639a2820248
parentd2da1d795e53547eea754244b6c9f85c539a1c73 (diff)
downloadcmake-779ea3dfb35edaa240c69bbe261d10916876cecf.tar.gz
cmake-779ea3dfb35edaa240c69bbe261d10916876cecf.tar.bz2
cmake-779ea3dfb35edaa240c69bbe261d10916876cecf.zip
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 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,-)