summarylogtreecommitdiffstats
path: root/chromium-widevine-r2.patch
diff options
context:
space:
mode:
authorMaxim Baz2018-05-30 22:32:47 +0200
committerMaxim Baz2018-05-31 23:27:06 +0200
commit520b1cd98bb68ac0745ff9e7e11a9d17f325ff64 (patch)
tree649469a7890e1e93c8f9542405c45d57c0dcb8f7 /chromium-widevine-r2.patch
parente3f62740eeb888fea32bbce4d536bb32433b53cc (diff)
downloadaur-520b1cd98bb68ac0745ff9e7e11a9d17f325ff64.tar.gz
Update to 67.0.3396.62
Diffstat (limited to 'chromium-widevine-r2.patch')
-rw-r--r--chromium-widevine-r2.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/chromium-widevine-r2.patch b/chromium-widevine-r2.patch
new file mode 100644
index 000000000000..5527f7f293c6
--- /dev/null
+++ b/chromium-widevine-r2.patch
@@ -0,0 +1,39 @@
+Minimal patch to get chromium to compile with widevine support.
+
+Exactly the same as -r1, but we now need to patch
+ninja to pretty please not terminate our build.
+
+caveat emptor: it's in no way clear that building chromium this
+way is safer, from a security perspective, than whatever Google
+Chrome does.
+
+Upstream appears to be cooking up a code-signing trust-chain
+which may protect users against malicious cdm blobs; I doubt
+we benefit from these using this kludge. Ideally, someone
+would look into this more carefully than I have ... tbh as
+soon as I got my "stories" back, I pretty much lost interest :)
+
+-gmt
+
+--
+--- a/third_party/widevine/cdm/stub/widevine_cdm_version.h
++++ b/third_party/widevine/cdm/stub/widevine_cdm_version.h
+@@ -10,6 +10,7 @@
+
+ #include "third_party/widevine/cdm/widevine_cdm_common.h"
+
++#define WIDEVINE_CDM_VERSION_STRING "unknown"
+ #define WIDEVINE_CDM_AVAILABLE
+
+ #endif // WIDEVINE_CDM_VERSION_H_
+--- a/third_party/widevine/cdm/BUILD.gn
++++ b/third_party/widevine/cdm/BUILD.gn
+@@ -11,7 +11,7 @@ import("//third_party/widevine/cdm/widev
+ # Internal Cast builds set enable_widevine=true to bring in Widevine support.
+ # TODO(xhwang): Support component updated CDM on other platforms and remove this
+ # assert.
+-assert(!enable_widevine || is_win || is_mac || is_chromecast,
++assert(!enable_widevine || is_win || is_mac || is_chromecast || is_linux,
+ "Component updated CDM only supported on Windows and Mac for now.")
+
+ widevine_arch = current_cpu