diff options
-rw-r--r-- | meta-oe/recipes-core/dbus-cxx/dbus-cxx_2.1.0.bb (renamed from meta-oe/recipes-core/dbus-cxx/dbus-cxx_0.12.bb) | 14 | ||||
-rw-r--r-- | meta-oe/recipes-core/dbus-cxx/files/0001-Include-typeinfo-for-typeid.patch | 29 | ||||
-rw-r--r-- | meta-oe/recipes-core/dbus-cxx/files/fix_build_musl.patch | 38 |
3 files changed, 49 insertions, 32 deletions
diff --git a/meta-oe/recipes-core/dbus-cxx/dbus-cxx_0.12.bb b/meta-oe/recipes-core/dbus-cxx/dbus-cxx_2.1.0.bb index bf393cd87c..1524f096f8 100644 --- a/meta-oe/recipes-core/dbus-cxx/dbus-cxx_0.12.bb +++ b/meta-oe/recipes-core/dbus-cxx/dbus-cxx_2.1.0.bb | |||
@@ -1,22 +1,24 @@ | |||
1 | SUMMARY = "D-Bus wrapper in C++ for dbus" | 1 | SUMMARY = "D-Bus wrapper in C++ for dbus" |
2 | HOMEPAGE = "https://dbus-cxx.github.io/" | 2 | HOMEPAGE = "https://dbus-cxx.github.io/" |
3 | BUGTRACKER = "https://github.com/libsigcplusplus/libsigcplusplus/issues" | ||
3 | SECTION = "base" | 4 | SECTION = "base" |
4 | LICENSE = "GPLv3" | 5 | LICENSE = "GPLv3" |
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=4cf0188f02184e1e84b9586ac53c3f83" | 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=4cf0188f02184e1e84b9586ac53c3f83" |
6 | 7 | ||
7 | FILEEXTRAPATHS:prepend = "${THISDIR}/files" | 8 | SRC_URI = "git://github.com/dbus-cxx/dbus-cxx.git;branch=master;protocol=https \ |
8 | SRC_URI = "git://github.com/dbus-cxx/dbus-cxx.git;branch=master;protocol=https" | 9 | file://0001-Include-typeinfo-for-typeid.patch \ |
9 | SRC_URI += "file://fix_build_musl.patch" | 10 | " |
10 | SRCREV = "ea7f8e361d11dc7d41d9ae2c4128aed2cdadd84e" | 11 | SRC_URI:append:libc-musl = "file://fix_build_musl.patch" |
12 | SRCREV = "73532d6a5faae9c721c2cc9535b8ef32d4d18264" | ||
11 | 13 | ||
12 | DEPENDS = "\ | 14 | DEPENDS = "\ |
13 | dbus \ | 15 | dbus \ |
14 | libsigc++-2.0 \ | 16 | libsigc++-3 \ |
15 | " | 17 | " |
16 | 18 | ||
17 | RDEPENDS:${PN} = "\ | 19 | RDEPENDS:${PN} = "\ |
18 | dbus \ | 20 | dbus \ |
19 | libsigc++-2.0 \ | 21 | libsigc++-3 \ |
20 | " | 22 | " |
21 | 23 | ||
22 | S = "${WORKDIR}/git" | 24 | S = "${WORKDIR}/git" |
diff --git a/meta-oe/recipes-core/dbus-cxx/files/0001-Include-typeinfo-for-typeid.patch b/meta-oe/recipes-core/dbus-cxx/files/0001-Include-typeinfo-for-typeid.patch new file mode 100644 index 0000000000..9117877403 --- /dev/null +++ b/meta-oe/recipes-core/dbus-cxx/files/0001-Include-typeinfo-for-typeid.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | From e262b6e7cc6271d71405f10c4817b9b3b2b95f05 Mon Sep 17 00:00:00 2001 | ||
2 | From: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com> | ||
3 | Date: Mon, 13 Dec 2021 02:00:48 +0100 | ||
4 | Subject: [PATCH] Include typeinfo for typeid() | ||
5 | |||
6 | Otherwise fails with: | ||
7 | error: must '#include <typeinfo>' before using 'typeid' | ||
8 | |||
9 | Upstream-Status: Submitted | ||
10 | [https://github.com/dbus-cxx/dbus-cxx/pull/83] | ||
11 | --- | ||
12 | dbus-cxx/demangle.h | 1 + | ||
13 | 1 file changed, 1 insertion(+) | ||
14 | |||
15 | diff --git a/dbus-cxx/demangle.h b/dbus-cxx/demangle.h | ||
16 | index b71bcb9..9a4e99b 100644 | ||
17 | --- a/dbus-cxx/demangle.h | ||
18 | +++ b/dbus-cxx/demangle.h | ||
19 | @@ -21,6 +21,7 @@ | ||
20 | #define DBUSCXX_DEMANGLE_H | ||
21 | |||
22 | #include <string> | ||
23 | +#include <typeinfo> | ||
24 | #include <dbus-cxx/dbus-cxx-config.h> | ||
25 | |||
26 | #if DBUS_CXX_HAS_CXXABI_H | ||
27 | -- | ||
28 | 2.25.1 | ||
29 | |||
diff --git a/meta-oe/recipes-core/dbus-cxx/files/fix_build_musl.patch b/meta-oe/recipes-core/dbus-cxx/files/fix_build_musl.patch index 3d912e0b01..e55d987e43 100644 --- a/meta-oe/recipes-core/dbus-cxx/files/fix_build_musl.patch +++ b/meta-oe/recipes-core/dbus-cxx/files/fix_build_musl.patch | |||
@@ -1,26 +1,12 @@ | |||
1 | diff --git a/dbus-cxx/timeout.cpp b/dbus-cxx/timeout.cpp | 1 | diff --git a/dbus-cxx/sasl.cpp b/dbus-cxx/sasl.cpp |
2 | index 16e9f7e..aa0b99f 100644 | 2 | index e8a6060..7a76af6 100644 |
3 | --- a/dbus-cxx/timeout.cpp | 3 | --- a/dbus-cxx/sasl.cpp |
4 | +++ b/dbus-cxx/timeout.cpp | 4 | +++ b/dbus-cxx/sasl.cpp |
5 | @@ -132,7 +132,7 @@ namespace DBus | 5 | @@ -70,7 +70,7 @@ std::tuple<bool, bool, std::vector<uint8_t>> SASL::authenticate() { |
6 | return m_cobj; | 6 | bool success = false; |
7 | } | 7 | bool negotiatedFD = false; |
8 | 8 | std::vector<uint8_t> serverGUID; | |
9 | - void Timeout::timer_callback_proxy( sigval_t sv ) { | 9 | - __uid_t uid = getuid(); |
10 | + void Timeout::timer_callback_proxy( union sigval sv ) { | 10 | + uid_t uid = getuid(); |
11 | SIMPLELOGGER_DEBUG( "dbus.Timeout","Timeout::timer_callback_proxy" ); | 11 | std::string line; |
12 | Timeout* t; | 12 | std::smatch regex_match; |
13 | t = ( Timeout* ) sv.sival_ptr; | ||
14 | diff --git a/dbus-cxx/timeout.h b/dbus-cxx/timeout.h | ||
15 | index 1e469b5..5b69fbb 100644 | ||
16 | --- a/dbus-cxx/timeout.h | ||
17 | +++ b/dbus-cxx/timeout.h | ||
18 | @@ -83,7 +83,7 @@ namespace DBus | ||
19 | |||
20 | std::mutex m_arming_mutex; | ||
21 | |||
22 | - static void timer_callback_proxy( sigval_t sv ); | ||
23 | + static void timer_callback_proxy( union sigval sv ); | ||
24 | |||
25 | }; | ||
26 | |||