This patch fixes two problems I have with the x11-base/x11-drm-99999999 ebuild from the x11 overlay. The first problem is a patching issue. In src_unpack(), git_src_unpack is called, which changes the current directory to something that is not ${WORKDIR}. This causes the patches to fail to apply, because they assume ${WORKDIR} == ${CWD}. The second problem is a sandbox violation during install. The makefile tries to install the kernel modules itself on the system using an absolute path, instead of letting portage package them. The first patch that I will post is for the x11-drm ebuild in the x11 overlay. The second patch file that I will post is an edit of the one from primozic's r300 overlay, and it fixes the makefile in the git source for x11-drm Reproducible: Always Steps to Reproduce: 1. install x11 overlay (I used layman) 2. unmask x11-drm ebuild from the overlay 3. emerge x11-drm Actual Results: merge blows up at patch phase. If the first line of my patch for the ebuild is applied, then it blows up at the install phase. Expected Results: clean build and install.
Created attachment 133199 [details, diff] fixes for x11-drm ebuild
Created attachment 133200 [details, diff] install patch for x11-drm
I had a reworked x11-drm around for the vblank-rework branch that does a better job of using linux-mod.eclass, so I finished fixing it up and added it instead.