flathub / org.freedesktop.Platform.GL.nvidia

47 stars 41 forks source link

Stop including libnvidia-pkcs11.so.* for Flatpak runtimes with OpenSSL 3 #259

Open smcv opened 3 months ago

smcv commented 3 months ago

The Nvidia proprietary driver includes two PKCS#11 libraries:

When using Nvidia proprietary drivers on an OS or a Flatpak runtime that does not have OpenSSL 1.1, libnvidia-pkcs11.so.* cannot be loaded and is useless. Current Flatpak runtimes do not have OpenSSL 1.1 available, only OpenSSL 3.

OSs that ship only OpenSSL 3 and have dropped OpenSSL 1.1 often do not package the useless libnvidia-pkcs11.so.* in their Nvidia proprietary driver: for example, Debian testing/unstable has a libnvidia-pkcs11-openssl3 package, but no libnvidia-pkcs11. I think the Flatpak-packaged Nvidia driver should consider doing the same.

Inclusion of the unusable library leads to warning messages when using Steam's pressure-vessel container tool, which cannot easily know that a library is expected to be present-but-unusable:

x86_64-linux-gnu-capsule-capture-libs: warning: Dependencies of libnvidia-pkcs11.so.550.78 not found, ignoring: Missing dependencies: Could not find "libcrypto.so.1.1" in LD_LIBRARY_PATH [...], ld.so.cache, DT_RUNPATH or fallback /lib:/usr/lib

which causes users to be misled when trying to diagnose genuine issues, and waste their time on reporting the warning as a bug.