1 |
commit: 7af3188a2035e98923dd1da81f2c74dbdc1f4739 |
2 |
Author: Magnus Granberg <zorry <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 10 00:29:32 2017 +0000 |
4 |
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 10 01:42:54 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7af3188a |
7 |
|
8 |
dev-qt/qtwebengine: fix build on pax kernel |
9 |
|
10 |
Closes: https://bugs.gentoo.org/634220 |
11 |
Package-Manager: Portage-2.3.14, Repoman-2.3.6 |
12 |
|
13 |
.../qtwebengine-5.9.3-paxmark-mksnapshot.patch | 41 ++++++++++++++++++++++ |
14 |
dev-qt/qtwebengine/qtwebengine-5.9.3.ebuild | 2 +- |
15 |
2 files changed, 42 insertions(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/dev-qt/qtwebengine/files/qtwebengine-5.9.3-paxmark-mksnapshot.patch b/dev-qt/qtwebengine/files/qtwebengine-5.9.3-paxmark-mksnapshot.patch |
18 |
new file mode 100644 |
19 |
index 00000000000..ecedaf62f34 |
20 |
--- /dev/null |
21 |
+++ b/dev-qt/qtwebengine/files/qtwebengine-5.9.3-paxmark-mksnapshot.patch |
22 |
@@ -0,0 +1,41 @@ |
23 |
+Bug: https://bugs.gentoo.org/634220 |
24 |
+ |
25 |
+--- a/src/3rdparty/chromium/v8/BUILD.gn |
26 |
++++ b/src/3rdparty/chromium/v8/BUILD.gn |
27 |
+@@ -661,6 +661,7 @@ action("run_mksnapshot") { |
28 |
+ |
29 |
+ deps = [ |
30 |
+ ":mksnapshot($v8_snapshot_toolchain)", |
31 |
++ ":run_paxmark", |
32 |
+ ] |
33 |
+ |
34 |
+ script = "tools/run.py" |
35 |
+@@ -706,6 +707,28 @@ action("run_mksnapshot") { |
36 |
+ args += [ rebase_path(v8_embed_script, root_build_dir) ] |
37 |
+ } |
38 |
+ } |
39 |
++action("run_paxmark") { |
40 |
++ visibility = [ ":*" ] # Only targets in this file can depend on this. |
41 |
++ |
42 |
++ deps = [ |
43 |
++ ":mksnapshot($v8_snapshot_toolchain)", |
44 |
++ ] |
45 |
++ |
46 |
++ script = "/usr/sbin/pypaxctl" |
47 |
++ |
48 |
++ sources = [] |
49 |
++ |
50 |
++ outputs = [ |
51 |
++ "$target_out_dir/mksnapshot", |
52 |
++ ] |
53 |
++ |
54 |
++ args = [ |
55 |
++ "-sm", |
56 |
++ "./" + rebase_path(get_label_info(":mksnapshot($v8_snapshot_toolchain)", |
57 |
++ "root_out_dir") + "/mksnapshot", |
58 |
++ root_build_dir), |
59 |
++ ] |
60 |
++} |
61 |
+ |
62 |
+ action("run_mkpeephole") { |
63 |
+ visibility = [ ":*" ] # Only targets in this file can depend on this. |
64 |
|
65 |
diff --git a/dev-qt/qtwebengine/qtwebengine-5.9.3.ebuild b/dev-qt/qtwebengine/qtwebengine-5.9.3.ebuild |
66 |
index afb0d89df44..b0e35e0db27 100644 |
67 |
--- a/dev-qt/qtwebengine/qtwebengine-5.9.3.ebuild |
68 |
+++ b/dev-qt/qtwebengine/qtwebengine-5.9.3.ebuild |
69 |
@@ -76,7 +76,7 @@ DEPEND="${RDEPEND} |
70 |
PATCHES=( "${FILESDIR}/${P}-icu-60.1.patch" ) |
71 |
|
72 |
src_prepare() { |
73 |
- use pax_kernel && PATCHES+=( "${FILESDIR}/${PN}-5.9.0-paxmark-mksnapshot.patch" ) |
74 |
+ use pax_kernel && PATCHES+=( "${FILESDIR}/${PN}-5.9.3-paxmark-mksnapshot.patch" ) |
75 |
|
76 |
# bug 620444 - ensure local headers are used |
77 |
find "${S}" -type f -name "*.pr[fio]" | xargs sed -i -e 's|INCLUDEPATH += |&$$QTWEBENGINE_ROOT/include |' || die |