From 42e0fa5c459a66cc39bf988f6627b19b722b0ca4 Mon Sep 17 00:00:00 2001 From: Andreas Oberritter Date: Fri, 8 Feb 2013 03:42:00 +0900 Subject: [PATCH 1/1] dbus-1.4.16: fix compile with c++11 --- .../dbus/dbus-1.4.16/compile-under-c++11.patch | 34 ++++++++++++++++++++++ .../recipes-core/dbus/dbus_1.4.16.bbappend | 5 ++++ 2 files changed, 39 insertions(+) create mode 100644 meta-openvuplus/recipes-core/dbus/dbus-1.4.16/compile-under-c++11.patch create mode 100644 meta-openvuplus/recipes-core/dbus/dbus_1.4.16.bbappend diff --git a/meta-openvuplus/recipes-core/dbus/dbus-1.4.16/compile-under-c++11.patch b/meta-openvuplus/recipes-core/dbus/dbus-1.4.16/compile-under-c++11.patch new file mode 100644 index 0000000..38ab7e2 --- /dev/null +++ b/meta-openvuplus/recipes-core/dbus/dbus-1.4.16/compile-under-c++11.patch @@ -0,0 +1,34 @@ +From a942d1543f4d87db821c5836986129dea79a173d Mon Sep 17 00:00:00 2001 +From: Marc Mutz +Date: Thu, 16 Feb 2012 08:43:40 +0100 +Subject: [PATCH] dbus-protocol.h: compile under C++11 + +C++11 compilers have a feature called 'user-defined string literals' which +allow arbitrary string suffixes to have user-defined meaning. + +This makes code that concatenates macros with string literals without +intervening whitespace illegal under C++11. Fortunately, string literal +concatenation has allowed intervening whitespace since the dawn of time, +so the solution is to simply pad with spaces. + +Tested (header) with GCC 4.7 (trunk). +--- + dbus/dbus-protocol.h | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/dbus/dbus-protocol.h b/dbus/dbus-protocol.h +index 8aa15e5..60605ab 100644 +--- a/dbus/dbus-protocol.h ++++ b/dbus/dbus-protocol.h +@@ -456,7 +456,7 @@ extern "C" { + /** XML system identifier of the introspection format version 1.0 */ + #define DBUS_INTROSPECT_1_0_XML_SYSTEM_IDENTIFIER "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd" + /** XML document type declaration of the introspection format version 1.0 */ +-#define DBUS_INTROSPECT_1_0_XML_DOCTYPE_DECL_NODE "\n" ++#define DBUS_INTROSPECT_1_0_XML_DOCTYPE_DECL_NODE "\n" + + /** @} */ + +-- +1.7.2.3 + diff --git a/meta-openvuplus/recipes-core/dbus/dbus_1.4.16.bbappend b/meta-openvuplus/recipes-core/dbus/dbus_1.4.16.bbappend new file mode 100644 index 0000000..ff7200c --- /dev/null +++ b/meta-openvuplus/recipes-core/dbus/dbus_1.4.16.bbappend @@ -0,0 +1,5 @@ +PR .= "-dream1" + +SRC_URI += "file://compile-under-c++11.patch" + +FILESEXTRAPATHS_prepend := "${THISDIR}/${P}:" -- 2.7.4