View previous topic :: View next topic |
Author |
Message |
davidshen84 Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 09 Aug 2008 Posts: 322
|
Posted: Sat Feb 15, 2025 7:40 am Post subject: nvidia-driver binary installation convention |
|
|
Hi,
I found the binaries from "Nvidia-drivers" are installed in two places, while on other distros, like Ubuntu, all Nvidia driver's binaries are installed to "/usr/bin". I checked the ebuild file, and it looks like a deliberate effort.
Code: |
~ % qlist x11-drivers/nvidia-drivers | grep '/bin/'
/opt/bin/nvidia-ngx-updater
/opt/bin/nvidia-cuda-mps-server
/opt/bin/nvidia-cuda-mps-control
/opt/bin/nvidia-debugdump
/opt/bin/nvidia-smi
/usr/bin/nvidia-bug-report.sh
/usr/bin/nvidia-sleep.sh
/usr/bin/nvidia-xconfig
/usr/bin/nvidia-settings
/usr/bin/nvidia-modprobe
|
Why does Gentoo do this? Maybe for some legacy reason?
I just encountered an issue where the nvidia operator validator hardcoded to try to find "/usr/bin/nvidia-smi", https://github.com/NVIDIA/gpu-operator/blob/main/validator/main.go#L703.
Should we update the ebuild file to follow mainstream? I know Gentoo prefer putting vendor-provided binaries to "/opt/bin".
Thanks _________________ David Shen |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
netfab Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
Joined: 03 Mar 2005 Posts: 1971 Location: 127.0.0.1
|
Posted: Sat Feb 15, 2025 9:04 am Post subject: Re: nvidia-driver binary installation convention |
|
|
Hi,
davidshen84 wrote: |
... hardcoded ...
|
I think that is the main problem.
davidshen84 wrote: |
Should we update the ebuild file to follow mainstream? |
You could also open a bug on gentoo, and ask the maintainer. Maybe he could add a /usr/bin --> /opt/bin symlink for this binary. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Ionen Developer
![Developer Developer](/images/ranks/rank-dev.gif)
![](images/avatars/12407261860db424480089.png)
Joined: 06 Dec 2018 Posts: 2895
|
Posted: Sat Feb 15, 2025 4:35 pm Post subject: |
|
|
It's mostly historical and the split may not be worth keeping but, for what it's worth, the ones in /opt/bin are prebuilt binaries while /usr/bin been built from source (or are just scripts). Gentoo does have a tendency to put prebuilts in /opt, but it's not a requirement.
Albeit hardcoding paths is still a silly thing to do either way. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|