too long lines were shrinked: [39/688] /usr/bin/x86_64-pc-linux-gnu-g++ -DCUSTOM_ALLOCATOR_DISABLED -DHAW_LOGGER_QT_SUPPORT -DHAW_PROFILER_ENABLED -DKDDOCKWIDGETS_QTQUICK -DKDDOCKWIDGETS_STATICLIB -DNDEBUG -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORKAUTH_LIB -DQT_NETWORK_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FR [40/688] /usr/bin/x86_64-pc-linux-gnu-g++ -DCUSTOM_ALLOCATOR_DISABLED -DHAW_LOGGER_QT_SUPPORT -DHAW_PROFILER_ENABLED -DNDEBUG -DPROJECT_ROOT_DIR=\"/var/tmp/portage/media-sound/musescore-4.0.2/work/MuseScore-4.0.2\" -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORKAUTH_LIB -DQT_NETWORK_LIB FAILED: src/framework/global/CMakeFiles/global.dir/Unity/unity_3_cxx.cxx.o /usr/bin/x86_64-pc-linux-gnu-g++ -DCUSTOM_ALLOCATOR_DISABLED -DHAW_LOGGER_QT_SUPPORT -DHAW_PROFILER_ENABLED -DNDEBUG -DPROJECT_ROOT_DIR=\"/var/tmp/portage/media-sound/musescore-4.0.2/work/MuseScore-4.0.2\" -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORKAUTH_LIB -DQT_NETWORK_LIB -DQT_NO_D In file included from /var/tmp/portage/media-sound/musescore-4.0.2/work/MuseScore-4.0.2/src/framework/global/globalmodule.cpp:28, from /var/tmp/portage/media-sound/musescore-4.0.2/work/MuseScore-4.0.2_build/src/framework/global/CMakeFiles/global.dir/Unity/unity_3_cxx.cxx:9: /var/tmp/portage/media-sound/musescore-4.0.2/work/MuseScore-4.0.2/src/framework/global/logremover.h:25:10: fatal error: gtest/gtest_prod.h: No such file or directory 25 | #include <gtest/gtest_prod.h> | ^~~~~~~~~~~~~~~~~~~~ ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_desktop_plasma-j5-20230602-183511 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-10 [2] x86_64-pc-linux-gnu-13 * clang/llvm (if any): clang version 16.0.5 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/16/bin Configuration file: /etc/clang/clang.cfg /usr/lib/llvm/16 16.0.5 Python 3.11.3 Available Ruby profiles: [1] ruby31 (with Rubygems) * Available Rust versions: [1] rust-bin-1.69.0 [2] rust-1.69.0 * The following VMs are available for generation-2: 1) Eclipse Temurin JDK 11.0.18_p10 [openjdk-bin-11] *) Eclipse Temurin JDK 17.0.6_p10 [openjdk-bin-17] 3) Eclipse Temurin JDK 8.362_p09 [openjdk-bin-8] 4) Eclipse Temurin JRE 17.0.6_p10 [openjdk-jre-bin-17] Available Java Virtual Machines: [1] openjdk-bin-8 [2] openjdk-bin-11 [3] openjdk-bin-17 system-vm [4] openjdk-jre-bin-17 php cli (if any): go version go1.20.4 linux/amd64 HEAD of ::gentoo commit 84c8c8d809dcd8916ae271cda564501b32af1d7b Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Tue Jun 6 08:17:03 2023 +0000 2023-06-06 08:17:03 UTC emerge -qpvO media-sound/musescore [ebuild N ] media-sound/musescore-4.0.2 USE="jumbo-build -debug -test"
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(-)