From patchwork Wed Nov 16 15:44:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "thilo.cestonaro@ts.fujitsu.com" X-Patchwork-Id: 82551 Delivered-To: patch@linaro.org Received: by 10.182.1.168 with SMTP id 8csp258798obn; Wed, 16 Nov 2016 07:50:37 -0800 (PST) X-Received: by 10.98.157.148 with SMTP id a20mr5475334pfk.1.1479311436977; Wed, 16 Nov 2016 07:50:36 -0800 (PST) Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id q63si32360525pfg.266.2016.11.16.07.50.36; Wed, 16 Nov 2016 07:50:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org Received: from review.yoctoproject.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 6F82971A6D; Wed, 16 Nov 2016 15:50:32 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail1.bemta5.messagelabs.com (mail1.bemta5.messagelabs.com [195.245.231.142]) by mail.openembedded.org (Postfix) with ESMTP id B672F60111 for ; Wed, 16 Nov 2016 15:44:40 +0000 (UTC) Received: from [85.158.136.83] by server-6.bemta-5.messagelabs.com id 94/52-14841-9EE7C285; Wed, 16 Nov 2016 15:44:41 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrPKsWRWlGSWpSXmKPExsViZ8MxRfdFnU6 EwbabohYXDy9ldmD0OLdxBWMAYxRrZl5SfkUCa8aeNckFJ6IqTvxvYm9gbIjsYuTiEBLYzCSx ctpXRgjnGKPEu85uKOcio8SG2fuZuhg5OdgE3CW23rsPZosIxEgsPX+eDcQWFrCTePX3GzNE3 FlibncvC4StJ7Ft9jtWEJtFQFVi2eNeRhCbV8BUYtPb42A1QgLeEqc/zgbrZRRQkdh1dwtYDb OAuMStJ/PBdkkIiEg8vHiaDcIWlXj5+B8rhK0isWXdB3YIW0fi7PUnjBC2gcTWpftYIGxFiRc tn5khZlZJrLt/jx3iBkGJkzOfsExgFJ2FZN0sJGWzkJRBxB0kJu25yQZha0q0bv/NDmFrSyxb +JoZwg6RWP1qMpStKDGl+yFUTazE7k9nWSFsW4n9V1dC1ZhKvD76kRFZ/QJGnlWMGsWpRWWpR bqGpnpJRZnpGSW5iZk5uoYGpnq5qcXFiempOYlJxXrJ+bmbGIERzwAEOxgbtnseYpTkYFIS5e 0o04kQ4kvKT6nMSCzOiC8qzUktPsQow8GhJMFbXQuUEyxKTU+tSMvMAaYemLQEB4+SCO9rkDR vcUFibnFmOkTqFKOilDjvJZCEAEgiozQPrg2W7i4xykoJ8zICHSLEU5BalJtZgir/ilGcg1FJ mPc7yBSezLwSuOmvgBYzAS3eIwC2uCQRISXVwLhCg0UrXpd9Wfl967eTxX6tPrwt+SJX+Yo31 j+C5c+37Xr7j5+z9cUxsT1r78XwqpVPN3P0+rLtjbAy52bhtIvP78y4u1LPIyxt2+ZZ7JVxi3 sZI8xbtst8t67MjNtamZFt1vmDsab6cPmM5K320/MFxJa5trVa7/v9RvPR04/VBXl/DXaUL1Z iKc5INNRiLipOBAD+Ftr6cgMAAA== X-Env-Sender: thilo.cestonaro@ts.fujitsu.com X-Msg-Ref: server-9.tower-36.messagelabs.com!1479311079!70456637!1 X-Originating-IP: [62.60.8.148] X-StarScan-Received: X-StarScan-Version: 9.0.16; banners=-,-,- X-VirusChecked: Checked Received: (qmail 1269 invoked from network); 16 Nov 2016 15:44:40 -0000 Received: from unknown (HELO mailhost1.uk.fujitsu.com) (62.60.8.148) by server-9.tower-36.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 16 Nov 2016 15:44:40 -0000 Received: from R01UKEXCASM125.r01.fujitsu.local (ex2k13_125.fs.fujitsu.com [10.183.43.177]) by mailhost1.uk.fujitsu.com (8.14.5/8.14.5) with ESMTP id uAGFhif8028624 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL) for ; Wed, 16 Nov 2016 15:43:44 GMT Received: from R01UKEXCASM121.r01.fujitsu.local (10.183.43.173) by R01UKEXCASM125.r01.fujitsu.local (10.183.43.177) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Wed, 16 Nov 2016 15:44:39 +0000 Received: from R01UKEXCASM121.r01.fujitsu.local ([fe80::48eb:6503:a1bb:c29c]) by R01UKEXCASM121.r01.fujitsu.local ([fe80::48eb:6503:a1bb:c29c%22]) with mapi id 15.00.1178.000; Wed, 16 Nov 2016 15:44:39 +0000 From: "thilo.cestonaro@ts.fujitsu.com" To: "openembedded-devel@lists.openembedded.org" Thread-Topic: [oe][meta-oe][PATCH] libdbus-c++: added recipe for it Thread-Index: AQHSQCBWGcmoXQHV4UWd9llsKkmqdw== Date: Wed, 16 Nov 2016 15:44:38 +0000 Message-ID: <1479310856.4732.19.camel@ts.fujitsu.com> Accept-Language: de-DE, en-GB, en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: x-mailer: Evolution 3.22.2-1ubuntu1 x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.183.43.206] MIME-Version: 1.0 Subject: [oe] [meta-oe][PATCH] libdbus-c++: added recipe for it X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: openembedded-devel@lists.openembedded.org Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Hey, here is a patch which adds a recipe for libdbus-c++. Cheers, Thilo Cestonaro -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel >From 509846c30a6e6eef6cde7841d99bb00254a5bffe Mon Sep 17 00:00:00 2001 From: Thilo Cestonaro Date: Tue, 15 Nov 2016 16:12:04 +0100 Subject: libdbus-c++: added recipe for it to fix the build, two patches where needed. One which just adds an include of unistd.h, as the functions pipe, write and close defined by this include, weren't defined. The other patch enables the build to build the tools of libdbus-c++ for the target, which, without the patch, will always be build for the host, even when cross compiling. Signed-off-by: Thilo Cestonaro --- .../fix-missing-unistd.h-include.patch | 12 +++++++++++ .../remove-CXX_FOR_BUILD-stuff.patch | 24 ++++++++++++++++++++++ meta-oe/recipes-core/dbus/libdbus-c++_0.9.0.bb | 24 ++++++++++++++++++++++ 3 files changed, 60 insertions(+) create mode 100644 meta-oe/recipes-core/dbus/libdbus-c++-0.9.0/fix-missing-unistd.h-include.patch create mode 100644 meta-oe/recipes-core/dbus/libdbus-c++-0.9.0/remove-CXX_FOR_BUILD-stuff.patch create mode 100644 meta-oe/recipes-core/dbus/libdbus-c++_0.9.0.bb diff --git a/meta-oe/recipes-core/dbus/libdbus-c++-0.9.0/fix-missing-unistd.h-include.patch b/meta-oe/recipes-core/dbus/libdbus-c++-0.9.0/fix-missing-unistd.h-include.patch new file mode 100644 index 0000000..5cb8096 --- /dev/null +++ b/meta-oe/recipes-core/dbus/libdbus-c++-0.9.0/fix-missing-unistd.h-include.patch @@ -0,0 +1,12 @@ +diff --git a/include/dbus-c++/eventloop-integration.h b/include/dbus-c++/eventloop-integration.h +index 1b0302e..3e44304 100644 +--- a/include/dbus-c++/eventloop-integration.h ++++ b/include/dbus-c++/eventloop-integration.h +@@ -26,6 +26,7 @@ + #define __DBUSXX_EVENTLOOP_INTEGRATION_H + + #include ++#include + #include "api.h" + #include "dispatcher.h" + #include "util.h" diff --git a/meta-oe/recipes-core/dbus/libdbus-c++-0.9.0/remove-CXX_FOR_BUILD-stuff.patch b/meta-oe/recipes-core/dbus/libdbus-c++-0.9.0/remove-CXX_FOR_BUILD-stuff.patch new file mode 100644 index 0000000..906470a --- /dev/null +++ b/meta-oe/recipes-core/dbus/libdbus-c++-0.9.0/remove-CXX_FOR_BUILD-stuff.patch @@ -0,0 +1,24 @@ +diff -Naur libdbus-c++-0.9.0.ori/configure.ac libdbus-c++-0.9.0/configure.ac +--- libdbus-c++-0.9.0.ori/configure.ac 2016-11-15 14:25:36.085882774 +0100 ++++ libdbus-c++-0.9.0/configure.ac 2016-11-15 14:27:08.814568717 +0100 +@@ -64,9 +64,6 @@ + AC_PROG_CC + AC_PROG_CXX + +-CXX_FOR_BUILD=${CXX_FOR_BUILD-${CXX}} +-AC_SUBST(CXX_FOR_BUILD) +- + AM_PROG_LIBTOOL + + PKG_PROG_PKG_CONFIG +diff -Naur libdbus-c++-0.9.0.ori/tools/Makefile.am libdbus-c++-0.9.0/tools/Makefile.am +--- libdbus-c++-0.9.0.ori/tools/Makefile.am 2016-11-15 14:25:36.089882803 +0100 ++++ libdbus-c++-0.9.0/tools/Makefile.am 2016-11-15 14:26:19.454203583 +0100 +@@ -1,7 +1,5 @@ + # hacky, but ... + +-CXX = $(CXX_FOR_BUILD) +- + AM_CPPFLAGS = \ + $(dbus_CFLAGS) \ + $(xml_CFLAGS) \ diff --git a/meta-oe/recipes-core/dbus/libdbus-c++_0.9.0.bb b/meta-oe/recipes-core/dbus/libdbus-c++_0.9.0.bb new file mode 100644 index 0000000..7edaffc --- /dev/null +++ b/meta-oe/recipes-core/dbus/libdbus-c++_0.9.0.bb @@ -0,0 +1,24 @@ +SUMMARY = "DBus-C++ Library" +DESCRIPTION = "DBus-c++ attempts to provide a C++ API for D-BUS. The library has a glib and an Ecore mainloop integration. It also offers an optional own main loop." +HOMEPAGE = "http://dbus-cplusplus.sourceforge.net" +SECTION = "base" +LICENSE = "LGPLv2.1" +LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24" +DEPENDS = "dbus glib-2.0 libpcre" + +SRC_URI = "${SOURCEFORGE_MIRROR}/project/dbus-cplusplus/dbus-c++/${PV}/${BPN}-${PV}.tar.gz \ + file://fix-missing-unistd.h-include.patch \ + file://remove-CXX_FOR_BUILD-stuff.patch" +SRC_URI[md5sum] = "e752116f523fa88ef041e63d3dee4de2" +SRC_URI[sha256sum] = "bc11ac297b3cb010be904c72789695543ee3fdf3d75cdc8225fd371385af4e61" + +EXTRA_OECONF = "--disable-ecore --disable-examples --disable-tests" + +inherit autotools pkgconfig + +PACKAGES += "${PN}-tools" + +FILES_${PN} = "${libdir}" +FILES_${PN}-tools = "${bindir}" + +BBCLASSEXTEND = "native" -- 2.10.2