in systemd >= 218 libudev deprecated support for udev_set_log_fn see https://github.com/systemd/systemd/commit/25e773eeb4f853804e1bf0dbd9a184f23e9b2a97
Change-Id: If6e3742bd2a70685f2521f134d5965bf2d1f8f72 Signed-off-by: Khem Raj <raj.k...@gmail.com> --- .../chromium/chromium-40/0010-systemd-218.patch | 34 ++++++++++++++++++++++ recipes-browser/chromium/chromium_40.0.2214.91.bb | 1 + 2 files changed, 35 insertions(+) create mode 100644 recipes-browser/chromium/chromium/chromium-40/0010-systemd-218.patch diff --git a/recipes-browser/chromium/chromium/chromium-40/0010-systemd-218.patch b/recipes-browser/chromium/chromium/chromium-40/0010-systemd-218.patch new file mode 100644 index 0000000..a5fab44 --- /dev/null +++ b/recipes-browser/chromium/chromium/chromium-40/0010-systemd-218.patch @@ -0,0 +1,34 @@ +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); + } + diff --git a/recipes-browser/chromium/chromium_40.0.2214.91.bb b/recipes-browser/chromium/chromium_40.0.2214.91.bb index 3a5108e..53af755 100644 --- a/recipes-browser/chromium/chromium_40.0.2214.91.bb +++ b/recipes-browser/chromium/chromium_40.0.2214.91.bb @@ -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" -- 2.1.4 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel