]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: fix crypt_activate_by_signed_key detection
authorLuca Boccassi <bluca@debian.org>
Fri, 2 Jul 2021 18:11:58 +0000 (19:11 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 20 Jul 2021 09:55:09 +0000 (11:55 +0200)
It should set HAVE_CRYPT_ACTIVATE_BY_SIGNED_KEY, rather than HAVE_CRYPTSETUP
which enables the verity features, as it needs to detect the availability of
the crypt_activate_by_signed_key API

meson.build

index fbb24e7a469c5ba07ddf134ca766c3287ac9f425..5b362ae62ce4ae1829061023f208191942a1a709 100644 (file)
@@ -320,7 +320,7 @@ conf.set('CRYPTSETUP_VIA_DLOPEN', lib_cryptsetup_dl.found() ? 1 : false)
 have = cc.has_function(
   'crypt_activate_by_signed_key',
   dependencies : lib_cryptsetup)
-conf.set('HAVE_CRYPTSETUP', have ? 1 : false)
+conf.set('HAVE_CRYPT_ACTIVATE_BY_SIGNED_KEY', have ? 1 : false)
 
 lib_cap_ng = dependency(
   'libcap-ng')