Created attachment 637808 [details] build.log Compilation fails with: kicad-5.1.5/common/lib_tree_model.cpp:78:14: error: ‘sort’ is not a member of ‘std’; did you mean ‘sqrt’? kicad-5.1.5/common/lib_tree_model.cpp:90:10: error: ‘sort’ is not a member of ‘std’; did you mean ‘sqrt’? The attached patch #includes <algorithm> in the offending file. I successfully compiled kicad-5.1.5-r1 on 2020-02-12. Maybe some shuffling in the headers of boost-1.73 is at fault or i switched to a newer gcc since then... Including <algorithm> when using an algorithm is right in any case. I will check the upstream project in the coming days to get this fixed.
Created attachment 637810 [details] emerge --info '=sci-electronics/kicad-5.1.5-r1::gentoo' (after the fix)
Created attachment 637812 [details, diff] kicad-5.1.5-sort.patch
You beat me to it by a nose. I was busy making a boost patch for openscad first ;) Anyway, can confirm this is the correct fix.
Upstream merge request: https://gitlab.com/kicad/code/kicad/-/merge_requests/207
Ran into this today myself. Thanks for the patch, working on new revision of the ebuild.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0eea69141f8a758b5205b69a1495332aff9e78e9 commit 0eea69141f8a758b5205b69a1495332aff9e78e9 Author: Zoltan Puskas <zoltan@sinustrom.info> AuthorDate: 2019-12-19 10:26:24 +0000 Commit: Alexey Shvetsov <alexxy@gentoo.org> CommitDate: 2020-05-14 10:34:07 +0000 sci-electronics/kicad: Fix build failure and QA Fix recent build failure in KiCAD. Also apply backported patches from upstream to address QA issues that remained since introducing this version of the ebuild. Package-Manager: Portage-2.3.80, Repoman-2.3.19 Signed-off-by: Zoltan Puskas <zoltan@sinustrom.info> Closes: https://bugs.gentoo.org/682480 Closes: https://bugs.gentoo.org/722288 Signed-off-by: Alexey Shvetsov <alexxy@gentoo.org> .../kicad/files/kicad-5.1.5-ninja-build.patch | 6 +++--- .../kicad/files/kicad-5.1.5-strict-aliasing.patch | 25 ++++++++++++++++++++++ .../kicad/files/kicad-algorithm-header.patch | 11 ++++++++++ sci-electronics/kicad/files/kicad-metainfo.patch | 12 +++++++++++ ...kicad-5.1.5-r1.ebuild => kicad-5.1.5-r2.ebuild} | 17 ++++++++++++++- 5 files changed, 67 insertions(+), 4 deletions(-)
My request has been merged. Will appear in 5.1.7.