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

mesa-libgallium cause broken linker from steam script cause by changes by nvidia with libdrm #156

Open
leonpano2006 opened this issue Oct 2, 2024 · 4 comments

Comments

@leonpano2006
Copy link
Contributor

install-fail-Steam.txt
it will install kiask-mesa but that has a problem making that linker broken, Even on a fresh flashed/installed system, issues can still occur.

and after steam script is failed then 99% of scripts used compiled from source will fail for the same reason.

@theofficialgman
Copy link
Collaborator

theofficialgman commented Oct 2, 2024

this isn't a mesa ppa issue but actually an issue caused by Nvidia manually overwriting libdrm with their own proprietary fork that does not contain the newer symbols necessary for software like the mesa libraries to link to.

libdrm is only useful for wayland and since its effectively broken on pre-jetpack 36 you might as well revert nvidia's change by doing something such as this. similar to the following is done on Switchroot Ubuntu Jammy/Noble to prevent any such issues.

dpkg-divert --package nvidia-bsp-diversions --add --rename --divert /usr/lib/aarch64-linux-gnu/tegra/libdrm.orig /usr/lib/aarch64-linux-gnu/tegra/libdrm.so.2
dpkg-divert --package nvidia-bsp-diversions --add --rename --divert /usr/lib/aarch64-linux-gnu/libdrm_nvdc.orig /usr/lib/aarch64-linux-gnu/libdrm_nvdc.so
ldconfig

@cobalt2727
Copy link
Owner

Might be worth adding that to the runonce on Focal, if the user's on Tegra hardware

@theofficialgman
Copy link
Collaborator

Might be worth adding that to the runonce on Focal, if the user's on Tegra hardware

waiting on confirmation from @leonpano2006 before I do anything

@leonpano2006
Copy link
Contributor Author

leonpano2006 commented Oct 2, 2024

that does the trick
thanks
i was not expecting such issue
i really wonder what are people working in nvidia thinking
is there goal to fuck up everything?(like EA)

@leonpano2006 leonpano2006 changed the title mesa-libgallium cause broken linker from steam script mesa-libgallium cause broken linker from steam script cause by nvidia changes with libdrm Oct 4, 2024
@leonpano2006 leonpano2006 changed the title mesa-libgallium cause broken linker from steam script cause by nvidia changes with libdrm mesa-libgallium cause broken linker from steam script cause by changes by nvidia with libdrm Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants