* [gentoo-devhelp] How do I select a specific Git "head" in live ebuilds?
@ 2010-08-27 5:58 Nikos Chantziaras
2010-08-27 19:53 ` Sergei Trofimovich
2010-08-28 19:05 ` James Cloos
0 siblings, 2 replies; 5+ messages in thread
From: Nikos Chantziaras @ 2010-08-27 5:58 UTC (permalink / raw
To: gentoo-devhelp
I am trying to create an ebuild that fetches a specific head from a Git
repo. As you can see here:
http://lmms.git.sourceforge.net/git/gitweb.cgi?p=lmms/lmms;a=summary
There are several "heads" listed: master, stable-0.4, calf-updates, etc.
By default, the git eclass uses "master". I tried putting:
EGIT_BRANCH="stable-0.4"
in the ebuild. But this doesn't seem to help; "master" is emerged
instead of "stable-0.4".
What am I doing wrong?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-devhelp] How do I select a specific Git "head" in live ebuilds?
2010-08-27 5:58 [gentoo-devhelp] How do I select a specific Git "head" in live ebuilds? Nikos Chantziaras
@ 2010-08-27 19:53 ` Sergei Trofimovich
2010-08-28 19:05 ` James Cloos
1 sibling, 0 replies; 5+ messages in thread
From: Sergei Trofimovich @ 2010-08-27 19:53 UTC (permalink / raw
To: Nikos Chantziaras; +Cc: gentoo-devhelp
[-- Attachment #1: Type: text/plain, Size: 840 bytes --]
> I am trying to create an ebuild that fetches a specific head from a Git
> repo. As you can see here:
>
> http://lmms.git.sourceforge.net/git/gitweb.cgi?p=lmms/lmms;a=summary
>
> There are several "heads" listed: master, stable-0.4, calf-updates, etc.
> By default, the git eclass uses "master". I tried putting:
>
> EGIT_BRANCH="stable-0.4"
>
> in the ebuild. But this doesn't seem to help; "master" is emerged
> instead of "stable-0.4".
>
> What am I doing wrong?
Hi Nikos!
I didn't dig seriously in eclass, but EGIT_TREE and _BRANCH both helped me.
EGIT_REPO_URI="git://repo.or.cz/tinycc.git"
EGIT_TREE="mob"
EGIT_BRANCH="mob"
Whole thing is here:
http://repo.or.cz/w/slyfox-gentoo.git/blob_plain/aaa609469a6f819b8823ad45dc424eb18d24078c:/dev-lang/tcc/tcc-9999.ebuild
--
Sergei
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-devhelp] How do I select a specific Git "head" in live ebuilds?
2010-08-27 5:58 [gentoo-devhelp] How do I select a specific Git "head" in live ebuilds? Nikos Chantziaras
2010-08-27 19:53 ` Sergei Trofimovich
@ 2010-08-28 19:05 ` James Cloos
2010-08-29 1:48 ` [gentoo-devhelp] " Nikos Chantziaras
1 sibling, 1 reply; 5+ messages in thread
From: James Cloos @ 2010-08-28 19:05 UTC (permalink / raw
To: Nikos Chantziaras; +Cc: gentoo-devhelp
>>>>> "NC" == Nikos Chantziaras <realnc@arcor.de> writes:
NC> I tried putting:
NC> EGIT_BRANCH="stable-0.4"
NC> in the ebuild. But this doesn't seem to help; "master" is emerged
NC> instead of "stable-0.4".
NC> What am I doing wrong?
Move the EGIT_ declarations earlier in the file. IIRC, EGIT_BRANCH will
only work if it is before the inheirit.
(It took me *quite* a bit of trial-and-error to get it to work the first
time I wanted to use a non-master HEAD.)
-JimC
--
James Cloos <cloos@jhcloos.com> OpenPGP: 1024D/ED7DAEA6
^ permalink raw reply [flat|nested] 5+ messages in thread
* [gentoo-devhelp] Re: How do I select a specific Git "head" in live ebuilds?
2010-08-28 19:05 ` James Cloos
@ 2010-08-29 1:48 ` Nikos Chantziaras
2010-08-29 2:28 ` Mike Frysinger
0 siblings, 1 reply; 5+ messages in thread
From: Nikos Chantziaras @ 2010-08-29 1:48 UTC (permalink / raw
To: gentoo-devhelp
On 08/28/2010 10:05 PM, James Cloos wrote:
>>>>>> "NC" == Nikos Chantziaras<realnc@arcor.de> writes:
>
> NC> I tried putting:
>
> NC> EGIT_BRANCH="stable-0.4"
>
> NC> in the ebuild. But this doesn't seem to help; "master" is emerged
> NC> instead of "stable-0.4".
>
> NC> What am I doing wrong?
>
> Move the EGIT_ declarations earlier in the file. IIRC, EGIT_BRANCH will
> only work if it is before the inheirit.
>
> (It took me *quite* a bit of trial-and-error to get it to work the first
> time I wanted to use a non-master HEAD.)
>
> -JimC
That was indeed the problem. Thank you very much!
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-08-29 2:29 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-27 5:58 [gentoo-devhelp] How do I select a specific Git "head" in live ebuilds? Nikos Chantziaras
2010-08-27 19:53 ` Sergei Trofimovich
2010-08-28 19:05 ` James Cloos
2010-08-29 1:48 ` [gentoo-devhelp] " Nikos Chantziaras
2010-08-29 2:28 ` Mike Frysinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox