New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dev-cpp/clucene: fix removed std::binary_function in c++17 #30547
Conversation
Pull request CI reportReport generated at: 2023-04-10 22:48 UTC There are existing issues already. Please look into the report to make sure none of them affect the packages in question: |
Pull request CI reportReport generated at: 2023-04-10 23:13 UTC There are existing issues already. Please look into the report to make sure none of them affect the packages in question: |
Pull request CI reportReport generated at: 2023-04-10 23:53 UTC There are existing issues already. Please look into the report to make sure none of them affect the packages in question: |
Pull request CI reportReport generated at: 2023-04-11 01:08 UTC There are existing issues already. Please look into the report to make sure none of them affect the packages in question: |
dev-cpp/clucene/files/clucene-2.3.3.4-fix-binary-function.patch
Outdated
Show resolved
Hide resolved
Pull request CI reportReport generated at: 2023-04-11 18:18 UTC There are existing issues already. Please look into the report to make sure none of them affect the packages in question: |
Pull Request assignmentSubmitter: @LinuxUserGD dev-cpp/clucene: @gentoo/proxy-maint (maintainer needed) Linked bugsBugs linked: 869170 In order to force reassignment and/or bug reference scan, please append Docs: Code of Conduct ● Copyright policy (expl.) ● Devmanual ● GitHub PRs ● Proxy-maint guide |
Pull request CI reportReport generated at: 2023-04-15 17:23 UTC There are existing issues already. Please look into the report to make sure none of them affect the packages in question: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't compile this it seems,
FAILED: src/shared/CMakeFiles/clucene-shared.dir/CLucene/util/StringBuffer.o
/usr/bin/x86_64-pc-linux-gnu-g++ -DMAKE_CLUCENE_SHARED_LIB -Dclucene_shared_EXPORTS -I/var/tmp/portage/dev-cpp/clucene-2.3.3.4-r9/work/clucene-core-2.3.3.4/src/shared -I/var/tmp/portage/dev-cpp/clucene-2.3.3.4-r9/work/clucene-2.3.3.4_build/src/shared -I/var/tmp/portage/dev-cpp/ clucene-2.3.3.4-r9/work/clucene-core-2.3.3.4/src/core -I/var/tmp/portage/dev-cpp/clucene-2.3.3.4-r9/work/clucene-core-2.3.3.4/src/ext -march=native -O2 -pipe -frecord-gcc-switches -fPIC -ansi -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -D_REENTRANT -D_UCS2 - D_UNICODE -MD -MT src/shared/CMakeFiles/clucene-shared.dir/CLucene/util/StringBuffer.o -MF src/shared/CMakeFiles/clucene-shared.dir/CLucene/util/StringBuffer.o.d -o src/shared/CMakeFiles/clucene-shared.dir/CLucene/util/StringBuffer.o -c /var/tmp/portage/dev-cpp/clucene-2.3.3.4-r9/ work/clucene-core-2.3.3.4/src/shared/CLucene/util/StringBuffer.cpp
In file included from /var/tmp/portage/dev-cpp/clucene-2.3.3.4-r9/work/clucene-core-2.3.3.4/src/core/CLucene/util/VoidMap.h:10,
from /var/tmp/portage/dev-cpp/clucene-2.3.3.4-r9/work/clucene-core-2.3.3.4/src/core/CLucene/util/_VoidMap.h:18,
from /var/tmp/portage/dev-cpp/clucene-2.3.3.4-r9/work/clucene-core-2.3.3.4/src/core/CLucene/_ApiHeader.h:19,
from /var/tmp/portage/dev-cpp/clucene-2.3.3.4-r9/work/clucene-core-2.3.3.4/src/shared/CLucene/util/StringBuffer.cpp:7:
/var/tmp/portage/dev-cpp/clucene-2.3.3.4-r9/work/clucene-core-2.3.3.4/src/core/CLucene/util/Equators.h:28:23: error: expected nested-name-specifier before 'first_argument_type'
28 | using first_argument_type = const int32_t*;
| ^~~~~~~~~~~~~~~~~~~
/var/tmp/portage/dev-cpp/clucene-2.3.3.4-r9/work/clucene-core-2.3.3.4/src/core/CLucene/util/Equators.h:29:23: error: expected nested-name-specifier before 'second_argument_type'
29 | using second_argument_type = const int32_t*;
| ^~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/dev-cpp/clucene-2.3.3.4-r9/work/clucene-core-2.3.3.4/src/core/CLucene/util/Equators.h:30:23: error: expected nested-name-specifier before 'result_type'
30 | using result_type = bool;
| ^~~~~~~~~~~
/var/tmp/portage/dev-cpp/clucene-2.3.3.4-r9/work/clucene-core-2.3.3.4/src/core/CLucene/util/Equators.h:37:23: error: expected nested-name-specifier before 'first_argument_type'
37 | using first_argument_type = const char*;
| ^~~~~~~~~~~~~~~~~~~
/var/tmp/portage/dev-cpp/clucene-2.3.3.4-r9/work/clucene-core-2.3.3.4/src/core/CLucene/util/Equators.h:38:23: error: expected nested-name-specifier before 'second_argument_type'
38 | using second_argument_type = const char*;
| ^~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/dev-cpp/clucene-2.3.3.4-r9/work/clucene-core-2.3.3.4/src/core/CLucene/util/Equators.h:39:23: error: expected nested-name-specifier before 'result_type'
39 | using result_type = bool;
| ^~~~~~~~~~~
/var/tmp/portage/dev-cpp/clucene-2.3.3.4-r9/work/clucene-core-2.3.3.4/src/core/CLucene/util/Equators.h:46:23: error: expected nested-name-specifier before 'first_argument_type'
46 | using first_argument_type = const wchar_t*;
| ^~~~~~~~~~~~~~~~~~~
/var/tmp/portage/dev-cpp/clucene-2.3.3.4-r9/work/clucene-core-2.3.3.4/src/core/CLucene/util/Equators.h:47:23: error: expected nested-name-specifier before 'second_argument_type'
47 | using second_argument_type = const wchar_t*;
| ^~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/dev-cpp/clucene-2.3.3.4-r9/work/clucene-core-2.3.3.4/src/core/CLucene/util/Equators.h:48:23: error: expected nested-name-specifier before 'result_type'
48 | using result_type = bool;
| ^~~~~~~~~~~
/var/tmp/portage/dev-cpp/clucene-2.3.3.4-r9/work/clucene-core-2.3.3.4/src/core/CLucene/util/Equators.h:63:23: error: expected nested-name-specifier before 'first_argument_type'
63 | using first_argument_type = const void*;
| ^~~~~~~~~~~~~~~~~~~
/var/tmp/portage/dev-cpp/clucene-2.3.3.4-r9/work/clucene-core-2.3.3.4/src/core/CLucene/util/Equators.h:64:23: error: expected nested-name-specifier before 'second_argument_type'
64 | using second_argument_type = const void*;
| ^~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/dev-cpp/clucene-2.3.3.4-r9/work/clucene-core-2.3.3.4/src/core/CLucene/util/Equators.h:65:23: error: expected nested-name-specifier before 'result_type'
65 | using result_type = bool;
| ^~~~~~~~~~~
and there are tons of errors.
I need soap for this anyway as I don't know if it'll break ABI. |
The SET(ENABLE_ANSI_MODE OFF)
IF(CMAKE_COMPILER_IS_GNUCXX)
SET(ENABLE_ANSI_MODE ON)
#exceptions:
IF(MINGW OR CYGWIN)
SET(ENABLE_ANSI_MODE OFF)
ENDIF(MINGW OR CYGWIN)
ENDIF(CMAKE_COMPILER_IS_GNUCXX)
OPTION(ENABLE_ANSI_MODE
"compile with -ansi flag"
${ENABLE_ANSI_MODE}) If this is true another solution would be to force c++98 for clang as well, which seems to work fine (no patch needed). |
What I overlooked in the |
Closes: https://bugs.gentoo.org/869170 Signed-off-by: LinuxUserGD <hugegameartgd@gmail.com>
Thanks. I've decided to just go with it, given it's terribly broken anyway. |
Pull request CI reportReport generated at: 2023-06-28 21:20 UTC There are existing issues already. Please look into the report to make sure none of them affect the packages in question: |
dev-cpp/clucene: fix removed std::binary_function in c++17
Compilation fails with Clang (should be a warning with GCC):
The patch replaces
binary_function
with typedefs.Closes: https://bugs.gentoo.org/869170