Summary: | media-sound/musescore-4.0.2 - /.../logremover.h: fatal error: gtest/gtest_prod.h: No such file or directory | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Gentoo Sound Team <sound> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | dennis.lissov, fordfrog, nex+b-g-o, StormByte, xavier.miller |
Priority: | Normal | Keywords: | PullRequest |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/gentoo/gentoo/pull/31421 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge-info.txt
emerge-history.txt environment etc.clang.tar.xz etc.portage.tar.xz media-sound:musescore-4.0.2:20230606-083310.log temp.tar.xz |
Description
Toralf Förster
![]() Created attachment 863391 [details]
emerge-info.txt
Created attachment 863392 [details]
emerge-history.txt
Created attachment 863393 [details]
environment
Created attachment 863394 [details]
etc.clang.tar.xz
Created attachment 863395 [details]
etc.portage.tar.xz
Created attachment 863396 [details]
media-sound:musescore-4.0.2:20230606-083310.log
Created attachment 863397 [details]
temp.tar.xz
It seems that the dependency dev-cpp/gtest is needed regardless if tests are going to be build or not because this file includes it unconditionally: src/framework/global/logremover.h:25:#include <gtest/gtest_prod.h> Maybe fix the ebuild to include gtest dependency unconditionally? Confirming that it builds fine when gtest is installed. I confirm, too. With gtest it compiles well. Has anyone tested if GTest can be safely removed after building? It might be the cases that the source code uses a few GTest macros to make the code easier to test, while avoiding a hard dependency on GTest at runtime. I have reproduced the issue with ebuildtester as well. Now the question remains whether gtest is required at runtime as well (which I hope it does not). Has anyone tried to unmerge gtest after installing MuseScore? The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c107ae48fcfef42a48bb6945037a7d9287415c4b commit c107ae48fcfef42a48bb6945037a7d9287415c4b Author: Adrian Schollmeyer <nex+b-g-o@nexadn.de> AuthorDate: 2023-06-13 16:29:37 +0000 Commit: Miroslav Šulc <fordfrog@gentoo.org> CommitDate: 2023-06-13 17:15:26 +0000 media-sound/musescore: add missing dependencies The dependency on GTest seems to be only at build time, probably due to a few macros to make the code easier to test. The software is not linked against GTest, so it can be safely removed after installation. Closes: https://bugs.gentoo.org/907955 Closes: https://bugs.gentoo.org/907945 Signed-off-by: Adrian Schollmeyer <nex+b-g-o@nexadn.de> Closes: https://github.com/gentoo/gentoo/pull/31421 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org> media-sound/musescore/musescore-4.0.2.ebuild | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) |