qt5.qtwebengine: fail properly

QtWebEngine's build system is setup to perform certain platform checks
(see mkspecs/features/platform.prf). But a failed check will not cause
configuration phase to fail, but instead it configures no build targets.
So in such case the build will successfully perform build and install
phases. An empty output directories will are produced and the build
succeeds.

This patches qtwebengine qmake files to properly fail during
configuration phase.

This doesn't touch qt56 as it doesn't have this mechanism.

+2 -2
pkgs/development/libraries/qt-5/5.11/default.nix
···
qtscript = [ ./qtscript.patch ];
qtserialport = [ ./qtserialport.patch ];
qttools = [ ./qttools.patch ];
-
qtwebengine =
-
optional stdenv.cc.isClang ./qtwebengine-clang-fix.patch
+
qtwebengine = [ ./qtwebengine-no-build-skip.patch ]
+
++ optional stdenv.cc.isClang ./qtwebengine-clang-fix.patch
++ optional stdenv.isDarwin ./qtwebengine-darwin-sdk-10.10.patch;
qtwebkit = [ ./qtwebkit.patch ];
};
+12
pkgs/development/libraries/qt-5/5.11/qtwebengine-no-build-skip.patch
···
+
diff --git a/qtwebengine.pro b/qtwebengine.pro
+
--- a/qtwebengine.pro
+
+++ b/qtwebengine.pro
+
@@ -5,7 +5,7 @@ runConfigure()
+
+
!isEmpty(skipBuildReason) {
+
SUBDIRS =
+
- log($${skipBuildReason}$${EOL})
+
+ error($${skipBuildReason}$${EOL})
+
log(QtWebEngine will not be built.$${EOL})
+
}
+
+1
pkgs/development/libraries/qt-5/5.12/default.nix
···
qtdeclarative = [ ./qtdeclarative.patch ];
qtscript = [ ./qtscript.patch ];
qtserialport = [ ./qtserialport.patch ];
+
qtwebengine = [ ./qtwebengine-no-build-skip.patch ];
qtwebkit = [ ./qtwebkit.patch ];
};
+12
pkgs/development/libraries/qt-5/5.12/qtwebengine-no-build-skip.patch
···
+
diff --git a/qtwebengine.pro b/qtwebengine.pro
+
--- a/qtwebengine.pro
+
+++ b/qtwebengine.pro
+
@@ -5,7 +5,7 @@ runConfigure()
+
+
!isEmpty(skipBuildReason) {
+
SUBDIRS =
+
- log($${skipBuildReason}$${EOL})
+
+ error($${skipBuildReason}$${EOL})
+
log(QtWebEngine will not be built.$${EOL})
+
}
+
+1
pkgs/development/libraries/qt-5/5.9/default.nix
···
qtscript = [ ./qtscript.patch ];
qtserialport = [ ./qtserialport.patch ];
qttools = [ ./qttools.patch ];
+
qtwebengine = [ ./qtwebengine-no-build-skip.patch ];
qtwebkit = [ ./qtwebkit.patch ];
qtvirtualkeyboard = [
(fetchpatch {
+12
pkgs/development/libraries/qt-5/5.9/qtwebengine-no-build-skip.patch
···
+
diff --git a/qtwebengine.pro b/qtwebengine.pro
+
--- a/qtwebengine.pro
+
+++ b/qtwebengine.pro
+
@@ -5,7 +5,7 @@ runConfigure()
+
+
!isEmpty(skipBuildReason) {
+
SUBDIRS =
+
- log($${skipBuildReason}$${EOL})
+
+ error($${skipBuildReason}$${EOL})
+
log(QtWebEngine will not be built.$${EOL})
+
}
+