Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
nvidia-driver binary installation convention
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
davidshen84
Guru
Guru


Joined: 09 Aug 2008
Posts: 322

PostPosted: Sat Feb 15, 2025 7:40 am    Post subject: nvidia-driver binary installation convention Reply with quote

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
View user's profile Send private message
netfab
Veteran
Veteran


Joined: 03 Mar 2005
Posts: 1971
Location: 127.0.0.1

PostPosted: Sat Feb 15, 2025 9:04 am    Post subject: Re: nvidia-driver binary installation convention Reply with quote

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
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2895

PostPosted: Sat Feb 15, 2025 4:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum