Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/chromium/
Date: Mon, 30 Jan 2017 06:18:05
Message-Id: 1485757055.9cda6edb27c2288e01ced3a797afb86b5bd9f2b1.floppym@gentoo
1 commit: 9cda6edb27c2288e01ced3a797afb86b5bd9f2b1
2 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 30 06:10:02 2017 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 30 06:17:35 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9cda6edb
7
8 www-client/chromium: conditionally apply system-ffmpeg patch
9
10 This patch causes chromium to segfault when using the bundled ffmpeg.
11
12 Bug: https://bugs.gentoo.org/607454
13 Package-Manager: Portage-2.3.3_p42_p352298, Repoman-2.3.1_p35_p352298
14
15 ...6.0.2924.76.ebuild => chromium-56.0.2924.76-r1.ebuild} | 15 ++++++++-------
16 www-client/chromium/chromium-57.0.2987.13.ebuild | 12 +++++++-----
17 2 files changed, 15 insertions(+), 12 deletions(-)
18
19 diff --git a/www-client/chromium/chromium-56.0.2924.76.ebuild b/www-client/chromium/chromium-56.0.2924.76-r1.ebuild
20 similarity index 98%
21 rename from www-client/chromium/chromium-56.0.2924.76.ebuild
22 rename to www-client/chromium/chromium-56.0.2924.76-r1.ebuild
23 index f72fda4..aa48b74 100644
24 --- a/www-client/chromium/chromium-56.0.2924.76.ebuild
25 +++ b/www-client/chromium/chromium-56.0.2924.76-r1.ebuild
26 @@ -155,13 +155,6 @@ For other desktop environments, try one of the following:
27 - x11-themes/tango-icon-theme
28 "
29
30 -PATCHES=(
31 - "${FILESDIR}/${PN}-system-ffmpeg-r4.patch"
32 - "${FILESDIR}/${PN}-widevine-r1.patch"
33 - "${FILESDIR}/${PN}-glibc-2.24.patch"
34 - "${FILESDIR}/${PN}-56-gcc4.patch"
35 -)
36 -
37 pre_build_checks() {
38 if [[ ${MERGE_TYPE} != binary ]]; then
39 local -x CPP="$(tc-getCXX) -E"
40 @@ -201,6 +194,14 @@ pkg_setup() {
41 }
42
43 src_prepare() {
44 + local PATCHES=(
45 + "${FILESDIR}/${PN}-widevine-r1.patch"
46 + "${FILESDIR}/${PN}-glibc-2.24.patch"
47 + "${FILESDIR}/${PN}-56-gcc4.patch"
48 + )
49 +
50 + use system-ffmpeg && PATCHES+=( "${FILESDIR}/${PN}-system-ffmpeg-r4.patch" )
51 +
52 default
53
54 local keeplibs=(
55
56 diff --git a/www-client/chromium/chromium-57.0.2987.13.ebuild b/www-client/chromium/chromium-57.0.2987.13.ebuild
57 index 139ec0c..f9ea586 100644
58 --- a/www-client/chromium/chromium-57.0.2987.13.ebuild
59 +++ b/www-client/chromium/chromium-57.0.2987.13.ebuild
60 @@ -155,11 +155,6 @@ For other desktop environments, try one of the following:
61 - x11-themes/tango-icon-theme
62 "
63
64 -PATCHES=(
65 - "${FILESDIR}/${PN}-system-ffmpeg-r4.patch"
66 - "${FILESDIR}/${PN}-widevine-r1.patch"
67 -)
68 -
69 pre_build_checks() {
70 if [[ ${MERGE_TYPE} != binary ]]; then
71 local -x CPP="$(tc-getCXX) -E"
72 @@ -201,6 +196,13 @@ pkg_setup() {
73 }
74
75 src_prepare() {
76 + local PATCHES=(
77 + "${FILESDIR}/${PN}-widevine-r1.patch"
78 + "${FILESDIR}/${PN}-FORTIFY_SOURCE.patch"
79 + )
80 +
81 + use system-ffmpeg && PATCHES+=( "${FILESDIR}/${PN}-system-ffmpeg-r4.patch" )
82 +
83 default
84
85 local keeplibs=(