1 |
commit: de41b779f3f54ae334faffb1443c90c4d320d764 |
2 |
Author: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Mar 5 22:31:07 2017 +0000 |
4 |
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Mar 5 22:38:41 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/betagarden.git/commit/?id=de41b779 |
7 |
|
8 |
www-client/chromium-bin-debian: Prevent collisions, allow installing extensions |
9 |
|
10 |
...6_p5.ebuild => chromium-bin-debian-56.0.2924.76_p5-r1.ebuild} | 5 ++++- |
11 |
...ium-bin-debian-56.0.2924.76_p5-enable-remote-extensions.patch | 9 +++++++++ |
12 |
2 files changed, 13 insertions(+), 1 deletion(-) |
13 |
|
14 |
diff --git a/www-client/chromium-bin-debian/chromium-bin-debian-56.0.2924.76_p5.ebuild b/www-client/chromium-bin-debian/chromium-bin-debian-56.0.2924.76_p5-r1.ebuild |
15 |
similarity index 91% |
16 |
rename from www-client/chromium-bin-debian/chromium-bin-debian-56.0.2924.76_p5.ebuild |
17 |
rename to www-client/chromium-bin-debian/chromium-bin-debian-56.0.2924.76_p5-r1.ebuild |
18 |
index c273d6e..e2775e1 100644 |
19 |
--- a/www-client/chromium-bin-debian/chromium-bin-debian-56.0.2924.76_p5.ebuild |
20 |
+++ b/www-client/chromium-bin-debian/chromium-bin-debian-56.0.2924.76_p5-r1.ebuild |
21 |
@@ -91,6 +91,7 @@ S=${WORKDIR} |
22 |
|
23 |
src_prepare() { |
24 |
epatch "${FILESDIR}"/${PN}-53.0.2785.143_p1-gentoo.patch |
25 |
+ epatch "${FILESDIR}"/${PN}-56.0.2924.76_p5-enable-remote-extensions.patch |
26 |
} |
27 |
|
28 |
src_install() { |
29 |
@@ -102,7 +103,9 @@ src_install() { |
30 |
} |
31 |
|
32 |
# Make it find Debian libraries, sourced by /usr/bin/chromium |
33 |
- echo 'export LD_LIBRARY_PATH="/usr/lib64/x86_64-linux-gnu/${LD_LIBRARY_PATH:+:}${LD_LIBRARY_PATH}"' \ |
34 |
+ # While at it, we move them somewhere with less risk of collision |
35 |
+ mv "${D}"/usr/lib64/{,chromium/}x86_64-linux-gnu/ || die |
36 |
+ echo 'export LD_LIBRARY_PATH="/usr/lib64/chromium/x86_64-linux-gnu/${LD_LIBRARY_PATH:+:}${LD_LIBRARY_PATH}"' \ |
37 |
> "${D}"/etc/chromium.d/ld-library-path |
38 |
|
39 |
# Link to Flash (not in RDEPEND) |
40 |
|
41 |
diff --git a/www-client/chromium-bin-debian/files/chromium-bin-debian-56.0.2924.76_p5-enable-remote-extensions.patch b/www-client/chromium-bin-debian/files/chromium-bin-debian-56.0.2924.76_p5-enable-remote-extensions.patch |
42 |
new file mode 100644 |
43 |
index 0000000..e08f1c3 |
44 |
--- /dev/null |
45 |
+++ b/www-client/chromium-bin-debian/files/chromium-bin-debian-56.0.2924.76_p5-enable-remote-extensions.patch |
46 |
@@ -0,0 +1,9 @@ |
47 |
+--- a/etc/chromium.d/default-flags 2017-03-05 23:33:32.296413527 +0100 |
48 |
++++ b/etc/chromium.d/default-flags 2017-03-05 23:34:46.041613523 +0100 |
49 |
+@@ -14,3 +14,6 @@ |
50 |
+ |
51 |
+ # Disable the builtin media router (bug #833477) |
52 |
+ export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --media-router=0" |
53 |
++ |
54 |
++# Allow installing browser extensions |
55 |
++export CHROMIUM_FLAGS="${CHROMIUM_FLAGS} --enable-remote-extensions" |