* git & SRCREV
@ 2010-10-11 11:45 Frans Meulenbroeks
2010-10-11 11:47 ` Graeme Gregory
0 siblings, 1 reply; 4+ messages in thread
From: Frans Meulenbroeks @ 2010-10-11 11:45 UTC (permalink / raw)
To: openembedded-devel, bitbake-dev
Roughly once a week i see a question on irc about someone getting a
git error: "fatal: not a valid object name 1"
this is because SRCREV is not defined for e.g. that machine.
What about extending bitbake (guess it is in there) with an error
message that more clearly explains the problem?
Frans
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: git & SRCREV
2010-10-11 11:45 git & SRCREV Frans Meulenbroeks
@ 2010-10-11 11:47 ` Graeme Gregory
2010-10-11 11:49 ` Graeme Gregory
0 siblings, 1 reply; 4+ messages in thread
From: Graeme Gregory @ 2010-10-11 11:47 UTC (permalink / raw)
To: openembedded-devel
On 11/10/2010 12:45, Frans Meulenbroeks wrote:
> Roughly once a week i see a question on irc about someone getting a
> git error: "fatal: not a valid object name 1"
> this is because SRCREV is not defined for e.g. that machine.
> What about extending bitbake (guess it is in there) with an error
> message that more clearly explains the problem?
>
As 1 can never be valid for git, how about a if SRCREV==1 then exlode in
git.bbclass
Graeme
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: git & SRCREV
2010-10-11 11:47 ` Graeme Gregory
@ 2010-10-11 11:49 ` Graeme Gregory
2010-10-11 11:52 ` Martin Jansa
0 siblings, 1 reply; 4+ messages in thread
From: Graeme Gregory @ 2010-10-11 11:49 UTC (permalink / raw)
To: openembedded-devel
On 11/10/2010 12:47, Graeme Gregory wrote:
> On 11/10/2010 12:45, Frans Meulenbroeks wrote:
>> Roughly once a week i see a question on irc about someone getting a
>> git error: "fatal: not a valid object name 1"
>> this is because SRCREV is not defined for e.g. that machine.
>> What about extending bitbake (guess it is in there) with an error
>> message that more clearly explains the problem?
>>
> As 1 can never be valid for git, how about a if SRCREV==1 then exlode in
> git.bbclass
>
Of course I meant the git class in the fetcher in bitbake :-)
G
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: git & SRCREV
2010-10-11 11:49 ` Graeme Gregory
@ 2010-10-11 11:52 ` Martin Jansa
0 siblings, 0 replies; 4+ messages in thread
From: Martin Jansa @ 2010-10-11 11:52 UTC (permalink / raw)
To: openembedded-devel
On Mon, Oct 11, 2010 at 12:49:03PM +0100, Graeme Gregory wrote:
> On 11/10/2010 12:47, Graeme Gregory wrote:
> > On 11/10/2010 12:45, Frans Meulenbroeks wrote:
> >> Roughly once a week i see a question on irc about someone getting a
> >> git error: "fatal: not a valid object name 1"
> >> this is because SRCREV is not defined for e.g. that machine.
> >> What about extending bitbake (guess it is in there) with an error
> >> message that more clearly explains the problem?
> >>
> > As 1 can never be valid for git, how about a if SRCREV==1 then exlode in
> > git.bbclass
> >
> Of course I meant the git class in the fetcher in bitbake :-)
if you want it to explode then you can use:
diff --git a/conf/bitbake.conf b/conf/bitbake.conf
index c1a65e2c..f7a876d 100644
--- a/conf/bitbake.conf
+++ b/conf/bitbake.conf
@@ -579,7 +579,7 @@ UPDATECOMMAND = "ERROR, this must be a BitBake bug"
UPDATECOMMAND_cvs = "/usr/bin/env 'PATH=${PATH}' cvs -d${CVSROOT} update -d -P ${CVSCOOPTS}"
UPDATECOMMAND_svn = "/usr/bin/env svn update --non-interactive --trust-server-cert --force --accept theirs-full ${SVNCOOPTS}"
SRCDATE = "${DATE}"
-SRCREV = "1"
+SRCREV = "INVALID"
SRCPV = "${@bb.fetch.get_srcrev(d)}"
AUTOREV = "${SRCPV}"
problem is that you'll get lots of
NOTE: Handling BitBake files: / (6820/7151) [95 %]ERROR: Please set SRCREV to a valid value while parsing /OE/dev/recipes/pimlico/contacts_svn.bb
NOTE: <class 'bb.fetch.InvalidSRCREV'>:Please set SRCREV to a valid value while evaluating:
${@bb.fetch.get_srcrev(d)}
NOTE: <class 'bb.fetch.InvalidSRCREV'>:Please set SRCREV to a valid value while evaluating:
0.8+svnr${SRCPV}
NOTE: <class 'bb.fetch.InvalidSRCREV'>:Please set SRCREV to a valid value while evaluating:
${PN}-${EXTENDPE}${PV}-${PR}
NOTE: <class 'bb.fetch.InvalidSRCREV'>:Please set SRCREV to a valid value while evaluating:
${PF}:${P}:${PN}:${BP}:${BPN}:files:.
ERROR: Please set SRCREV to a valid value while parsing /OE/dev/recipes/pimlico/contacts_svn.bb
even for recipes not in your target RDEPENDS..
regards,
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-10-11 11:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-11 11:45 git & SRCREV Frans Meulenbroeks
2010-10-11 11:47 ` Graeme Gregory
2010-10-11 11:49 ` Graeme Gregory
2010-10-11 11:52 ` Martin Jansa
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.