Summary: | dev-util/clazy-1.10 fails tests: - 1 - assert-with-side-effects (Failed) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Gentoo KDE team <kde> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jsmolic, sam |
Priority: | Normal | Keywords: | TESTFAILURE |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=928658 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 945356 | ||
Attachments: |
emerge-info.txt
LastTest.log dev-util:clazy-1.10:20210905-083909.log emerge-history.txt environment etc.portage.tar.bz2 logs.tar.bz2 temp.tar.bz2 tests.tar.bz2 LastTest.log with *PATH fix |
Description
Toralf Förster
![]() Created attachment 737623 [details]
emerge-info.txt
Created attachment 737626 [details]
LastTest.log
Created attachment 737629 [details]
dev-util:clazy-1.10:20210905-083909.log
Created attachment 737632 [details]
emerge-history.txt
Created attachment 737635 [details]
environment
Created attachment 737638 [details]
etc.portage.tar.bz2
Created attachment 737641 [details]
logs.tar.bz2
Created attachment 737644 [details]
temp.tar.bz2
Created attachment 737647 [details]
tests.tar.bz2
Poking.. ---------------------------------------------------------- [FAIL] isempty-vs-count (Failed to build test. Check isempty-vs-count/main.cpp.out for details) ------------------- Contents of isempty-vs-count/main.cpp.out: error: unable to load plugin 'ClazyPlugin.so': 'ClazyPlugin.so: cannot open shared object file: No such file or directory' The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d6a0bf9437a7278215c25a7e3f65cdbb5a8608d6 commit d6a0bf9437a7278215c25a7e3f65cdbb5a8608d6 Author: Sam James <sam@gentoo.org> AuthorDate: 2021-10-16 23:41:22 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-10-16 23:41:57 +0000 dev-util/clazy: run tests against built copy of clazy This doesn't get us all of the way there yet though, tests still fail due to Clang shenanigans with include paths(?) Bug: https://bugs.gentoo.org/811723 Signed-off-by: Sam James <sam@gentoo.org> dev-util/clazy/clazy-1.10.ebuild | 6 ++++++ 1 file changed, 6 insertions(+) Created attachment 745224 [details]
LastTest.log with *PATH fix
Note that we should probably be using python-any-r1 for tests too.
Anyway, lots of errors like this:
```
Contents of container-inside-loop/main.cpp.out:
In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/container-inside-loop/main.cpp:1:
In file included from /usr/include/qt5/QtCore/QVector:1:
In file included from /usr/include/qt5/QtCore/qvector.h:43:
In file included from /usr/include/qt5/QtCore/qalgorithms.h:43:
In file included from /usr/include/qt5/QtCore/qglobal.h:46:
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found
#include <stddef.h>
^~~~~~~~~~
1 error generated.
```
All tests pass for me, I can't reproduce any of this. The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53bb19912117d36da9df66dca656213347391006 commit 53bb19912117d36da9df66dca656213347391006 Author: Sam James <sam@gentoo.org> AuthorDate: 2021-12-10 23:59:25 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-12-13 00:11:30 +0000 dev-util/clazy: BDEPEND on Python for tests Avoid using 'python3' directly. Still not passing for me though. Bug: https://bugs.gentoo.org/811723 Signed-off-by: Sam James <sam@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/23246 Signed-off-by: Sam James <sam@gentoo.org> dev-util/clazy/clazy-1.10-r1.ebuild | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af5f598a4e43dd87b224e4281b167773c3a5d74e commit af5f598a4e43dd87b224e4281b167773c3a5d74e Author: Sam James <sam@gentoo.org> AuthorDate: 2021-12-10 23:24:37 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-12-13 00:11:29 +0000 dev-util/clazy: use llvm.eclass to declare compatibility and build patch - We need to use llvm.eclass to ensure we don't use too new of a version of LLVM and Clang. We're now using the llvm.eclass mechanisms to enforce the same versions of Clang and LLVM. - Throw in a build patch from upstream (upstream commit b74c8729b7b71528c1528579435cda7fdb5d31b4) which was necessary for me. Bug: https://bugs.gentoo.org/811723 Bug: https://bugs.gentoo.org/823726 Closes: https://bugs.gentoo.org/824986 Signed-off-by: Sam James <sam@gentoo.org> .../{clazy-1.10.ebuild => clazy-1.10-r1.ebuild} | 25 ++++++------ dev-util/clazy/files/clazy-1.10-gcc-build.patch | 44 ++++++++++++++++++++++ dev-util/clazy/files/clazy-1.10-use-c++17.patch | 20 ++++++++++ 3 files changed, 78 insertions(+), 11 deletions(-) Update summary. [something] is used when something refers to an overlay *** Bug 834898 has been marked as a duplicate of this bug. *** All tests work fine for me. The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a1fcee35f62bad34abe7da2be9856645fbce8af6 commit a1fcee35f62bad34abe7da2be9856645fbce8af6 Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2024-09-21 13:15:24 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2024-09-21 13:33:57 +0000 dev-util/clazy: add 1.12 w/o KEYWORDS, enable py3.13, LLVM-18 Reason: 7% tests passed, 92 tests failed out of 99 Most of them fail with: cstddef:50:10: fatal error: 'stddef.h' file not found Bug: https://bugs.gentoo.org/811723 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> dev-util/clazy/Manifest | 1 + dev-util/clazy/clazy-1.12.ebuild | 57 ++++++++++ .../files/clazy-1.12-clang-16-no-src-root.patch | 60 +++++++++++ .../files/clazy-1.12-fix-tests-Qt-detect-1.patch | 78 ++++++++++++++ .../files/clazy-1.12-fix-tests-Qt-detect-2.patch | 115 +++++++++++++++++++++ dev-util/clazy/files/clazy-1.12-llvm-18.patch | 36 +++++++ 6 files changed, 347 insertions(+) The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a50bc5c4107f462921239170c3ff535a8f0a83d commit 8a50bc5c4107f462921239170c3ff535a8f0a83d Author: Paul Zander <negril.nx+gentoo@gmail.com> AuthorDate: 2024-11-10 17:31:12 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-11-10 17:43:37 +0000 dev-util/clazy: fix tests Fiddle with the code to allow testing under gentoo. - Fix logic that incorrectly adds paths that only work with not installed builds. - Use `CMAKE_INSTALL_LIBDIR` from `GNUInstallDirs` to avoid looking up libs with wrong ABI. - Install `clazy-standalone` in to the same directory as the corresponding `clang` binary so it can find headers. - Skip tests if their dependencies are not satifsfied. - Don't test qt5, even if installed, so we can ignore the dependencies. Closes: https://bugs.gentoo.org/811723 Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com> Signed-off-by: Sam James <sam@gentoo.org> dev-util/clazy/clazy-1.12.ebuild | 44 +++++++++++++++++-- dev-util/clazy/files/clazy-1.12-INCLUDE_DIRS.patch | 42 ++++++++++++++++++ dev-util/clazy/files/clazy-1.12-LIBRARY_DIRS.patch | 33 ++++++++++++++ .../clazy-1.12-standalone-install-location.patch | 50 ++++++++++++++++++++++ 4 files changed, 166 insertions(+), 3 deletions(-) Additionally, it has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a4b107c9214504030d98878b7a934349274bd060 commit a4b107c9214504030d98878b7a934349274bd060 Author: Sam James <sam@gentoo.org> AuthorDate: 2024-11-10 17:42:50 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-11-10 17:43:37 +0000 dev-util/clazy: keyword 1.12 for ~amd64, ~arm64, ~x86 Was added unkeyworded in a1fcee35f62bad34abe7da2be9856645fbce8af6 because of the test hell. The issues are now fixed, thanks to negril. Bug: https://bugs.gentoo.org/811723 Signed-off-by: Sam James <sam@gentoo.org> dev-util/clazy/clazy-1.12.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) |