From: Martin Jansa <martin.jansa@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: git & SRCREV
Date: Mon, 11 Oct 2010 13:52:50 +0200 [thread overview]
Message-ID: <20101011115250.GB3465@jama> (raw)
In-Reply-To: <4CB2F9AF.6000607@xora.org.uk>
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
prev parent reply other threads:[~2010-10-11 11:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20101011115250.GB3465@jama \
--to=martin.jansa@gmail.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.