www-client/chromium: work around skia build failure with GCC
authorMike Gilbert <floppym@gentoo.org>
Wed, 22 Mar 2017 02:38:56 +0000 (22:38 -0400)
committerMike Gilbert <floppym@gentoo.org>
Wed, 22 Mar 2017 02:38:56 +0000 (22:38 -0400)
Bug: https://bugs.gentoo.org/608640
Package-Manager: Portage-2.3.5_p2, Repoman-2.3.2_p32

www-client/chromium/chromium-58.0.3029.19.ebuild
www-client/chromium/chromium-59.0.3043.0.ebuild
www-client/chromium/files/skia-avx2.patch [new file with mode: 0644]

index df09c5655f09104e4b777774f672f6117c566b5d..9a0f942fca024e001a628e0b28fc3d076aabcc88 100644 (file)
@@ -200,6 +200,7 @@ src_prepare() {
                "${FILESDIR}/${PN}-widevine-r1.patch"
                "${FILESDIR}/${PN}-FORTIFY_SOURCE.patch"
                "${FILESDIR}/${PN}-gn-bootstrap-r2.patch"
+               "${FILESDIR}/skia-avx2.patch"
        )
 
        use system-ffmpeg && PATCHES+=( "${FILESDIR}/${PN}-system-ffmpeg-r4.patch" )
index 2d43ee9737127d687f6ac807d4769289847f9ede..8c0d3caf2ee23bb66b3645373dc7da795c9b57cb 100644 (file)
@@ -200,6 +200,7 @@ src_prepare() {
                "${FILESDIR}/${PN}-widevine-r1.patch"
                "${FILESDIR}/${PN}-FORTIFY_SOURCE.patch"
                "${FILESDIR}/${PN}-gn-bootstrap-r3.patch"
+               "${FILESDIR}/skia-avx2.patch"
        )
 
        use system-ffmpeg && PATCHES+=( "${FILESDIR}/${PN}-system-ffmpeg-r4.patch" )
diff --git a/www-client/chromium/files/skia-avx2.patch b/www-client/chromium/files/skia-avx2.patch
new file mode 100644 (file)
index 0000000..a1b5309
--- /dev/null
@@ -0,0 +1,15 @@
+Disable AVX2 code to prevent build failure with GCC
+
+Bug: https://bugs.gentoo.org/608640
+
+--- a/third_party/skia/include/core/SkPreConfig.h
++++ b/third_party/skia/include/core/SkPreConfig.h
+@@ -125,7 +125,7 @@
+     // These checks must be done in descending order to ensure we set the highest
+     // available SSE level.
+     #if defined(__AVX2__)
+-        #define SK_CPU_SSE_LEVEL    SK_CPU_SSE_LEVEL_AVX2
++        #define SK_CPU_SSE_LEVEL    SK_CPU_SSE_LEVEL_AVX
+     #elif defined(__AVX__)
+         #define SK_CPU_SSE_LEVEL    SK_CPU_SSE_LEVEL_AVX
+     #elif defined(__SSE4_2__)