Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add recipe for dbus-cxx #302

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions meta-oe/recipes-core/dbus-cxx/dbus-cxx_0.12.bb
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
SUMMARY = "D-Bus wrapper in C++ for dbus"
HOMEPAGE = "https://dbus-cxx.github.io/"
SECTION = "base"
LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://COPYING;md5=4cf0188f02184e1e84b9586ac53c3f83"

FILEEXTRAPATHS_prepend = "${THISDIR}/files"
SRC_URI = "git://github.com/dbus-cxx/dbus-cxx.git;branch=master"
SRC_URI += "file://fix_build_musl.patch"
SRCREV = "ea7f8e361d11dc7d41d9ae2c4128aed2cdadd84e"

DEPENDS = "\
dbus \
libsigc++-2.0 \
"

RDEPENDS_${PN} = "\
dbus \
libsigc++-2.0 \
"

S = "${WORKDIR}/git/"

inherit pkgconfig cmake

OECMAKE_FIND_ROOT_PATH_MODE_PROGRAM = "BOTH"
26 changes: 26 additions & 0 deletions meta-oe/recipes-core/dbus-cxx/files/fix_build_musl.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
diff --git a/dbus-cxx/timeout.cpp b/dbus-cxx/timeout.cpp
index 16e9f7e..aa0b99f 100644
--- a/dbus-cxx/timeout.cpp
+++ b/dbus-cxx/timeout.cpp
@@ -132,7 +132,7 @@ namespace DBus
return m_cobj;
}

- void Timeout::timer_callback_proxy( sigval_t sv ) {
+ void Timeout::timer_callback_proxy( union sigval sv ) {
SIMPLELOGGER_DEBUG( "dbus.Timeout","Timeout::timer_callback_proxy" );
Timeout* t;
t = ( Timeout* ) sv.sival_ptr;
diff --git a/dbus-cxx/timeout.h b/dbus-cxx/timeout.h
index 1e469b5..5b69fbb 100644
--- a/dbus-cxx/timeout.h
+++ b/dbus-cxx/timeout.h
@@ -83,7 +83,7 @@ namespace DBus

std::mutex m_arming_mutex;

- static void timer_callback_proxy( sigval_t sv );
+ static void timer_callback_proxy( union sigval sv );

};

1 change: 1 addition & 0 deletions meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ RDEPENDS_packagegroup-meta-oe-core = "\
sdbus-c++ \
toybox \
usleep \
dbus-cxx \
"
RDEPENDS_packagegroup-meta-oe-core_append_libc-glibc = " glfw"
RDEPENDS_packagegroup-meta-oe-core_remove_riscv64 = "safec"
Expand Down