Currently gnucash always wants gtest to build. And depends on gtest-1.8.0 which is marked unstable now. Can we add 'test' use flag so that we can at least disable testing build so that this dependency can be avoided. I also noticed that it downloads gtest sources instead of using system one it depends on. Might be worth changing this as well.
Created attachment 585498 [details] Suggested 'test' use flag addition to avoid depending on gtest-1.8.0 Here is suggested ebuild changes. It adds 'test' useflag, which allows at least to disable tests and dependencies.
dev-cpp/gtest-1.9.0_pre20190607 is now stable. Please make app-office/gnucash accept newer dev-cpp/gtest than 1.8.0. Preferably use only system version of dev-cpp/gtest and stop downloading dev-cpp/gtest tarball.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23949ce99d48bdd95a22ad7905a3a8d4a6d4ab1c commit 23949ce99d48bdd95a22ad7905a3a8d4a6d4ab1c Author: Peter Levine <plevine457@gmail.com> AuthorDate: 2019-08-25 23:16:45 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2019-10-13 11:40:22 +0000 app-office/gnucash: Don't build gtest from source With gnucash-3.6, the build now looks for gtest headers and libraries and uses them if found. Closes: https://bugs.gentoo.org/691276 Package-Manager: Portage-2.3.72, Repoman-2.3.17 Signed-off-by: Peter Levine <plevine457@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/12792 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> app-office/gnucash/gnucash-3.6.ebuild | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-)
Without gtest gnucash fails to build: -- Checking for GTEST CMake Error at common/cmake_modules/GncAddTest.cmake:139 (message): GTEST not found. Please install it or set GTEST_ROOT or GMOCK_ROOT Call Stack (most recent call first): CMakeLists.txt:625 (gnc_gtest_configure)
Created attachment 614476 [details] build.log.xz