Bug 430952 - ECM Android.cmake fails at SORT type NATURAL
Summary: ECM Android.cmake fails at SORT type NATURAL
Status: RESOLVED WAITINGFORINFO
Alias: None
Product: neon
Classification: KDE Neon
Component: Packages User Edition (other bugs)
Version First Reported In: 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: 2025-09-20 09:36 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented 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
Comment 1 Carlos De Maine 2025-09-20 09:36:14 UTC
Thank you for your bug report! 
However this bug report was created/provided previous to 01/01/2023 and also has not received any updates since  before 01/01/2025. 
Unfortunately KDE neon no longer provides updates for anything older than noble 24.04 based edition's.
Please upgrade to KDE neon noble and if you can reproduce the issue after upgrading to an active version, feel free to re-open this bug report.
Thanks for understanding!