summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2023-02-19 20:30:48 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-02-20 15:18:30 +0000
commit56bb6dcdf9332fde6379e08f8721ceb35bbeb35a (patch)
treeb607e7cd6c3dfc63e2966b94b9b89fc040c67dbe
parentaae69de244df387766fdddc25471b8ac5f3eb6af (diff)
downloadpoky-56bb6dcdf9332fde6379e08f8721ceb35bbeb35a.tar.gz
dbus: upgrade 1.14.4 -> 1.14.6
(From OE-Core rev: 31245df3061c1a913bffe5e11ad6ac7fa9c83915) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-core/dbus/dbus/0001-Define-_DBUS_ALIGNOF-using-_Alignof-when-using-C11-o.patch42
-rw-r--r--meta/recipes-core/dbus/dbus_1.14.6.bb (renamed from meta/recipes-core/dbus/dbus_1.14.4.bb)5
2 files changed, 2 insertions, 45 deletions
diff --git a/meta/recipes-core/dbus/dbus/0001-Define-_DBUS_ALIGNOF-using-_Alignof-when-using-C11-o.patch b/meta/recipes-core/dbus/dbus/0001-Define-_DBUS_ALIGNOF-using-_Alignof-when-using-C11-o.patch
deleted file mode 100644
index 7b4e26f99e..0000000000
--- a/meta/recipes-core/dbus/dbus/0001-Define-_DBUS_ALIGNOF-using-_Alignof-when-using-C11-o.patch
+++ /dev/null
@@ -1,42 +0,0 @@
1From c3e2c873ffa8e89b5f83dccc4e4e35dfcea633cb Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 14 Jan 2023 12:39:43 -0800
4Subject: [PATCH] Define _DBUS_ALIGNOF using _Alignof when using C11 or newer
5
6WG14 N2350 made very clear that it is an UB having type definitions
7within "offsetof" [1]. This patch changes the implementation of macro
8_DBUS_ALIGNOF to builtin "_Alignof" to avoid undefined behavior.
9
10clang 16+ has started to diagnose this [2]
11
12Fixes build when using -std >= gnu11 and using clang16+
13
14[1] https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2350.htm
15[2] https://reviews.llvm.org/D133574
16
17Upstream-Status: Submitted [https://gitlab.freedesktop.org/dbus/dbus/-/merge_requests/389]
18Signed-off-by: Khem Raj <raj.khem@gmail.com>
19---
20 dbus/dbus-internals.h | 4 ++++
21 1 file changed, 4 insertions(+)
22
23diff --git a/dbus/dbus-internals.h b/dbus/dbus-internals.h
24index cc98c92a..2387752d 100644
25--- a/dbus/dbus-internals.h
26+++ b/dbus/dbus-internals.h
27@@ -201,8 +201,12 @@ void _dbus_real_assert_not_reached (const char *explanation,
28 ((intptr_t) ((unsigned char*) &((struct_type*) 0)->member))
29 #endif
30
31+#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L && !defined(__cplusplus)
32+#define _DBUS_ALIGNOF(type) _Alignof(type)
33+#else
34 #define _DBUS_ALIGNOF(type) \
35 (_DBUS_STRUCT_OFFSET (struct { char _1; type _2; }, _2))
36+#endif
37
38 #if defined(DBUS_DISABLE_CHECKS) || defined(DBUS_DISABLE_ASSERT)
39 /* this is an assert and not an error, but in the typical --disable-checks case (you're trying
40--
412.39.0
42
diff --git a/meta/recipes-core/dbus/dbus_1.14.4.bb b/meta/recipes-core/dbus/dbus_1.14.6.bb
index ee05496203..a6e18a92cb 100644
--- a/meta/recipes-core/dbus/dbus_1.14.4.bb
+++ b/meta/recipes-core/dbus/dbus_1.14.6.bb
@@ -13,11 +13,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=6423dcd74d7be9715b0db247fd889da3 \
13SRC_URI = "https://dbus.freedesktop.org/releases/dbus/dbus-${PV}.tar.xz \ 13SRC_URI = "https://dbus.freedesktop.org/releases/dbus/dbus-${PV}.tar.xz \
14 file://run-ptest \ 14 file://run-ptest \
15 file://tmpdir.patch \ 15 file://tmpdir.patch \
16 file://0001-Define-_DBUS_ALIGNOF-using-_Alignof-when-using-C11-o.patch \
17 file://dbus-1.init \ 16 file://dbus-1.init \
18" 17 "
19 18
20SRC_URI[sha256sum] = "7c0f9b8e5ec0ff2479383e62c0084a3a29af99edf1514e9f659b81b30d4e353e" 19SRC_URI[sha256sum] = "fd2bdf1bb89dc365a46531bff631536f22b0d1c6d5ce2c5c5e59b55265b3d66b"
21 20
22EXTRA_OECONF = "--disable-xml-docs \ 21EXTRA_OECONF = "--disable-xml-docs \
23 --disable-doxygen-docs \ 22 --disable-doxygen-docs \