-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
cudaPackages.nsight_systems: fix crash #291471
base: master
Are you sure you want to change the base?
Conversation
in | ||
{ | ||
# An ad hoc replacement for | ||
# https://github.com/ConnorBaker/cuda-redist-find-features/issues/11 | ||
env.rmPatterns = toString [ | ||
"nsight-systems/*/*/libQt*" | ||
"nsight-systems/*/*/libQt6*" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are there any other matches to libQt*
than libQt6*
? If any, why would we not remove them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that the expression needs to be valid for other releases of cudaPackages
too (cudaPackages_11_Y
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SomeoneSerge this removed libQtPropertyBrowser.so
, which I couldn't find anywhere in Nixpkgs. As far as I could tell is not a Qt6 library and I suspect might be an internal library to nsight-systems, hence I changed the wildcard to not remove it. I could be wrong though.
"nsight-systems/*/*/libstdc*" | ||
"nsight-systems/*/*/libboost*" | ||
"nsight-systems/*/*/lib{ssl,ssh,crypto}*" | ||
"nsight-systems/*/*/lib{arrow,jpeg}*" | ||
"nsight-systems/*/*/Mesa" | ||
"nsight-systems/*/*/python/bin/python" | ||
"nsight-systems/*/*/libexec" | ||
"nsight-systems/*/*/Plugins" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same question. These are prebuilt binaries which means they are presumed broken, so we do want to replace them with the respective ones from Nixpkgs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed, but the additional code I added overwrites the Qt ones with links. These are the ones which remain:
/nix/store/k3vnvanjxvfr0jvkf0y6ijjka7nk2km3-nsight_systems-2023.2.3.1004-bin/nsight-systems/2023.2.3/host-linux-x64/Plugins/CorePlugin/libCorePlugin.so
/nix/store/k3vnvanjxvfr0jvkf0y6ijjka7nk2km3-nsight_systems-2023.2.3.1004-bin/nsight-systems/2023.2.3/host-linux-x64/Plugins/QuadDPlugin/libQuadDPlugin.so
/nix/store/k3vnvanjxvfr0jvkf0y6ijjka7nk2km3-nsight_systems-2023.2.3.1004-bin/nsight-systems/2023.2.3/host-linux-x64/Plugins/wayland-decoration-client/libbradient.so
/nix/store/k3vnvanjxvfr0jvkf0y6ijjka7nk2km3-nsight_systems-2023.2.3.1004-bin/nsight-systems/2023.2.3/host-linux-x64/Plugins/wayland-graphics-integration-client/libshm-emulation-server.so
/nix/store/k3vnvanjxvfr0jvkf0y6ijjka7nk2km3-nsight_systems-2023.2.3.1004-bin/nsight-systems/2023.2.3/host-linux-x64/Plugins/wayland-graphics-integration-client/libvulkan-server.so
/nix/store/k3vnvanjxvfr0jvkf0y6ijjka7nk2km3-nsight_systems-2023.2.3.1004-bin/nsight-systems/2023.2.3/host-linux-x64/Plugins/wayland-shell-integration/libwl-shell-plugin.so
/nix/store/k3vnvanjxvfr0jvkf0y6ijjka7nk2km3-nsight_systems-2023.2.3.1004-bin/nsight-systems/2023.2.3/host-linux-x64/Plugins/wayland-shell-integration/libxdg-shell.so
/nix/store/k3vnvanjxvfr0jvkf0y6ijjka7nk2km3-nsight_systems-2023.2.3.1004-bin/nsight-systems/2023.2.3/host-linux-x64/Plugins/wayland-shell-integration/libivi-shell.so
/nix/store/k3vnvanjxvfr0jvkf0y6ijjka7nk2km3-nsight_systems-2023.2.3.1004-bin/nsight-systems/2023.2.3/host-linux-x64/Plugins/wayland-shell-integration/libfullscreen-shell-v1.so
Description of changes
Fixes #232458
Fixes several issues causing breakage of
nsys
andnsys-ui
binaries:Error: Nsight Systems #VERSION_RSPLIT# hasn't been installed with CUDA Toolkit #CUDA_MAJOR#.#CUDA_MINOR#
host-linux-x64
,target-linux-x64
tobin
outputCould not find Qt platform plugin
). Cherry-picked graham33@1ed0f5c.Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.