Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 195531 - [x11 overlay] ebuild fixes for x11-drm
Summary: [x11 overlay] ebuild fixes for x11-drm
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2007-10-11 18:45 UTC by James C. Georgas
Modified: 2007-10-14 10:10 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
fixes for x11-drm ebuild (x11-drm-git-ebuild-fixes.diff,568 bytes, patch)
2007-10-11 18:50 UTC, James C. Georgas
Details | Diff
install patch for x11-drm (x11-drm-99999999-undo-install-target.patch,312 bytes, patch)
2007-10-11 18:51 UTC, James C. Georgas
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description James C. Georgas 2007-10-11 18:45:49 UTC
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.
Comment 1 James C. Georgas 2007-10-11 18:50:29 UTC
Created attachment 133199 [details, diff]
fixes for x11-drm ebuild
Comment 2 James C. Georgas 2007-10-11 18:51:40 UTC
Created attachment 133200 [details, diff]
install patch for x11-drm
Comment 3 Donnie Berkholz (RETIRED) gentoo-dev 2007-10-14 10:10:09 UTC
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.