Skip to content

Instantly share code, notes, and snippets.

@loopyd
Created September 17, 2019 18:27
Show Gist options
  • Save loopyd/2b9a89ab5873439b054a34439b4eb917 to your computer and use it in GitHub Desktop.
Save loopyd/2b9a89ab5873439b054a34439b4eb917 to your computer and use it in GitHub Desktop.
dev-qt/qtwebengine patch
#!/bin/bash
mkdir --parents /etc/portage/patches/dev-qt/qtwebengine-5.12.3/
cat <<'EOF' > /etc/portage/patches/dev-qt/qtwebengine-5.12.3/linux-headers-5.2.patch
--- a/src/3rdparty/chromium/third_party/webrtc/rtc_base/physicalsocketserver.cc
+++ b/src/3rdparty/chromium/third_party/webrtc/rtc_base/physicalsocketserver.cc
@@ -67,6 +67,7 @@ typedef void* SockOptArg;
#endif // WEBRTC_POSIX
#if defined(WEBRTC_POSIX) && !defined(WEBRTC_MAC) && !defined(__native_client__)
+#include <linux/sockios.h>
int64_t GetSocketRecvTimestamp(int socket) {
struct timeval tv_ioctl;
EOF
#
# The thread also mentions enabling jumbo-build, that's done here to speed up
# compilation of the package as an additional (unrealted) step.
#
# This reduce build time from 17 hours to 9 for tmpfs portage with > 10GB dedicated
# RAM and at least 7 CPU threads.
#
cat <<'EOF' >> /etc/portage/package.use/zz-autounmask
>=dev-qt/qtwebengine-5.12.3 jumbo-build system-ffmpeg system-icu
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment