Source: kactivitymanagerd Version: 5.10.5-2 Tags: patch upstream User: helm...@debian.org Usertags: rebootstrap
kactivitymanagerd fails to cross build from source, because it checks for standard C++11 features (such as auto) with try_run. The build doesn't depend on these check results in any way and the upstream source pretty much assumes working auto. Thus these checks do not add any value. After removing them, kactivitymanagerd cross builds successfully. Please consider applying the attached patch. Helmut
Index: kactivitymanagerd-5.10.5/src/CMakeLists.txt =================================================================== --- kactivitymanagerd-5.10.5.orig/src/CMakeLists.txt +++ kactivitymanagerd-5.10.5/src/CMakeLists.txt @@ -21,16 +21,6 @@ add_definitions (-fexceptions) endif () -# Testing for C++0x/C++11 features -include (CheckCxxFeatures) -cxx_check_feature ("c++11" "auto" "N2546" HAVE_CXX11_AUTO "${ADDITIONAL_DEFINITIONS}") -cxx_check_feature ("c++11" "nullptr" "N2431" HAVE_CXX11_NULLPTR "${ADDITIONAL_DEFINITIONS}") -cxx_check_feature ("c++11" "lambda" "N2927" HAVE_CXX11_LAMBDA "${ADDITIONAL_DEFINITIONS}") -cxx_check_feature ("c++11" "override" "N3206" HAVE_CXX11_OVERRIDE "${ADDITIONAL_DEFINITIONS}") -cxx_check_feature ("c++11" "unique_ptr" "none" HAVE_CXX11_UNIQUE_PTR "${ADDITIONAL_DEFINITIONS}") -cxx_check_feature ("c++11" "variadic-templates" "N2242" HAVE_CXX11_VARIADIC_TEMPLATES "${ADDITIONAL_DEFINITIONS}") -cxx_check_feature ("c++11" "initializer-lists" "N2672" HAVE_CXX11_INITIALIZER_LISTS "${ADDITIONAL_DEFINITIONS}") - # ======================================================= # Starting the actual project definition Index: kactivitymanagerd-5.10.5/src/kactivities-features.h.cmake =================================================================== --- kactivitymanagerd-5.10.5.orig/src/kactivities-features.h.cmake +++ kactivitymanagerd-5.10.5/src/kactivities-features.h.cmake @@ -8,10 +8,4 @@ #cmakedefine KAMD_INSTALL_PREFIX "@KAMD_INSTALL_PREFIX@" -#cmakedefine01 HAVE_CXX11_AUTO -#cmakedefine01 HAVE_CXX11_NULLPTR -#cmakedefine01 HAVE_CXX11_LAMBDA -#cmakedefine01 HAVE_CXX11_OVERRIDE -#cmakedefine01 HAVE_CXX_OVERRIDE_ATTR - #endif