void-packages/srcpkgs/qt5/patches/qtwebengine-enable-ppc64.patch
q66 1a92b3e566
qt5: fix webengine+ppc64le, disable webengine where needed
This allows qt5 to be built with webengine on ppc64 little
endian. Since webengine is broken on a lot of other archs,
this also adds code to disable webengine where otherwise
broken, so we can allow building qt5 on every architecture
instead of marking it broken.

[ci skip]

Closes: #7642 [via git-merge-pr]
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
2019-01-29 14:52:21 +01:00

41 lines
1.6 KiB
Diff

This adds the necessary bits to make qt attempt building webengine on ppc64.
Since the patch is only sufficient for ppc64le, keep it commented out and
let the packaging template remove the comment later, as there is no good
way to check endianness directly in the file.
We also have to disable jumbo build for the time being because it results
in build failures otherwise, most likely because of compiler miscompiling
the code.
--- qtwebengine/mkspecs/features/functions.prf
+++ qtwebengine/mkspecs/features/functions.prf
@@ -95,6 +95,7 @@
contains(qtArch, "arm64"): return(arm64)
contains(qtArch, "mips"): return(mipsel)
contains(qtArch, "mips64"): return(mips64el)
+ contains(qtArch, "power64"): return(ppc64)
return(unknown)
}
--- qtwebengine/mkspecs/features/platform.prf
+++ qtwebengine/mkspecs/features/platform.prf
@@ -82,6 +82,7 @@
contains(QT_ARCH, "arm")|contains(QT_ARCH, "arm64"): return(true)
contains(QT_ARCH, "mips"): return(true)
# contains(QT_ARCH, "mips64"): return(true)
+#ppc64le contains(QT_ARCH, "power64"): return(true)
skipBuild("QtWebEngine can only be built for x86, x86-64, ARM, Aarch64, and MIPSel architectures.")
return(false)
--- qtwebengine/src/core/config/linux.pri
+++ qtwebengine/src/core/config/linux.pri
@@ -90,6 +90,10 @@
else: contains(QMAKE_CFLAGS, "-mdsp"): gn_args += mips_dsp_rev=1
}
+contains(QT_ARCH, "power64") {
+ gn_args += use_jumbo_build=false
+}
+
host_build {
gn_args += custom_toolchain=\"$$QTWEBENGINE_OUT_ROOT/src/toolchain:host\"
GN_HOST_CPU = $$gnArch($$QT_ARCH)