View previous topic :: View next topic |
Author |
Message |
kingfame_147 Apprentice
Joined: 11 Oct 2008 Posts: 171
|
Posted: Thu Sep 23, 2010 9:26 am Post subject: ebuild with git and a special branch |
|
|
Hi,
I'm using the xf86-video-ati from the x11 overlay, which uses the xorg-git.
Because of a problem with those drives I would like to use a special branch from that git repository named "origin/evergreen_accel". Is there a way to edit the ebuild to get use it with that branch? Would be mutch cleaner to have it all in portage and not compiling it by myself outside of portage.
I've never created an ebuild by my own, so please don't hurt me :D
Thanks for your help!
Regards,
fame |
|
Back to top |
|
|
kingfame_147 Apprentice
Joined: 11 Oct 2008 Posts: 171
|
Posted: Thu Sep 23, 2010 3:40 pm Post subject: |
|
|
Hi,
I found the solution.
I copied the xf86-video-ati-9999.ebuild to my local_overlay (renamed it to 9999-r1) and added Code: | EGIT_BRANCH="evergreen_accel" | .
That's all :) This will work with other git versions, too. I didn't find any official documentation about this.
Regards,
fame |
|
Back to top |
|
|
chithanh Developer
Joined: 05 Aug 2006 Posts: 2158 Location: Berlin, Germany
|
Posted: Thu Sep 23, 2010 11:33 pm Post subject: |
|
|
Rather than modifying the ebuild, you can use per-package environment in /etc/portage/env |
|
Back to top |
|
|
kingfame_147 Apprentice
Joined: 11 Oct 2008 Posts: 171
|
Posted: Thu Sep 23, 2010 11:41 pm Post subject: |
|
|
Thanks for that hint. Works like it should. That is a better way of doing such a "hack" :) |
|
Back to top |
|
|
kernelOfTruth Watchman
Joined: 20 Dec 2005 Posts: 6111 Location: Vienna, Austria; Germany; hello world :)
|
|
Back to top |
|
|
|