Created attachment 758993 [details] Source for patch - https://nvidia.if-not-true-then-false.com/patcher Please, need add support for old NVIDIA driver (390.144) for NVIDIA NVS 5400M GPU (as example) in order to be able compile with mainline kernel 5.15+ Issue description: NVRM: The NVIDIA NVS 5400M GPU installed in this system is supported through the NVIDIA 390.xx Legacy drivers. Please visit http://www.nvidia.com/object/unix.html for more information. The 495.44 NVIDIA driver will ignore this GPU. Continuing probe... .ebuild for existing driver x11-drivers/nvidia-drivers - Available versions: 390.144-r1(0/390) - has unmet dependencies with x11-base/xorg-server (with available versions (~)21.1.1-r2) I found patch that fixing issue with kernel line 5.15+ (please, see attached) I conducted test with manual steps (via ebuild) May be there need some fixes in patch, but it working. Root of problem is: is is necessary to create local overlay or fix(edit) .ebuild manually - not a gentoo-way at all. Please, update a bit ebuild 390.144, add patch(es) also and make it availagle in gentoo repo for install a driver in a correct way. Thanks!
Why would you need to modify the ebuild for a patch? Just use /etc/portage/patches[1] Also, have no interest in maintaining patches for kernels not supported by NVIDIA. Either use patch locally or use a supported LTS kernel (e.g. 5.10 branch). When emerging, should've emitted this warning: * Kernel 5.15 is either known to break this version of nvidia-drivers * or was not tested with it. It is recommended to use one of: * <=sys-kernel/gentoo-kernel-5.13 * <=sys-kernel/gentoo-sources-5.13 * You are free to try or use /etc/portage/patches, but support will * not be given and issues wait until NVIDIA releases a fixed version. * * Do _not_ file a bug report if run into issues. * https://wiki.gentoo.org/wiki//etc/portage/patches
Ionen Wolkens, great thanks for information! I never used portage/patches before - it is pretty good decision. Thanks alot!!!