Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ebuild with git and a special branch
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
kingfame_147
Apprentice
Apprentice


Joined: 11 Oct 2008
Posts: 171

PostPosted: Thu Sep 23, 2010 9:26 am    Post subject: ebuild with git and a special branch Reply with quote

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
View user's profile Send private message
kingfame_147
Apprentice
Apprentice


Joined: 11 Oct 2008
Posts: 171

PostPosted: Thu Sep 23, 2010 3:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 2158
Location: Berlin, Germany

PostPosted: Thu Sep 23, 2010 11:33 pm    Post subject: Reply with quote

Rather than modifying the ebuild, you can use per-package environment in /etc/portage/env
Back to top
View user's profile Send private message
kingfame_147
Apprentice
Apprentice


Joined: 11 Oct 2008
Posts: 171

PostPosted: Thu Sep 23, 2010 11:41 pm    Post subject: Reply with quote

Thanks for that hint. Works like it should. That is a better way of doing such a "hack" :)
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sun May 26, 2013 11:14 am    Post subject: Reply with quote

... aaaannd resurrected :roll:



yes, great advice

also needed that change for my zfs-ebuilds for experimenting :)


even though I remember that it's also used on some overlay-embedded ebuilds I didn't now the exact line anymore ^^
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum