Summary: | dev-cpp/clucene-2.3.3.4-r8: Exposes deprecated/removed std::binary_function in public headers | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Manuel Nickschas <sputnick> |
Component: | Current packages | Assignee: | No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | sam |
Priority: | Normal | Keywords: | PATCH, PullRequest |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/gentoo/gentoo/pull/30547 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 408963, 853298 | ||
Attachments: |
emerge.info
remoe-binary-function.patch |
Description
Manuel Nickschas
2022-09-08 11:02:55 UTC
Created attachment 803950 [details]
emerge.info
Created attachment 858825 [details, diff]
remoe-binary-function.patch
With clang-16, Clucene itself no longer builds for the same reason of using std::binary_function, most likely because the default language standard was bumped to C++17. So it's no longer just about exposing deprecated language features in public headers.
Attached patch fixes the issues for me. It's my understanding that std::binary_function (and std::unary_function, for that matter) can just be removed in modern versions of C++.
Same error with clang-17, see https://github.com/gentoo/gentoo/pull/30547 As a workaround, you can add -D_LIBCPP_ENABLE_CXX17_REMOVED_FEATURES or -stdlib=libstdc++ to CXXFLAGS while building clucene. (In reply to Seryoga Leshii from comment #4) > As a workaround, you can add -D_LIBCPP_ENABLE_CXX17_REMOVED_FEATURES or > -stdlib=libstdc++ to CXXFLAGS while building clucene. Thank you! This got inkscape working for me too with clang 16 :D The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ba9c12d6ed1d6054c055bea8480e2d0132ae8eb commit 1ba9c12d6ed1d6054c055bea8480e2d0132ae8eb Author: LinuxUserGD <hugegameartgd@gmail.com> AuthorDate: 2023-04-10 22:01:01 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-06-28 21:13:55 +0000 dev-cpp/clucene: fix removed std::binary_function in c++17 Closes: https://bugs.gentoo.org/853298 Closes: https://bugs.gentoo.org/869170 Signed-off-by: LinuxUserGD <hugegameartgd@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/30547 Signed-off-by: Sam James <sam@gentoo.org> ...2.3.3.4-r8.ebuild => clucene-2.3.3.4-r9.ebuild} | 1 + .../clucene-2.3.3.4-fix-binary-function.patch | 199 +++++++++++++++++++++ 2 files changed, 200 insertions(+) |