* [PATCH] meson.build: re-add explicit gcrypt/nettle request check
@ 2026-07-10 7:51 Luc Michel
2026-07-10 8:57 ` Philippe Mathieu-Daudé
2026-07-10 9:53 ` Daniel P. Berrangé
0 siblings, 2 replies; 3+ messages in thread
From: Luc Michel @ 2026-07-10 7:51 UTC (permalink / raw)
To: qemu-devel
Cc: Luc Michel, Paolo Bonzini, Marc-André Lureau,
Daniel P . Berrangé, Philippe Mathieu-Daudé,
Pierrick Bouvier, Francisco Iglesias, Frederic Konrad
c4b3d0074 removed the check that nettle or gcrypt were explicitly
requested as the crypto library to use, breaking the --enable-nettle and
--enable-gcrypt options. Re-add the check.
Fixes: c4b3d0074 (crypto: bump min gnutls to 3.7.5)
Signed-off-by: Luc Michel <luc.michel@amd.com>
---
meson.build | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/meson.build b/meson.build
index 164328ded83..475c5922030 100644
--- a/meson.build
+++ b/meson.build
@@ -1809,10 +1809,15 @@ crypto_sm3 = not_found
if get_option('nettle').enabled() and get_option('gcrypt').enabled()
error('Only one of gcrypt & nettle can be enabled')
endif
+# Explicit nettle/gcrypt request, so ignore gnutls for crypto
+if get_option('nettle').enabled() or get_option('gcrypt').enabled()
+ gnutls = not_found
+endif
+
if not gnutls.found()
if (not get_option('gcrypt').auto() or have_system) and not get_option('nettle').enabled()
gcrypt = dependency('libgcrypt', version: '>=1.9.4',
required: get_option('gcrypt'))
# Debian has removed -lgpg-error from libgcrypt-config
--
2.53.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] meson.build: re-add explicit gcrypt/nettle request check
2026-07-10 7:51 [PATCH] meson.build: re-add explicit gcrypt/nettle request check Luc Michel
@ 2026-07-10 8:57 ` Philippe Mathieu-Daudé
2026-07-10 9:53 ` Daniel P. Berrangé
1 sibling, 0 replies; 3+ messages in thread
From: Philippe Mathieu-Daudé @ 2026-07-10 8:57 UTC (permalink / raw)
To: Luc Michel, qemu-devel
Cc: Paolo Bonzini, Marc-André Lureau, Daniel P . Berrangé,
Philippe Mathieu-Daudé, Pierrick Bouvier, Francisco Iglesias,
Frederic Konrad
On 10/7/26 09:51, Luc Michel wrote:
> c4b3d0074 removed the check that nettle or gcrypt were explicitly
> requested as the crypto library to use, breaking the --enable-nettle and
> --enable-gcrypt options. Re-add the check.
>
> Fixes: c4b3d0074 (crypto: bump min gnutls to 3.7.5)
> Signed-off-by: Luc Michel <luc.michel@amd.com>
> ---
> meson.build | 5 +++++
> 1 file changed, 5 insertions(+)
Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] meson.build: re-add explicit gcrypt/nettle request check
2026-07-10 7:51 [PATCH] meson.build: re-add explicit gcrypt/nettle request check Luc Michel
2026-07-10 8:57 ` Philippe Mathieu-Daudé
@ 2026-07-10 9:53 ` Daniel P. Berrangé
1 sibling, 0 replies; 3+ messages in thread
From: Daniel P. Berrangé @ 2026-07-10 9:53 UTC (permalink / raw)
To: Luc Michel
Cc: qemu-devel, Paolo Bonzini, Marc-André Lureau,
Philippe Mathieu-Daudé, Pierrick Bouvier, Francisco Iglesias,
Frederic Konrad
On Fri, Jul 10, 2026 at 09:51:12AM +0200, Luc Michel wrote:
> c4b3d0074 removed the check that nettle or gcrypt were explicitly
> requested as the crypto library to use, breaking the --enable-nettle and
> --enable-gcrypt options. Re-add the check.
>
> Fixes: c4b3d0074 (crypto: bump min gnutls to 3.7.5)
> Signed-off-by: Luc Michel <luc.michel@amd.com>
> ---
> meson.build | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/meson.build b/meson.build
> index 164328ded83..475c5922030 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -1809,10 +1809,15 @@ crypto_sm3 = not_found
>
> if get_option('nettle').enabled() and get_option('gcrypt').enabled()
> error('Only one of gcrypt & nettle can be enabled')
> endif
>
> +# Explicit nettle/gcrypt request, so ignore gnutls for crypto
> +if get_option('nettle').enabled() or get_option('gcrypt').enabled()
> + gnutls = not_found
> +endif
> +
> if not gnutls.found()
This is not sufficient - if --enable-nettle is given this logic
will fully disable all use of gnutls. We need to retain the use
of nettle for TLS APIs, but exclude it for crypto APIs.
IOW, we need to revert more of c4b3d0074 - can you also bring
back the lines that set the 'gnutls_crypto' variable, so we
can disable gnutls for crypto only, not TLS>
> if (not get_option('gcrypt').auto() or have_system) and not get_option('nettle').enabled()
> gcrypt = dependency('libgcrypt', version: '>=1.9.4',
> required: get_option('gcrypt'))
> # Debian has removed -lgpg-error from libgcrypt-config
> --
> 2.53.0
>
With regards,
Daniel
--
|: https://berrange.com ~~ https://hachyderm.io/@berrange :|
|: https://libvirt.org ~~ https://entangle-photo.org :|
|: https://pixelfed.art/berrange ~~ https://fstop138.berrange.com :|
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-07-10 9:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-10 7:51 [PATCH] meson.build: re-add explicit gcrypt/nettle request check Luc Michel
2026-07-10 8:57 ` Philippe Mathieu-Daudé
2026-07-10 9:53 ` Daniel P. Berrangé
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.