www-client/chromium: conditionally apply system-ffmpeg patch
authorMike Gilbert <floppym@gentoo.org>
Mon, 30 Jan 2017 06:10:02 +0000 (01:10 -0500)
committerMike Gilbert <floppym@gentoo.org>
Mon, 30 Jan 2017 06:17:35 +0000 (01:17 -0500)
This patch causes chromium to segfault when using the bundled ffmpeg.

Bug: https://bugs.gentoo.org/607454
Package-Manager: Portage-2.3.3_p42_p352298, Repoman-2.3.1_p35_p352298

www-client/chromium/chromium-56.0.2924.76-r1.ebuild [moved from www-client/chromium/chromium-56.0.2924.76.ebuild with 98% similarity]
www-client/chromium/chromium-57.0.2987.13.ebuild

similarity index 98%
rename from www-client/chromium/chromium-56.0.2924.76.ebuild
rename to www-client/chromium/chromium-56.0.2924.76-r1.ebuild
index f72fda4c3e0862ffd74d1d19dcfa7cb50a0a0519..aa48b74ddb996beec946dd70ed468ef094af1be2 100644 (file)
@@ -155,13 +155,6 @@ For other desktop environments, try one of the following:
 - x11-themes/tango-icon-theme
 "
 
-PATCHES=(
-       "${FILESDIR}/${PN}-system-ffmpeg-r4.patch"
-       "${FILESDIR}/${PN}-widevine-r1.patch"
-       "${FILESDIR}/${PN}-glibc-2.24.patch"
-       "${FILESDIR}/${PN}-56-gcc4.patch"
-)
-
 pre_build_checks() {
        if [[ ${MERGE_TYPE} != binary ]]; then
                local -x CPP="$(tc-getCXX) -E"
@@ -201,6 +194,14 @@ pkg_setup() {
 }
 
 src_prepare() {
+       local PATCHES=(
+               "${FILESDIR}/${PN}-widevine-r1.patch"
+               "${FILESDIR}/${PN}-glibc-2.24.patch"
+               "${FILESDIR}/${PN}-56-gcc4.patch"
+       )
+
+       use system-ffmpeg && PATCHES+=( "${FILESDIR}/${PN}-system-ffmpeg-r4.patch" )
+
        default
 
        local keeplibs=(
index 139ec0c30d843ff4a9af34bfa47c475bd42ee638..f9ea5861625432d01701c7f83116423d3b2a79d9 100644 (file)
@@ -155,11 +155,6 @@ For other desktop environments, try one of the following:
 - x11-themes/tango-icon-theme
 "
 
-PATCHES=(
-       "${FILESDIR}/${PN}-system-ffmpeg-r4.patch"
-       "${FILESDIR}/${PN}-widevine-r1.patch"
-)
-
 pre_build_checks() {
        if [[ ${MERGE_TYPE} != binary ]]; then
                local -x CPP="$(tc-getCXX) -E"
@@ -201,6 +196,13 @@ pkg_setup() {
 }
 
 src_prepare() {
+       local PATCHES=(
+               "${FILESDIR}/${PN}-widevine-r1.patch"
+               "${FILESDIR}/${PN}-FORTIFY_SOURCE.patch"
+       )
+
+       use system-ffmpeg && PATCHES+=( "${FILESDIR}/${PN}-system-ffmpeg-r4.patch" )
+
        default
 
        local keeplibs=(