qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 01/24] configure: remove --oss-lib


From: Paolo Bonzini
Subject: Re: [PATCH 01/24] configure: remove --oss-lib
Date: Fri, 8 Oct 2021 11:19:25 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0

On 07/10/21 22:42, Marc-André Lureau wrote:

    Cc: Gerd Hoffman <kraxel@redhat.com <mailto:kraxel@redhat.com>>
    Cc: Volker Rümelin <vr_qemu@t-online.de <mailto:vr_qemu@t-online.de>>
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com
    <mailto:pbonzini@redhat.com>>

Not just NetBSD. You could --audio-drv-list=oss and --oss-lib= to specify the library to link with.

Yes, but the question is who would use --oss-lib. And secondarily, if the answer is not "no one", whether they would be accomodated better by a change to QEMU itself.

For example OpenBSD support was removed in 2013:

    Remove OSS support for OpenBSD

    Remove the OSS support for OpenBSD. The OSS API has not been usable
    for quite some time.

    Signed-off-by: Brad Smith <brad@comstyle.com>
    Reviewed-by: Laszlo Ersek <lersek@redhat.com>
    Reviewed-by: Andreas Färber <afaerber@suse.de>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

However, if it came back from the dead, one could just

   if not cc.has_header('sys/soundcard.h')
     # not found
-  elif targetos == 'netbsd'
+  elif targetos in ['netbsd', 'openbsd']
     oss = cc.find_library('ossaudio', required: get_option('oss'),
                           kwargs: static_kwargs)
   else

instead of using something like --oss-lib.

Paolo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]