Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:ALP:Source:Standard:Core:0.1
libosinfo
3a0fef72.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 3a0fef72.patch of Package libosinfo
From 3a0fef72b11e2a22cac61a93a5b5b796885ac7e7 Mon Sep 17 00:00:00 2001 From: Matt Turner <mattst88@gmail.com> Date: Tue, 15 Feb 2022 12:22:00 -0800 Subject: [PATCH] build: Add option to select libsoup ABI This allows distributions that ship both versions of libsoup and choose which version of libsoup will be linked. Signed-off-by: Matt Turner <mattst88@gmail.com> --- meson.build | 11 ++++++++--- meson_options.txt | 7 +++++++ 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/meson.build b/meson.build index a6644025..037e4f33 100644 --- a/meson.build +++ b/meson.build @@ -71,10 +71,15 @@ gio_dep = dependency('gio-2.0', version: glib_version_info) gobject_dep = dependency('gobject-2.0', version: glib_version_info) # everything else -libsoup_dep = dependency('libsoup-3.0', required: false) -# fallback to libsoup2 + +libsoup_abi = get_option('libsoup-abi') +libsoup_dep = disabler() +if ['auto', '3.0'].contains(libsoup_abi) + libsoup_dep = dependency('libsoup-3.0', required: libsoup_abi.contains('3.0')) +endif if not libsoup_dep.found() - libsoup_dep = dependency('libsoup-2.4') +# fallback to libsoup2 + libsoup_dep = dependency('libsoup-2.4', required: libsoup_abi.contains('2.4')) endif libxml_dep = dependency('libxml-2.0', version: '>= 2.6.0') libxslt_dep = dependency('libxslt', version: '>= 1.0.0') diff --git a/meson_options.txt b/meson_options.txt index 13fc3583..15a361fd 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -24,6 +24,13 @@ option('enable-vala', description: 'Enable Vala bindings' ) +option('libsoup-abi', + type: 'combo', + value: 'auto', + choices: ['auto', '2.4', '3.0'], + description: 'Select libsoup ABI version' +) + option('with-pci-ids-path', type: 'string', value: '', -- GitLab
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor