www-client/chromium: fix build failure with gcc5
authorMike Gilbert <floppym@gentoo.org>
Sun, 12 Nov 2017 17:48:17 +0000 (12:48 -0500)
committerMike Gilbert <floppym@gentoo.org>
Sun, 12 Nov 2017 17:48:17 +0000 (12:48 -0500)
Closes: https://bugs.gentoo.org/637186
Package-Manager: Portage-2.3.13_p7, Repoman-2.3.3_p87

www-client/chromium/chromium-63.0.3239.30.ebuild
www-client/chromium/chromium-64.0.3253.3.ebuild
www-client/chromium/files/chromium-gcc5-r5.patch [new file with mode: 0644]

index 7cfd3eaf32bbff2e6fd8fc5792cbf804e998159f..82207820db52fc51f503cddaa7101842a71262f2 100644 (file)
@@ -147,6 +147,7 @@ PATCHES=(
        "${FILESDIR}/${PN}-gcc5-r4.patch"
        "${FILESDIR}/${PN}-clang-r1.patch"
        "${FILESDIR}/${PN}-webrtc-r0.patch"
+       "${FILESDIR}/${PN}-gcc5-r5.patch"
 )
 
 pre_build_checks() {
index 2018f07b04eaa7ba4622a77639ed44951430e07a..3961a106c1281f47abb07282604461da64c21df6 100644 (file)
@@ -147,6 +147,7 @@ PATCHES=(
        "${FILESDIR}/chromium-webrtc-r0.patch"
        "${FILESDIR}/chromium-math-includes-r0.patch"
        "${FILESDIR}/chromium-${PV}-gpu_lists_version.h.patch"
+       "${FILESDIR}/chromium-gcc5-r5.patch"
 )
 
 pre_build_checks() {
diff --git a/www-client/chromium/files/chromium-gcc5-r5.patch b/www-client/chromium/files/chromium-gcc5-r5.patch
new file mode 100644 (file)
index 0000000..a07b973
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/third_party/WebKit/public/web/WebFrameClient.h
++++ b/third_party/WebKit/public/web/WebFrameClient.h
+@@ -507,7 +507,7 @@
+   // Returns string to be used as a frame id in the devtools protocol.
+   // It is derived from the content's devtools_frame_token, is
+   // defined by the browser and passed into Blink upon frame creation.
+-  virtual WebString GetInstrumentationToken() { return ""; }
++  virtual WebString GetInstrumentationToken() { return WebString(); }
+   // PlzNavigate
+   // Called to abort a navigation that is being handled by the browser process.