qt59.qtwebengine: fix on darwin

This ports a patch that is already used in 5.11. Also one of the
substituteInPlace call fails because a file doesn't exist.
This commit is contained in:
Dmitry Kalinkin
2019-03-26 16:30:58 -04:00
parent ccd1bf610d
commit 0624deb5df
3 changed files with 43 additions and 3 deletions
@@ -70,6 +70,10 @@ qtModule {
substituteInPlace src/core/config/mac_osx.pri \
--replace /usr ${stdenv.cc}
''
+ (optionalString (lib.versionAtLeast qtCompatVersion "5.11") ''
substituteInPlace src/3rdparty/chromium/third_party/crashpad/crashpad/util/BUILD.gn \
--replace '$sysroot/usr' "${darwin.xnu}"
'')
+ ''
cat <<EOF > src/3rdparty/chromium/build/mac/find_sdk.py
@@ -90,9 +94,6 @@ print('sdk_platform_path=""')
print('sdk_build="17B41"')
EOF
substituteInPlace src/3rdparty/chromium/third_party/crashpad/crashpad/util/BUILD.gn \
--replace '$sysroot/usr' "${darwin.xnu}"
# Apple has some secret stuff they don't share with OpenBSM
substituteInPlace src/3rdparty/chromium/base/mac/mach_port_broker.mm \
--replace "audit_token_to_pid(msg.trailer.msgh_audit)" "msg.trailer.msgh_audit.val[5]"