From: "Jason A. Donenfeld" <Jason@zx2c4.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: qemu-devel@nongnu.org, stefanha@redhat.com, marcandre.lureau@redhat.com
Subject: Re: [PATCH] meson: -display dbus and CFI are incompatible
Date: Mon, 3 Oct 2022 13:01:13 +0200 [thread overview]
Message-ID: <YzrA+bybdokCN6nX@zx2c4.com> (raw)
In-Reply-To: <20220930075324.13550-1-pbonzini@redhat.com>
On Fri, Sep 30, 2022 at 09:53:24AM +0200, Paolo Bonzini wrote:
> The generated skeletons for DBus call the finalize method of the parent
> type using code like
>
> G_OBJECT_CLASS (qemu_dbus_display1_chardev_skeleton_parent_class)->finalize (object);
>
> However, the finalize method is defined in a shared library that is not
> compiled with CFI. Do not enable anything that uses gdbus-codegen if
> --enable-cfi was specified.
>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
> meson.build | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/meson.build b/meson.build
> index f6962834a3..6106daf267 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -515,6 +515,7 @@ meson.override_dependency('glib-2.0', glib)
>
> gio = not_found
> gdbus_codegen = not_found
> +gdbus_codegen_error = '@0@ requires gdbus-codegen, please install libgio'
> if not get_option('gio').auto() or have_system
> gio = dependency('gio-2.0', required: get_option('gio'),
> method: 'pkg-config', kwargs: static_kwargs)
> @@ -539,6 +540,10 @@ if not get_option('gio').auto() or have_system
> version: gio.version())
> endif
> endif
> +if gdbus_codegen.found() and get_option('cfi')
> + gdbus_codegen = not_found
> + gdbus_codegen_error = '@0@ uses gdbus-codegen, which does not support control flow integrity')
FYI, you've got a trailing paren here that will break.
Jason
prev parent reply other threads:[~2022-10-03 11:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-30 7:53 [PATCH] meson: -display dbus and CFI are incompatible Paolo Bonzini
2022-09-30 7:59 ` Marc-André Lureau
2022-09-30 8:05 ` Paolo Bonzini
2022-09-30 8:07 ` Daniel P. Berrangé
2022-10-03 11:01 ` Jason A. Donenfeld [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YzrA+bybdokCN6nX@zx2c4.com \
--to=jason@zx2c4.com \
--cc=marcandre.lureau@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.