Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libnvidia-pkcs11.so missing RPATH entry for libcrypto.so.1.1 #273064

Closed
tejing1 opened this issue Dec 9, 2023 · 2 comments
Closed

libnvidia-pkcs11.so missing RPATH entry for libcrypto.so.1.1 #273064

tejing1 opened this issue Dec 9, 2023 · 2 comments
Labels
0.kind: bug Something is broken

Comments

@tejing1
Copy link
Contributor

tejing1 commented Dec 9, 2023

Describe the bug

The RPATH of libnvidia-pkcs11.so, as installed by the standard nvidia package (pkgs.linuxPackages.nvidia_x11.out) in nixos 23.11, has no entry for libcrypto.so.1.1, causing it to fail if anyone actually used that particular interface.

Steps To Reproduce

Steps to reproduce the behavior:

$ ldd /run/opengl-driver/lib/libnvidia-pkcs11.so
	linux-vdso.so.1 (0x00007ffc75dd6000)
	libcrypto.so.1.1 => not found

Expected behavior

The nvidia package should set proper RPATHs on the installed libraries.

Additional context

I ran into this because I was trying to clean up the steam package of issues, and steam's pressure-vessel does a lot of sanity checking of its environment and reported the issue from inside the FHS environment.

Notify maintainers

@jonringer @Kiskae @edwtjo

Metadata

$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.64, NixOS, 23.11 (Tapir), 23.11.20231202.933d7dc`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.1`
 - nixpkgs: `/etc/nix/path/nixpkgs`

Add a 👍 reaction to issues you find important.

@tejing1 tejing1 added the 0.kind: bug Something is broken label Dec 9, 2023
@Kiskae
Copy link
Contributor

Kiskae commented Dec 9, 2023

That library is an internal compatibility layer for openssl1.1. Since we link openssl3 into the nvidia driver it never gets used and is meant to fail to load. Since NixOS makes sure that openssl3 is always available this library is functionally useless.

We could probably just remove that file (like we do with libnvidia-gtk2) to regain some disk space and satisfy the checks you mentioned.

@tejing1
Copy link
Contributor Author

tejing1 commented Dec 9, 2023

Sounds good. Better to not ship it than ship it broken, especially if nobody needs it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

No branches or pull requests

2 participants