Skip to contentSkip to conversation

cef3: Add recipe for Chromium Embedded Framework

PATCH Superseded Khem Raj 1 participant 2 messages Apr 27, 2015

v5 of 8 Superseded Latest is v8 →

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH v5 1/2 cef3: Add recipe for Chromium Embedded Framework

CEF is a framework to embed chromium based browsers into other applications

Change-Id Ieabae43042101331f67cf6e673391f6fe320561f
---
 .../cef3/01_get_svn_version_from_LASTCHANGE.patch  |  32 +++
 recipes-browser/chromium/cef3_280796.bb            |  50 ++++
 recipes-browser/chromium/chromium.inc              | 251 +++++++--------------
 recipes-browser/chromium/chromium_40.0.2214.91.bb  | 163 +++++++++++++
 4 files changed, 327 insertions(+), 169 deletions(-)
 create mode 100644 recipes-browser/chromium/cef3/01_get_svn_version_from_LASTCHANGE.patch
 create mode 100644 recipes-browser/chromium/cef3_280796.bb
recipes-browser/chromium/cef3/01_get_svn_version_from_LASTCHANGE.patch new file +32 -0
new file mode 100644
index 0000000..9b14429
@@ -0,0 +1,32 @@
+Fetch the revision from LASTCHANGE file programmatically
+
+Upstream-Status: Pending
+
+Signed-off-by: Zoltan Kuscsik <[email protected]>
+Signed-off-by: Khem Raj <[email protected]>
+
+diff --git a/cef/tools/make_version_header.py b/cef/tools/make_version_header.py
+index 84d49f5..395c2cf 100644
+--- a/cef/tools/make_version_header.py
++++ b/cef/tools/make_version_header.py
+@@ -64,6 +64,8 @@ def write_svn_header(header, chrome_version, cef_version, cpp_header_dir):
+       revision = svn.get_revision()
+     elif git.is_checkout('.'):
+       revision = git.get_svn_revision()
++    elif os.path.isfile("../build/util/LASTCHANGE"):
++      revision = open("../build/util/LASTCHANGE").read().split("=")[1].strip()
+     else:
+       raise Exception('Not a valid checkout')
+
+diff --git a/cef/tools/revision.py b/cef/tools/revision.py
+index 1d94602..eb89e3b 100644
+--- a/cef/tools/revision.py
++++ b/cef/tools/revision.py
+@@ -16,6 +16,8 @@ if os.path.exists(os.path.join('.', '.svn')):
+   sys.stdout.write(svn.get_revision())
+ elif os.path.exists(os.path.join('.', '.git')):
+   sys.stdout.write(git.get_svn_revision())
++elif os.path.isfile("../build/util/LASTCHANGE"):
++  revision = open("../build/util/LASTCHANGE").read().split("=")[1].strip()
+ else:
+   raise Exception('Not a valid checkout')
recipes-browser/chromium/cef3_280796.bb new file +50 -0

50 lines not on this page · raw message

recipes-browser/chromium/chromium.inc +82 -169

293 lines not on this page · raw message

recipes-browser/chromium/chromium_40.0.2214.91.bb +163 -0

170 lines not on this page · raw message

Signature · 1 line
2.1.4
author
#1 lore raw

PATCH v2 2/2 chromium: Remove use of deprecated udev logging API

in systemd >= 218 libudev deprecated support for udev_set_log_fn see
https://github.com/systemd/systemd/commit/25e773eeb4f853804e1bf0dbd9a184f23e9b2a97

Change-Id If6e3742bd2a70685f2521f134d5965bf2d1f8f72
---
 .../chromium/chromium-40/0010-systemd-218.patch    | 39 ++++++++++++++++++++++
 recipes-browser/chromium/chromium_40.0.2214.91.bb  |  1 +
 2 files changed, 40 insertions(+)
 create mode 100644 recipes-browser/chromium/chromium/chromium-40/0010-systemd-218.patch
recipes-browser/chromium/chromium/chromium-40/0010-systemd-218.patch new file +39 -0
new file mode 100644
index 0000000..3aec8d0
@@ -0,0 +1,39 @@
+Remove use of udev_set_log_priority API its gone in systemd >= 218
+
+Upstream-Status: Pending
+Signed-off-by: Khem Raj <[email protected]>
+
+Index: chromium-40.0.2214.91/ui/events/ozone/device/udev/device_manager_udev.cc
+===================================================================
+--- chromium-40.0.2214.91.orig/ui/events/ozone/device/udev/device_manager_udev.cc
++++ chromium-40.0.2214.91/ui/events/ozone/device/udev/device_manager_udev.cc
+@@ -33,29 +33,9 @@ enum {
+   SYS_LOG_DEBUG = 7,
+ };
+ 
+-// Log handler for messages generated from libudev.
+-void UdevLog(struct udev* udev,
+-             int priority,
+-             const char* file,
+-             int line,
+-             const char* fn,
+-             const char* format,
+-             va_list args) {
+-  if (priority <= SYS_LOG_ERR)
+-    LOG(ERROR) << "libudev: " << fn << ": " << base::StringPrintV(format, args);
+-  else if (priority <= SYS_LOG_INFO)
+-    VLOG(1) << "libudev: " << fn << ": " << base::StringPrintV(format, args);
+-  else  // SYS_LOG_DEBUG
+-    VLOG(2) << "libudev: " << fn << ": " << base::StringPrintV(format, args);
+-}
+-
+ // Create libudev context.
+ device::ScopedUdevPtr UdevCreate() {
+   struct udev* udev = udev_new();
+-  if (udev) {
+-    udev_set_log_fn(udev, UdevLog);
+-    udev_set_log_priority(udev, SYS_LOG_DEBUG);
+-  }
+   return device::ScopedUdevPtr(udev);
+ }
+ 
recipes-browser/chromium/chromium_40.0.2214.91.bb +1 -0
index 3a5108e..53af755 100644
@@ -91,6 +91,7 @@ SRC_URI[sha256sum] = "f72fda9ff1ea256ab911610ee532eadf8303137d431f2481d01d3d60e5
 
 OZONE_WAYLAND_EXTRA_PATCHES += " \
         file://chromium-40/0005-Remove-X-libraries-from-GYP-files.patch \
+        file://chromium-40/0010-systemd-218.patch \
 "
 OZONE_WAYLAND_GIT_BRANCH = "Milestone-ThanksGiving"
 OZONE_WAYLAND_GIT_SRCREV = "5d7baa9bc3b8c88e9b7e476e3d6bc8cd44a887fe"
Signature · 1 line
2.1.4