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: Sun, 10 Dec 2017 17:47:47
Message-Id: 1512928057.9650d52d25c1796baba0b0c71104ec588608ca3f.floppym@gentoo
1 commit: 9650d52d25c1796baba0b0c71104ec588608ca3f
2 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 10 17:44:02 2017 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 10 17:47:37 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9650d52d
7
8 www-client/chromium: pax-mark v8_context_snapshot_generator
9
10 Bug: https://bugs.gentoo.org/640480
11 Package-Manager: Portage-2.3.17, Repoman-2.3.6_p24
12
13 www-client/chromium/chromium-63.0.3239.84.ebuild | 33 ++++++++++++++----------
14 www-client/chromium/chromium-64.0.3282.14.ebuild | 33 ++++++++++++++----------
15 2 files changed, 40 insertions(+), 26 deletions(-)
16
17 diff --git a/www-client/chromium/chromium-63.0.3239.84.ebuild b/www-client/chromium/chromium-63.0.3239.84.ebuild
18 index c228cfc0c39..71a061010b7 100644
19 --- a/www-client/chromium/chromium-63.0.3239.84.ebuild
20 +++ b/www-client/chromium/chromium-63.0.3239.84.ebuild
21 @@ -537,24 +537,31 @@ src_configure() {
22 "$@" || die
23 }
24
25 -src_compile() {
26 - local ninja_targets="chrome chromedriver"
27 - if use suid; then
28 - ninja_targets+=" chrome_sandbox"
29 - fi
30 +host_binary() {
31 + local x
32 + for x; do
33 + if tc-is-cross-compiler; then
34 + eninja -C out/Release "host/${x}"
35 + pax-mark m "out/Release/host/${x}"
36 + else
37 + eninja -C out/Release "${x}"
38 + pax-mark m "out/Release/${x}"
39 + fi
40 + done
41 +}
42
43 +src_compile() {
44 # Build mksnapshot and pax-mark it.
45 - if tc-is-cross-compiler; then
46 - eninja -C out/Release host/mksnapshot || die
47 - pax-mark m out/Release/host/mksnapshot
48 - else
49 - eninja -C out/Release mksnapshot || die
50 - pax-mark m out/Release/mksnapshot
51 - fi
52 + host_binary mksnapshot v8_context_snapshot_generator
53 +
54 + # Work around circular dep issue
55 + # https://chromium-review.googlesource.com/c/chromium/src/+/617768
56 + eninja -C out/Release gen/ui/accessibility/ax_enums.h
57
58 # Even though ninja autodetects number of CPUs, we respect
59 # user's options, for debugging with -j 1 or any other reason.
60 - eninja -C out/Release ${ninja_targets} || die
61 + eninja -C out/Release chrome chromedriver
62 + use suid && eninja -C out/Release chrome_sandbox
63
64 pax-mark m out/Release/chrome
65 }
66
67 diff --git a/www-client/chromium/chromium-64.0.3282.14.ebuild b/www-client/chromium/chromium-64.0.3282.14.ebuild
68 index a03199f2130..e436cbd1b59 100644
69 --- a/www-client/chromium/chromium-64.0.3282.14.ebuild
70 +++ b/www-client/chromium/chromium-64.0.3282.14.ebuild
71 @@ -539,27 +539,34 @@ src_configure() {
72 "$@" || die
73 }
74
75 +host_binary() {
76 + local x
77 + for x; do
78 + if tc-is-cross-compiler; then
79 + eninja -C out/Release "host/${x}"
80 + pax-mark m "out/Release/host/${x}"
81 + else
82 + eninja -C out/Release "${x}"
83 + pax-mark m "out/Release/${x}"
84 + fi
85 + done
86 +}
87 +
88 src_compile() {
89 # Calling this here supports resumption via FEATURES=keepwork
90 python_setup
91
92 - local ninja_targets="chrome chromedriver"
93 - if use suid; then
94 - ninja_targets+=" chrome_sandbox"
95 - fi
96 -
97 # Build mksnapshot and pax-mark it.
98 - if tc-is-cross-compiler; then
99 - eninja -C out/Release host/mksnapshot || die
100 - pax-mark m out/Release/host/mksnapshot
101 - else
102 - eninja -C out/Release mksnapshot || die
103 - pax-mark m out/Release/mksnapshot
104 - fi
105 + host_binary mksnapshot v8_context_snapshot_generator
106 +
107 + # Work around circular dep issue
108 + # https://chromium-review.googlesource.com/c/chromium/src/+/617768
109 + eninja -C out/Release gen/ui/accessibility/ax_enums.h
110
111 # Even though ninja autodetects number of CPUs, we respect
112 # user's options, for debugging with -j 1 or any other reason.
113 - eninja -C out/Release ${ninja_targets} || die
114 + eninja -C out/Release chrome chromedriver
115 + use suid && eninja -C out/Release chrome_sandbox
116
117 pax-mark m out/Release/chrome
118 }