From f6c788b3553a3ad73bf999f19ce0ffb34a32e760 Mon Sep 17 00:00:00 2001 From: Ionen Wolkens Date: Mon, 8 Jan 2024 08:08:46 -0500 Subject: dev-qt/qtwebengine: do the install sanity-check from qt5 in qt6 too The check was removed before I touched these and didn't know it existed. Was fair to think it wouldn't be needed anymore with cmake but it is, e.g. it installs nothing if bison is not found without hard failure. File path is hopefully correct for Qt6, did give it two test builds (one "bad" that's empty, and one full build) just in case. Albeit haven't retried prefix (it's included in QT6_LIBDIR though). The qt6-build eclass does force fatal errors for a few "build nothing" cases, but not qtwebengine's custom ones. Kind of wonder if a similar end result file check should be done for all of dev-qt/* (aka fail if does not install anything but cmake files and docs). May revisit if Qt has more original ways to build nothing not limited to qtwebengine. Signed-off-by: Ionen Wolkens --- dev-qt/qtwebengine/qtwebengine-6.9999.ebuild | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'dev-qt/qtwebengine/qtwebengine-6.9999.ebuild') diff --git a/dev-qt/qtwebengine/qtwebengine-6.9999.ebuild b/dev-qt/qtwebengine/qtwebengine-6.9999.ebuild index c5e7a9912cc0..e7cca530e966 100644 --- a/dev-qt/qtwebengine/qtwebengine-6.9999.ebuild +++ b/dev-qt/qtwebengine/qtwebengine-6.9999.ebuild @@ -281,6 +281,13 @@ src_test() { qt6-build_src_test -j1 } +src_install() { + qt6-build_src_install + + [[ -e ${D}${QT6_LIBDIR}/libQt6WebEngineCore.so ]] || #601472 + die "${CATEGORY}/${PF} failed to build anything. Please report to https://bugs.gentoo.org/" +} + pkg_postinst() { # plugin may also be found in $HOME if provided by chrome or firefox use amd64 && -- cgit v1.2.3