Bug 430952 - ECM Android.cmake fails at SORT type NATURAL
Summary: ECM Android.cmake fails at SORT type NATURAL
Status: REPORTED
Alias: None
Product: neon
Classification: KDE Neon
Component: Packages User Edition (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Neon Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-29 18:44 UTC by wincak
Modified: 2020-12-29 18:44 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wincak 2020-12-29 18:44:38 UTC
SUMMARY
ECM (extra-cmake-modules) Android.cmake uses SORT type NATURAL, that is not available in system cmake version. According to cmake manual this type of sorting is available in cmake >= 3.18, while current system cmake is 3.16.3.
The installed version of Android.cmake (from package extra-cmake-modules 5.77.0-0xneon+20.04+focal+build12) claims that required cmake version is 3.7. This has been corrected upstream with commit: 3f466f67e15bb285b7041a0b6b85d72ffb98e059. 

STEPS TO REPRODUCE
1. Install system cmake and extra-cmake-modules
2. Try to build https://github.com/KDE/kirigami-gallery for Android

OBSERVED RESULT
Build fails with error:
CMake Error at /usr/share/ECM/toolchain/Android.cmake:145 (list):
  list sub-command SORT value "NATURAL" for option "COMPARE" is invalid.

EXPECTED RESULT
Build completes without error.

SOFTWARE/OS VERSIONS
Operating System: KDE neon 5.20
KDE Plasma Version: 5.20.4
KDE Frameworks Version: 5.77.0
Qt Version: 5.15.2
Kernel Version: 5.4.0-58-generic
OS Type: 64-bit
Processors: 4 × Intel® Core™ i7-3520M CPU @ 2.90GHz
Memory: 7,5 GiB of RAM
Graphics Processor: Mesa DRI Intel® HD Graphics 4000