diff --git a/kdeedu-4.5.5-kig_python_scripter_lowmem.patch b/kdeedu-4.5.5-kig_python_scripter_lowmem.patch new file mode 100644 index 0000000..05a7947 --- /dev/null +++ b/kdeedu-4.5.5-kig_python_scripter_lowmem.patch @@ -0,0 +1,12 @@ +diff -up kdeedu-4.5.5/kig/CMakeLists.txt.arm kdeedu-4.5.5/kig/CMakeLists.txt +--- kdeedu-4.5.5/kig/CMakeLists.txt.arm 2010-06-08 05:11:06.000000000 -0500 ++++ kdeedu-4.5.5/kig/CMakeLists.txt 2011-02-25 11:38:58.132866347 -0600 +@@ -142,7 +142,7 @@ if(BOOST_PYTHON_FOUND) + scripting/script_mode.cc + ) + +- set_source_files_properties(scripting/python_scripter.cc PROPERTIES COMPILE_FLAGS "${KDE4_ENABLE_EXCEPTIONS}") ++ set_source_files_properties(scripting/python_scripter.cc PROPERTIES COMPILE_FLAGS "${KDE4_ENABLE_EXCEPTIONS} -fno-var-tracking-assignments -O0") + endif(BOOST_PYTHON_FOUND) + + diff --git a/kdeedu.spec b/kdeedu.spec index 9f4d4c3..8a5a388 100644 --- a/kdeedu.spec +++ b/kdeedu.spec @@ -19,6 +19,8 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) ## upstreamable patches # fix build using gpsd-2.39 Patch51: kdeedu-4.5.2-marble_gpsd_api.patch +# try to workaround ftbfs on arm due to low vm +Patch52: kdeedu-4.5.5-kig_python_scripter_lowmem.patch ## upstream patches @@ -198,6 +200,9 @@ Group: System Environment/Libraries %setup -q -n kdeedu-%{version}%{?alphatag} %patch51 -p1 -b .marble_gpsd_api +%ifarch armv5tel +%patch52 -p1 -b .kig_python_scripter_lowmem +%endif %build mkdir -p %{_target_platform}