added recipe for libdbus-c++
PATCH 1/1 added recipe for libdbus-c++
--- .../fix-missing-unistd.h-include.patch | 12 + .../remove-CXX_FOR_BUILD-stuff.patch | 257 +++++++++++++++++++++ meta/recipes-core/dbus/libdbus-c++_0.9.0.bb | 24 ++ 3 files changed, 293 insertions(+) create mode 100644 meta/recipes-core/dbus/libdbus-c++-0.9.0/fix-missing-unistd.h-include.patch create mode 100644 meta/recipes-core/dbus/libdbus-c++-0.9.0/remove-CXX_FOR_BUILD-stuff.patch create mode 100644 meta/recipes-core/dbus/libdbus-c++_0.9.0.bb
meta/recipes-core/dbus/libdbus-c++-0.9.0/fix-missing-unistd.h-include.patch new file +12 -0
@@ -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 <errno.h> ++#include <unistd.h> + #include "api.h" + #include "dispatcher.h" + #include "util.h"
meta/recipes-core/dbus/libdbus-c++-0.9.0/remove-CXX_FOR_BUILD-stuff.patch new file +257 -0
257 lines not on this page · raw message
meta/recipes-core/dbus/libdbus-c++_0.9.0.bb new file +24 -0
@@ -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"
Signature · 1 line
2.10.2
Quoted 5 lines · Thilo Cestonaro
Signed-off-by Thilo Cestonaro <[email protected]>--- .../fix-missing-unistd.h-include.patch | 12 + .../remove-CXX_FOR_BUILD-stuff.patch | 257 +++++++++++++++++++++ meta/recipes-core/dbus/libdbus-c++_0.9.0.bb | 24 ++
The whole thing should go to meta-openembedded (mailing list openembedded-devel). Patches are missing description of what they are for, and Upstream-Status, and Signed-off-by lines. Follow this please:
http://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
Alex
Quoted 2 lines · Thilo Cestonaro
Signed-off-by Thilo Cestonaro <[email protected]>
As Alex said, please submit this to meta-oe as there's no strong rationale to keep it in oe-core, especially considering it's abandoned.
The remove_CXX_FOR_BUILD-stuff patch can be trimmed to just modify configure.ac and tools/Makefile.am, the other files will be regenerated at do_configure and patching them can cause conflicts if upstream ever makes a new release.
Also please explain clearly why that has to be removed in the patch header because usually we need to patch *in* the _FOR_BUILD macros: I was curious and ended up looking at the build to understand why. AFAICT it's because upstream if cross-compiling it refuses to build target tools and will only build host tools so the test suite can run, but disabling the tests and patching out CXX_FOR_BUILD we can build target tools. The downside is that we have no test suite, which is useful (see the ptest class).
Thank you for being the first person in a long time to actually submit the recipe to the community!
Ross
Am Dienstag, den 15.11.2016, 14:23 +0000 schrieb Burton, Ross:
Quoted 13 lines · Thilo Cestonaro
Quoted 2 lines
Signed-off-by Thilo Cestonaro <[email protected]>As Alex said, please submit this to meta-oe as there's no strong rationale to keep it in oe-core, especially considering it's abandoned.
The remove_CXX_FOR_BUILD-stuff patch can be trimmed to just modify configure.ac and
tools/Makefile.am, the other files will be regenerated atdo_configureand patching them can cause conflicts if upstream ever makes a new release.Also please explain clearly why that has to be removed in the patch header because usually we need to patch *in* the
_FOR_BUILDmacros: I was curious and ended up looking at the build to understand why. AFAICT it's because upstream if cross-compiling it refuses to build target tools and will only build host tools so the test suite can run, but disabling the tests and patching outCXX_FOR_BUILDwe can build target tools. The downside is that we have no test suite, which is useful (see the ptest class).
Perhaps I will add ptest in another patch later. Will need to look into it. Thanks for your comments!
Quoted 4 lines
Thank you for being the first person in a long time to actually submit the recipe to the community!
Ross