]> xenbits.xensource.com Git - libvirt.git/commitdiff
Revert "meson: attr_dep switch to dependency()"
authorJim Fehlig <jfehlig@suse.com>
Thu, 6 Jul 2023 17:35:36 +0000 (11:35 -0600)
committerJim Fehlig <jfehlig@suse.com>
Fri, 7 Jul 2023 14:37:14 +0000 (08:37 -0600)
openSUSE Leap 15.{4,5} are supported under libvirt's distro support
statement, but they only contain attr version 2.4.47.

Reverts: dffeef89efc2ed1668cb485d6c3e67ef27b824e8
Signed-off-by: Jim Fehlig <jfehlig@suse.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
meson.build

index 958c1a26a03859a58b137373e144957419c7f595..5fce470c6b83216e49d158aa9907fcd9c2366da3 100644 (file)
@@ -901,7 +901,8 @@ if not get_option('apparmor_profiles').disabled()
   endif
 endif
 
-attr_dep = dependency('libattr', required: get_option('attr'))
+# FIXME rewrite to use dependency() once we can use 2.4.48
+attr_dep = cc.find_library('attr', required: get_option('attr'))
 if attr_dep.found()
   conf.set('WITH_LIBATTR', 1)
 endif