diff options
| author | Tanguy Raufflet <tanguy.raufflet@savoirfairelinux.com> | 2026-04-13 13:52:39 +0200 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2026-04-13 13:50:39 +0000 |
| commit | d57c511ccf8d478f86b2d5f04bde5a3f69ea46f2 (patch) | |
| tree | 2d03b6198bec364cc063509f1f468cc85e15fde9 | |
| parent | 4e6c583591c1da7e898254dd33eca5cc04c739a9 (diff) | |
| download | meta-virtualization-d57c511ccf8d478f86b2d5f04bde5a3f69ea46f2.tar.gz | |
libvirt-dbus: disable -Werror=inline to fix build error
The meson.build from libvirt-dbus enables the flag -Winline. Combined
with -Werror from Yocto, this causes a build failure because GCC refuses
to inline g_autoptr_cleanup_generic_gfree() from the glib header
glib-autocleanups.h, as it considers the call unlikely and estimates
code size would grow.
Because the function g_autoptr_cleanup_generic_gfree is defined as
static inline with good reason, this patch disables -Werror=inline for
libvirt-dbus to allow the build to succeed.
Signed-off-by: Tanguy Raufflet <tanguy.raufflet@savoirfairelinux.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
| -rw-r--r-- | recipes-extended/libvirt/libvirt-dbus_1.4.1.bb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/recipes-extended/libvirt/libvirt-dbus_1.4.1.bb b/recipes-extended/libvirt/libvirt-dbus_1.4.1.bb index 767470e2..e4859b0b 100644 --- a/recipes-extended/libvirt/libvirt-dbus_1.4.1.bb +++ b/recipes-extended/libvirt/libvirt-dbus_1.4.1.bb | |||
| @@ -16,6 +16,8 @@ SRCREV = "0c355bb8921d7cbccf93f41a8615fcd973e64f70" | |||
| 16 | 16 | ||
| 17 | inherit meson pkgconfig | 17 | inherit meson pkgconfig |
| 18 | 18 | ||
| 19 | CFLAGS:append = " -Wno-error=inline" | ||
| 20 | |||
| 19 | FILES:${PN} += "\ | 21 | FILES:${PN} += "\ |
| 20 | ${datadir}/dbus-1/* \ | 22 | ${datadir}/dbus-1/* \ |
| 21 | ${datadir}/polkit-1/* \ | 23 | ${datadir}/polkit-1/* \ |
