chromium: Fix build with security flags
PATCH 1/1 chromium: Fix build with security flags
Also fix build with glibc 2.26 while here
Signed-off-by Khem Raj <[email protected]>
--- recipes-browser/chromium/chromium-browser.inc | 2 + ...264-disable-format-security-warning.patch.patch | 37 ++++ ...2-replace-struct-ucontext-with-ucontext_t.patch | 225 +++++++++++++++++++++ 3 files changed, 264 insertions(+) create mode 100644 recipes-browser/chromium/files/0001-openh264-disable-format-security-warning.patch.patch create mode 100644 recipes-browser/chromium/files/0002-replace-struct-ucontext-with-ucontext_t.patch
recipes-browser/chromium/chromium-browser.inc +2 -0
@@ -28,6 +28,8 @@ SRC_URI = "\ file://unset-madv-free.patch \ file://0001-v8-fix-build-with-gcc7.patch \ file://0002-WebKit-fix-build-with-gcc7.patch \ + file://0001-openh264-disable-format-security-warning.patch.patch \ + file://0002-replace-struct-ucontext-with-ucontext_t.patch \ " S = "${WORKDIR}/chromium-${PV}"
recipes-browser/chromium/files/0001-openh264-disable-format-security-warning.patch.patch new file +37 -0
@@ -0,0 +1,37 @@ +From 677aef7548a5cf545a99eb8f2f6761435a745e3d Mon Sep 17 00:00:00 2001 +From: OpenEmbedded <oe.patch@oe> +Date: Sun, 2 Jul 2017 14:30:38 -0700 +Subject: [PATCH] openh264: disable-format-security-warning.patch + +--- + third_party/openh264/BUILD.gn | 1 + + third_party/openh264/openh264.gyp | 1 + + 2 files changed, 2 insertions(+) + +diff --git a/third_party/openh264/BUILD.gn b/third_party/openh264/BUILD.gn +index 1b1ea416f..ad6db3381 100644 +--- a/third_party/openh264/BUILD.gn ++++ b/third_party/openh264/BUILD.gn +@@ -18,6 +18,7 @@ config("config") { + if (!is_win || is_clang) { + cflags += [ + "-Wno-format", ++ "-Wno-format-security", + "-Wno-header-hygiene", + "-Wno-unused-function", + "-Wno-unused-value", +diff --git a/third_party/openh264/openh264.gyp b/third_party/openh264/openh264.gyp +index 388e65500..42b14ada5 100644 +--- a/third_party/openh264/openh264.gyp ++++ b/third_party/openh264/openh264.gyp +@@ -15,6 +15,7 @@ + 'variables': { + 'openh264_cflags_add': [ + '-Wno-format', ++ '-Wno-format-security', + '-Wno-unused-value', + ], + 'openh264_cflags_remove': [ +-- +2.13.2 +
recipes-browser/chromium/files/0002-replace-struct-ucontext-with-ucontext_t.patch new file +225 -0
225 lines not on this page · raw message
Signature · 1 line
2.13.2