qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: Stefan Hajnoczi <stefanha@redhat.com>, qemu-devel@nongnu.org
Cc: "Kevin Wolf" <kwolf@redhat.com>, "Thomas Huth" <thuth@redhat.com>,
	qemu-block@nongnu.org, "Michael S. Tsirkin" <mst@redhat.com>,
	"Max Reitz" <mreitz@redhat.com>,
	"Alex Bennée" <alex.bennee@linaro.org>
Subject: Re: [PATCH 1/3] meson: move vhost_user_blk_server to meson.build
Date: Wed, 11 Nov 2020 12:44:58 +0100	[thread overview]
Message-ID: <d064bee7-7a46-761b-97e2-71df8fba6bab@redhat.com> (raw)
In-Reply-To: <ad4be626-c950-6131-adc3-369f9a405ad4@redhat.com>

On 11/11/20 10:41 AM, Philippe Mathieu-Daudé wrote:
> On 11/10/20 6:11 PM, Stefan Hajnoczi wrote:
>> The --enable/disable-vhost-user-blk-server options were implemented in
>> ./configure. There has been confusion about them and part of the problem
>> is that the shell syntax used for setting the default value is not easy
>> to read. Move the option over to meson where the conditions are easier
>> to understand:
>>
>>   have_vhost_user_blk_server = (targetos == 'linux')
>>
>>   if get_option('vhost_user_blk_server').enabled()
>>       if targetos != 'linux'
>>           error('vhost_user_blk_server requires linux')
>>       endif
>>   elif get_option('vhost_user_blk_server').disabled() or not have_system
>>       have_vhost_user_blk_server = false
>>   endif
> 
> Something is odd:
> 
> $ ../configure --disable-system --enable-vhost-user-blk-server

I failed when pasting, this misses '--disable-tools' to make sense.

We define in meson.build:

  have_block = have_system or have_tools

Maybe this is the one you want instead of have_system?

> $ make
> 
> -> no binary.
> 
> Anyhow:
> Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> 
>>
>> This patch does not change behavior.
>>
>> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
>> ---
>>  meson_options.txt        |  2 ++
>>  configure                | 16 ++++------------
>>  meson.build              | 12 ++++++++++++
>>  block/export/meson.build |  5 ++++-
>>  4 files changed, 22 insertions(+), 13 deletions(-)



  reply	other threads:[~2020-11-11 11:46 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-10 17:11 [PATCH 0/3] vhost-user: ./configure improvements for 5.2 Stefan Hajnoczi
2020-11-10 17:11 ` [PATCH 1/3] meson: move vhost_user_blk_server to meson.build Stefan Hajnoczi
2020-11-11  9:41   ` Philippe Mathieu-Daudé
2020-11-11 11:44     ` Philippe Mathieu-Daudé [this message]
2020-11-11 11:54       ` Philippe Mathieu-Daudé
2020-11-12 10:58         ` Stefan Hajnoczi
2020-11-10 17:11 ` [PATCH 2/3] vhost-user-blk-server: depend on CONFIG_VHOST_USER Stefan Hajnoczi
2020-11-11  9:25   ` Philippe Mathieu-Daudé
2020-11-11 14:16     ` Stefan Hajnoczi
2020-11-10 17:11 ` [PATCH 3/3] configure: mark vhost-user Linux-only Stefan Hajnoczi
2020-11-10 17:44   ` Thomas Huth
2020-11-11  9:23   ` Philippe Mathieu-Daudé

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=d064bee7-7a46-761b-97e2-71df8fba6bab@redhat.com \
    --to=philmd@redhat.com \
    --cc=alex.bennee@linaro.org \
    --cc=kwolf@redhat.com \
    --cc=mreitz@redhat.com \
    --cc=mst@redhat.com \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.com \
    --cc=thuth@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).