All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] configure: check for gdbus-codegen presence
@ 2020-01-10 11:27 Marc-André Lureau
  2020-01-10 13:19 ` Peter Maydell
  0 siblings, 1 reply; 2+ messages in thread
From: Marc-André Lureau @ 2020-01-10 11:27 UTC (permalink / raw)
  To: qemu-devel; +Cc: peter.maydell, Marc-André Lureau

Some distros ship gdbus-codegen separately for gio headers/pc...

Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
 configure | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/configure b/configure
index 0ce2c0354a..28ee2a254f 100755
--- a/configure
+++ b/configure
@@ -3702,6 +3702,9 @@ if $pkg_config --atleast-version=$glib_req_ver gio-2.0; then
     gio_cflags=$($pkg_config --cflags gio-2.0)
     gio_libs=$($pkg_config --libs gio-2.0)
     gdbus_codegen=$($pkg_config --variable=gdbus_codegen gio-2.0)
+    if [ ! -x "$gdbus_codegen" ]; then
+        gdbus_codegen=
+    fi
 else
     gio=no
 fi
-- 
2.25.0.rc1.20.g2443f3f80d.dirty



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] configure: check for gdbus-codegen presence
  2020-01-10 11:27 [PATCH] configure: check for gdbus-codegen presence Marc-André Lureau
@ 2020-01-10 13:19 ` Peter Maydell
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Maydell @ 2020-01-10 13:19 UTC (permalink / raw)
  To: Marc-André Lureau; +Cc: QEMU Developers

On Fri, 10 Jan 2020 at 11:27, Marc-André Lureau
<marcandre.lureau@redhat.com> wrote:
>
> Some distros ship gdbus-codegen separately for gio headers/pc...
>
> Reported-by: Peter Maydell <peter.maydell@linaro.org>
> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> ---
>  configure | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/configure b/configure
> index 0ce2c0354a..28ee2a254f 100755
> --- a/configure
> +++ b/configure
> @@ -3702,6 +3702,9 @@ if $pkg_config --atleast-version=$glib_req_ver gio-2.0; then
>      gio_cflags=$($pkg_config --cflags gio-2.0)
>      gio_libs=$($pkg_config --libs gio-2.0)
>      gdbus_codegen=$($pkg_config --variable=gdbus_codegen gio-2.0)
> +    if [ ! -x "$gdbus_codegen" ]; then
> +        gdbus_codegen=
> +    fi
>  else
>      gio=no
>  fi
> --
> 2.25.0.rc1.20.g2443f3f80d.dirty

Thanks; applied to master as a buildfix.

-- PMM


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-01-10 13:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-10 11:27 [PATCH] configure: check for gdbus-codegen presence Marc-André Lureau
2020-01-10 13:19 ` Peter Maydell

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.