Bug 1031328

Summary: libkleo fails to build with GCC 7
Product: [openSUSE] openSUSE Tumbleweed Reporter: Martin Liška <martin.liska>
Component: DevelopmentAssignee: Luca Beltrame <lbeltrame>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: dimstar
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 1030236    

Description Martin Liška 2017-03-28 12:12:37 UTC
https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/libkleo/standard/x86_64

[   28s] /home/abuild/rpmbuild/BUILD/libkleo-16.12.2/src/kleo/defaultkeyfilter.cpp: In function 'bool is_card_key(const GpgME::Key&)':
[   28s] /home/abuild/rpmbuild/BUILD/libkleo-16.12.2/src/kleo/defaultkeyfilter.cpp:45:30: error: 'mem_fn' is not a member of 'std'
[   28s]                          std::mem_fn(&Subkey::isCardKey)) != sks.end();
[   28s]                               ^~~~~~
[   28s] /home/abuild/rpmbuild/BUILD/libkleo-16.12.2/src/kleo/defaultkeyfilter.cpp:45:30: note: suggested alternative: 'mem_fun'
[   28s]                          std::mem_fn(&Subkey::isCardKey)) != sks.end();
[   28s]                               ^~~~~~
[   28s]                               mem_fun
[   28s] make[2]: *** [src/CMakeFiles/KF5Libkleo.dir/build.make:91: src/CMakeFiles/KF5Libkleo.dir/kleo/defaultkeyfilter.cpp.o] Error 1

Can be tested in openSUSE:Factory:Staging:Gcc7 project.
Comment 1 Luca Beltrame 2017-04-01 12:18:43 UTC
Should be fixed upstream, and we will get it automatically when KDE Applications 17.04 enters TW (the beta release is already under review).
Comment 2 Dominique Leuenberger 2017-05-16 17:33:47 UTC
KDE Applications 17.04 has entered TW - I rebased Staging:C; so we should soon get the result if this is really fixed
Comment 3 Antoine Belvire 2017-06-24 19:29:17 UTC
Resolved fixed by https://build.opensuse.org/request/show/496038.