* SRCREV variable
@ 2011-11-23 23:19 Saxena, Rahul
2011-11-23 23:29 ` Rifenbark, Scott M
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Saxena, Rahul @ 2011-11-23 23:19 UTC (permalink / raw)
To: yocto@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 482 bytes --]
Hi ,
Can anyone explain how to set the SRCREV variable for a recipe ?
I get a error: "Please Set SRCREV to a valid value"
The poky manual simply has the following explanation:
'SRCREV Revision of source code used to build package (Subversion, GIT, Bazaar only). '
For example if my source is MesaLib-7.9.tar.bz2 file from following site...what steps do I need to do to get the SRCREV ?
ftp://ftp.freedesktop.org/pub/mesa/7.9/
Thanks
Rahul
[-- Attachment #2: Type: text/html, Size: 5398 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: SRCREV variable
2011-11-23 23:19 SRCREV variable Saxena, Rahul
@ 2011-11-23 23:29 ` Rifenbark, Scott M
2011-11-23 23:35 ` Saxena, Rahul
2011-11-23 23:41 ` Paul Eggleton
2011-11-26 14:03 ` Richard Purdie
2 siblings, 1 reply; 7+ messages in thread
From: Rifenbark, Scott M @ 2011-11-23 23:29 UTC (permalink / raw)
To: Saxena, Rahul, yocto@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 1481 bytes --]
There is a bit more in the Yocto Project Reference Manual at http://www.yoctoproject.org/docs/latest/poky-ref-manual/poky-ref-manual.html. It states:
SRCREV - The revision of the source code used to build the package. This variable applies to Subversion, Git, Mercurial and Bazaar only. Note that if you wish to build a fixed revision and you wish to avoid performing a query on the remote repository every time BitBake parses your recipe, you should specify a SRCREV that is a full revision identifier and not just a tag.
Also, Section 5.1.6 of that reference manual has some information on developing within Yocto Project for a package that uses an external SCM.
I am not sure if these will help you but this is where the latest documentation is for SRCREV.
ScottR
From: yocto-bounces@yoctoproject.org [mailto:yocto-bounces@yoctoproject.org] On Behalf Of Saxena, Rahul
Sent: Wednesday, November 23, 2011 3:19 PM
To: yocto@yoctoproject.org
Subject: [yocto] SRCREV variable
Hi ,
Can anyone explain how to set the SRCREV variable for a recipe ?
I get a error: "Please Set SRCREV to a valid value"
The poky manual simply has the following explanation:
'SRCREV Revision of source code used to build package (Subversion, GIT, Bazaar only). '
For example if my source is MesaLib-7.9.tar.bz2 file from following site...what steps do I need to do to get the SRCREV ?
ftp://ftp.freedesktop.org/pub/mesa/7.9/
Thanks
Rahul
[-- Attachment #2: Type: text/html, Size: 8061 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: SRCREV variable
2011-11-23 23:29 ` Rifenbark, Scott M
@ 2011-11-23 23:35 ` Saxena, Rahul
2011-11-23 23:36 ` Rifenbark, Scott M
2011-11-23 23:41 ` Chris Larson
0 siblings, 2 replies; 7+ messages in thread
From: Saxena, Rahul @ 2011-11-23 23:35 UTC (permalink / raw)
To: Rifenbark, Scott M, yocto@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 1777 bytes --]
Yes I saw this other stuff too...but I don't see anywhere the explanation of how a revision identifier is generated or obtained.
Thanks
Rahul
From: Rifenbark, Scott M
Sent: Wednesday, November 23, 2011 3:30 PM
To: Saxena, Rahul; yocto@yoctoproject.org
Subject: RE: SRCREV variable
There is a bit more in the Yocto Project Reference Manual at http://www.yoctoproject.org/docs/latest/poky-ref-manual/poky-ref-manual.html. It states:
SRCREV - The revision of the source code used to build the package. This variable applies to Subversion, Git, Mercurial and Bazaar only. Note that if you wish to build a fixed revision and you wish to avoid performing a query on the remote repository every time BitBake parses your recipe, you should specify a SRCREV that is a full revision identifier and not just a tag.
Also, Section 5.1.6 of that reference manual has some information on developing within Yocto Project for a package that uses an external SCM.
I am not sure if these will help you but this is where the latest documentation is for SRCREV.
ScottR
From: yocto-bounces@yoctoproject.org [mailto:yocto-bounces@yoctoproject.org] On Behalf Of Saxena, Rahul
Sent: Wednesday, November 23, 2011 3:19 PM
To: yocto@yoctoproject.org
Subject: [yocto] SRCREV variable
Hi ,
Can anyone explain how to set the SRCREV variable for a recipe ?
I get a error: "Please Set SRCREV to a valid value"
The poky manual simply has the following explanation:
'SRCREV Revision of source code used to build package (Subversion, GIT, Bazaar only). '
For example if my source is MesaLib-7.9.tar.bz2 file from following site...what steps do I need to do to get the SRCREV ?
ftp://ftp.freedesktop.org/pub/mesa/7.9/
Thanks
Rahul
[-- Attachment #2: Type: text/html, Size: 8944 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: SRCREV variable
2011-11-23 23:35 ` Saxena, Rahul
@ 2011-11-23 23:36 ` Rifenbark, Scott M
2011-11-23 23:41 ` Chris Larson
1 sibling, 0 replies; 7+ messages in thread
From: Rifenbark, Scott M @ 2011-11-23 23:36 UTC (permalink / raw)
To: Saxena, Rahul, yocto@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 2113 bytes --]
Rahul,
Okay - I was not sure whether it would help. Hopefully one of the developers will chime in here and help. My stuff was from the technical documentation point of view.
Scott
From: Saxena, Rahul
Sent: Wednesday, November 23, 2011 3:35 PM
To: Rifenbark, Scott M; yocto@yoctoproject.org
Subject: RE: SRCREV variable
Yes I saw this other stuff too...but I don't see anywhere the explanation of how a revision identifier is generated or obtained.
Thanks
Rahul
From: Rifenbark, Scott M
Sent: Wednesday, November 23, 2011 3:30 PM
To: Saxena, Rahul; yocto@yoctoproject.org
Subject: RE: SRCREV variable
There is a bit more in the Yocto Project Reference Manual at http://www.yoctoproject.org/docs/latest/poky-ref-manual/poky-ref-manual.html. It states:
SRCREV - The revision of the source code used to build the package. This variable applies to Subversion, Git, Mercurial and Bazaar only. Note that if you wish to build a fixed revision and you wish to avoid performing a query on the remote repository every time BitBake parses your recipe, you should specify a SRCREV that is a full revision identifier and not just a tag.
Also, Section 5.1.6 of that reference manual has some information on developing within Yocto Project for a package that uses an external SCM.
I am not sure if these will help you but this is where the latest documentation is for SRCREV.
ScottR
From: yocto-bounces@yoctoproject.org [mailto:yocto-bounces@yoctoproject.org] On Behalf Of Saxena, Rahul
Sent: Wednesday, November 23, 2011 3:19 PM
To: yocto@yoctoproject.org
Subject: [yocto] SRCREV variable
Hi ,
Can anyone explain how to set the SRCREV variable for a recipe ?
I get a error: "Please Set SRCREV to a valid value"
The poky manual simply has the following explanation:
'SRCREV Revision of source code used to build package (Subversion, GIT, Bazaar only). '
For example if my source is MesaLib-7.9.tar.bz2 file from following site...what steps do I need to do to get the SRCREV ?
ftp://ftp.freedesktop.org/pub/mesa/7.9/
Thanks
Rahul
[-- Attachment #2: Type: text/html, Size: 10644 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: SRCREV variable
2011-11-23 23:19 SRCREV variable Saxena, Rahul
2011-11-23 23:29 ` Rifenbark, Scott M
@ 2011-11-23 23:41 ` Paul Eggleton
2011-11-26 14:03 ` Richard Purdie
2 siblings, 0 replies; 7+ messages in thread
From: Paul Eggleton @ 2011-11-23 23:41 UTC (permalink / raw)
To: Saxena, Rahul; +Cc: yocto
On Wednesday 23 November 2011 15:19:01 Saxena, Rahul wrote:
> For example if my source is MesaLib-7.9.tar.bz2 file from following
> site...what steps do I need to do to get the SRCREV ?
>
> ftp://ftp.freedesktop.org/pub/mesa/7.9/
SRCREV is only used when you are fetching from some remote version control
system (git, etc.). If it's complaining about it not being present then there
must be some reference to a VCS in your SRC_URI. You can check this by running
the following (replacing targetname as appropriate):
bitbake -e targetname | grep ^SRC_URI
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: SRCREV variable
2011-11-23 23:35 ` Saxena, Rahul
2011-11-23 23:36 ` Rifenbark, Scott M
@ 2011-11-23 23:41 ` Chris Larson
1 sibling, 0 replies; 7+ messages in thread
From: Chris Larson @ 2011-11-23 23:41 UTC (permalink / raw)
To: Saxena, Rahul; +Cc: yocto@yoctoproject.org
On Wed, Nov 23, 2011 at 4:35 PM, Saxena, Rahul <rahul.saxena@intel.com> wrote:
> Yes I saw this other stuff too…but I don’t see anywhere the explanation of
> how a revision identifier is generated or obtained.
The value is entirely dependent upon the scm in use. git hash, svn
revision #, etc.
--
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: SRCREV variable
2011-11-23 23:19 SRCREV variable Saxena, Rahul
2011-11-23 23:29 ` Rifenbark, Scott M
2011-11-23 23:41 ` Paul Eggleton
@ 2011-11-26 14:03 ` Richard Purdie
2 siblings, 0 replies; 7+ messages in thread
From: Richard Purdie @ 2011-11-26 14:03 UTC (permalink / raw)
To: Saxena, Rahul; +Cc: yocto@yoctoproject.org
On Wed, 2011-11-23 at 15:19 -0800, Saxena, Rahul wrote:
> Can anyone explain how to set the SRCREV variable for a recipe ?
>
> I get a error: “Please Set SRCREV to a valid value”
Could you post some logs of the build showing this problem please?
> For example if my source is MesaLib-7.9.tar.bz2 file from following
> site…what steps do I need to do to get the SRCREV ?
>
> ftp://ftp.freedesktop.org/pub/mesa/7.9/
>
Elsewhere you pointed out a recipe with a plain SRC_URI = "ftp://xxx"
address which would be the correct way to do this.
I suspect you have multiple mesa recipes and its selecting a "git://"
based one over the "ftp://" one you think its using. The "easy" way to
tell would be to delete the git mesa recipes and then it will probably
use the one you're expecting.
The better way to tell it to use the right recipe would be:
PREFERRED_VERSION_mesa = "7.9"
(assuming the recipe is called mesa)
It would be easier to help if we had some logs and more information
about what you're trying to do though, I'm just having to guess.
Cheers,
Richard
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2011-11-26 14:03 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-23 23:19 SRCREV variable Saxena, Rahul
2011-11-23 23:29 ` Rifenbark, Scott M
2011-11-23 23:35 ` Saxena, Rahul
2011-11-23 23:36 ` Rifenbark, Scott M
2011-11-23 23:41 ` Chris Larson
2011-11-23 23:41 ` Paul Eggleton
2011-11-26 14:03 ` Richard Purdie
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.