From 2822b8bbf8711db03f1ad6c56802e1bf2a9dc609 Mon Sep 17 00:00:00 2001 From: Simon McVittie <smcv@collabora.com> Date: Mon, 5 Aug 2024 13:50:59 +0100 Subject: [PATCH] pv-runtime: Silence spurious warnings for libnvidia-pkcs11 on Ubuntu 24.04 My understanding is that these libraries are dlopen'd by other parts of the Nvidia driver for confidential-computing GPGPU use-cases, and unlikely to be critical for gaming. There are currently two implementations, one that depends on OpenSSL 1.1 and one that depends on OpenSSL 3.0. The way they are packaged in Ubuntu means that in 24.04, the one for OpenSSL 1.1 is present but does not have its dependencies satisfied, leading to confusing warning messages from capsule-capture-libs that could confuse our users. Silence those messages by using the new "quiet:" pattern prefix. (The message is actually reduced to LOG_DEBUG level rather than being silenced, so CAPSULE_DEBUG=tool will reinstate it if someone needs to look at capsule-capture-libs behaviour in fine detail.) steamrt/tasks#488 Signed-off-by: Simon McVittie <smcv@collabora.com> --- pressure-vessel/runtime.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pressure-vessel/runtime.c b/pressure-vessel/runtime.c index 66975c6a8..308c076cb 100644 --- a/pressure-vessel/runtime.c +++ b/pressure-vessel/runtime.c @@ -5474,13 +5474,15 @@ collect_graphics_libraries_patterns (GPtrArray *patterns) "libnvidia-nvvm.so.*", "libnvidia-opencl.so.*", "libnvidia-opticalflow.so.*", - "libnvidia-pkcs11*.so.*", "libnvidia-ptxjitcompiler.so.*", "libnvidia-rtcore.so.*", "libnvidia-tls.so.*", "libnvidia-vulkan-producer.so.*", "libnvoptix.so.*", "libvdpau_nvidia.so.*", + + /* On Ubuntu, this is packaged with its dependencies missing */ + "quiet:libnvidia-pkcs11*.so.*", }; /* Each of these is substituted into libnvidia-NAME.so.VERSION. * TODO: It would be better if these came from some sort of manifest: -- GitLab