From: "Daniel P. Berrangé" <berrange@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: "Philippe Mathieu-Daudé" <philmd@redhat.com>,
"QEMU Developers" <qemu-devel@nongnu.org>,
"Brad Smith" <brad@comstyle.com>,
"Gerd Hoffmann" <kraxel@redhat.com>, "Fam Zheng" <fam@euphon.net>
Subject: Re: [Qemu-devel] [PATCH] configure: Let SDL support be optional on OpenBSD
Date: Wed, 23 Jan 2019 09:33:54 +0000 [thread overview]
Message-ID: <20190123093354.GB27270@redhat.com> (raw)
In-Reply-To: <CAFEAcA-iZHdf6DqrNyUS7yEQmV=VNzWgF7HbHrLaZ5C8EL_0dA@mail.gmail.com>
On Tue, Jan 22, 2019 at 07:20:35PM +0000, Peter Maydell wrote:
> On Tue, 22 Jan 2019 at 19:05, Philippe Mathieu-Daudé <philmd@redhat.com> wrote:
> >
> > Currently if we try to build QEMU on OpenBSD with SDL disabled, we get:
> >
> > $ ./configure --cc=x86_64-unknown-openbsd6.1-gcc-4.9.4 --python=python2.7 --disable-sdl
> >
> > ERROR: sdl not found or disabled, can not use sdl audio driver
> >
> > Since SDL is not a requirement for OpenBSD, let it be optional (we remove
> > it from $audio_drv_list but it stays available in $audio_possible_drivers).
> > If no audio backends are available, QEMU falls back to the null driver.
>
> > --- a/configure
> > +++ b/configure
> > @@ -828,7 +828,7 @@ NetBSD)
> > OpenBSD)
> > bsd="yes"
> > make="${MAKE-gmake}"
> > - audio_drv_list="sdl"
> > + audio_drv_list=""
> > audio_possible_drivers="sdl"
> > HOST_VARIANT_DIR="openbsd"
> > supported_os="yes"
>
> This will mean that configure will by default not enable
> a real audio backend, even if we do have sdl.
>
> Looking at the logic, "audio_possible_drivers" is only
> used for printing the help message. The thing that drives
> which audio drivers to test with is "audio_drv_list",
> and the expectation is that you put things on that only
> if it's possible to build with them. (For instance
> we only add 'dsound' for mingw if the dsound.h header is
> present, and so on.)
>
> So we need to do one of:
> (1) only put "sdl" into audio_drv_list if SDL is
> available (this probably doesn't work as we haven't
> probed for SDL at the point where we initialize it)
> (2) have the sdl probe delete "sdl" from audio_drv_list
> if the probe fails
This one sounds reasonable to me.
> (3) some more complicated restructuring :-)
> (eg rather than having audio_drv_list be set to an
> initial list based on the host OS, just have a full
> list of drivers, insist that each has a proper probe
> routine, and use whichever ones we can successfully
> probe)
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
next prev parent reply other threads:[~2019-01-23 9:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-22 19:05 [Qemu-devel] [PATCH] configure: Let SDL support be optional on OpenBSD Philippe Mathieu-Daudé
2019-01-22 19:20 ` Peter Maydell
2019-01-23 9:33 ` Daniel P. Berrangé [this message]
2019-01-24 1:41 ` 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=20190123093354.GB27270@redhat.com \
--to=berrange@redhat.com \
--cc=brad@comstyle.com \
--cc=fam@euphon.net \
--cc=kraxel@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=philmd@redhat.com \
--cc=qemu-devel@nongnu.org \
/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).