* SRCPV description
@ 2013-01-14 14:52 Rifenbark, Scott M
2013-01-14 15:10 ` Jerrod Peach
0 siblings, 1 reply; 5+ messages in thread
From: Rifenbark, Scott M @ 2013-01-14 14:52 UTC (permalink / raw)
To: Yocto discussion list
Hi,
I need a description of the SRCPV variable for the YP reference glossary. I have been told that it is generated and not assigned and that it is used to define PV values that include the source revisions from an RCS. By default it is set to the following in the conf/bitbake.conf file:
SRCPV = "${@bb.fetch2.get_srcrev(d)}"
Can anyone provide more information on this variable?
Thanks,
Scott
Scott Rifenbark
Intel Corporation
Yocto Project Documentation
503.712.2702
503.341.0418 (cell)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: SRCPV description
2013-01-14 14:52 SRCPV description Rifenbark, Scott M
@ 2013-01-14 15:10 ` Jerrod Peach
2013-01-14 15:28 ` Robert P. J. Day
2013-01-14 16:18 ` Martin Jansa
0 siblings, 2 replies; 5+ messages in thread
From: Jerrod Peach @ 2013-01-14 15:10 UTC (permalink / raw)
To: Rifenbark, Scott M; +Cc: Yocto discussion list
[-- Attachment #1: Type: text/plain, Size: 1823 bytes --]
On Mon, Jan 14, 2013 at 9:52 AM, Rifenbark, Scott M <
scott.m.rifenbark@intel.com> wrote:
> Hi,
>
> I need a description of the SRCPV variable for the YP reference glossary.
> I have been told that it is generated and not assigned and that it is used
> to define PV values that include the source revisions from an RCS. By
> default it is set to the following in the conf/bitbake.conf file:
>
> SRCPV = "${@bb.fetch2.get_srcrev(d)}"
>
> Can anyone provide more information on this variable?
>
> Thanks,
> Scott
>
>
>
> Scott Rifenbark
> Intel Corporation
> Yocto Project Documentation
> 503.712.2702
> 503.341.0418 (cell)
>
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
Scott,
Off the top of my head, I know SRCPV is a combination of the VCS type and
revision used in the actual build. Most interestingly, SRCPV will always
contain the real revision used in the build, even if ${AUTOREV} is
specified as the SRCREV for a given package. Note that if a package does
not include SRCPV somewhere within its recipe, I believe setting SRCREV to
${AUTOREV} will have no effect, as ${AUTOREV} by itself simply resolves to
the string "AUTOINC", which does not permute the hash of the recipe.
Note that I'm not really a Yocto expert nor am I sitting with the code in
front of me right now, so someone can jump in if I missed something or got
a detail incorrect. I don't remember the exact format of the string, but I
want to say its a combination of the VCS name, a Yocto-internal VCS
identification number (just like 1 or 2, not some huge int), and the
revision (be it a hash it git or an integer in SVN or whatever else is used
by a supported VCS).
Kind regards,
Jerrod
[-- Attachment #2: Type: text/html, Size: 2774 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: SRCPV description
2013-01-14 15:10 ` Jerrod Peach
@ 2013-01-14 15:28 ` Robert P. J. Day
2013-01-14 16:18 ` Martin Jansa
1 sibling, 0 replies; 5+ messages in thread
From: Robert P. J. Day @ 2013-01-14 15:28 UTC (permalink / raw)
To: Jerrod Peach; +Cc: Yocto discussion list
it might be worth tweaking the comment in fetch2/__init__.py, which
currently reads:
def get_srcrev(d):
"""
Return the version string for the current package
(usually to be used as PV)
no, it's primarily used not *as* PV but in the *construction* of PV,
as in:
meta/conf/bitbake.conf:SRCPV = "${@bb.fetch2.get_srcrev(d)}"
...
meta/recipes-bsp/x-load/x-load_git.bb:PV = "1.5.0+git${SRCPV}"
so, pedantically, that routine is used as SRCPV, which is
subsequently used in the final construction of PV. QED.
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: SRCPV description
2013-01-14 15:10 ` Jerrod Peach
2013-01-14 15:28 ` Robert P. J. Day
@ 2013-01-14 16:18 ` Martin Jansa
2013-01-14 20:06 ` Rifenbark, Scott M
1 sibling, 1 reply; 5+ messages in thread
From: Martin Jansa @ 2013-01-14 16:18 UTC (permalink / raw)
To: Jerrod Peach; +Cc: Yocto discussion list
[-- Attachment #1: Type: text/plain, Size: 2954 bytes --]
On Mon, Jan 14, 2013 at 10:10:58AM -0500, Jerrod Peach wrote:
> On Mon, Jan 14, 2013 at 9:52 AM, Rifenbark, Scott M <
> scott.m.rifenbark@intel.com> wrote:
>
> > Hi,
> >
> > I need a description of the SRCPV variable for the YP reference glossary.
> > I have been told that it is generated and not assigned and that it is used
> > to define PV values that include the source revisions from an RCS. By
> > default it is set to the following in the conf/bitbake.conf file:
> >
> > SRCPV = "${@bb.fetch2.get_srcrev(d)}"
> >
> > Can anyone provide more information on this variable?
> >
> > Thanks,
> > Scott
> >
> >
> >
> > Scott Rifenbark
> > Intel Corporation
> > Yocto Project Documentation
> > 503.712.2702
> > 503.341.0418 (cell)
> >
> > _______________________________________________
> > yocto mailing list
> > yocto@yoctoproject.org
> > https://lists.yoctoproject.org/listinfo/yocto
> >
>
> Scott,
>
> Off the top of my head, I know SRCPV is a combination of the VCS type and
> revision used in the actual build. Most interestingly, SRCPV will always
> contain the real revision used in the build, even if ${AUTOREV} is
> specified as the SRCREV for a given package. Note that if a package does
> not include SRCPV somewhere within its recipe, I believe setting SRCREV to
> ${AUTOREV} will have no effect, as ${AUTOREV} by itself simply resolves to
> the string "AUTOINC", which does not permute the hash of the recipe.
>
> Note that I'm not really a Yocto expert nor am I sitting with the code in
> front of me right now, so someone can jump in if I missed something or got
> a detail incorrect. I don't remember the exact format of the string, but I
> want to say its a combination of the VCS name, a Yocto-internal VCS
> identification number (just like 1 or 2, not some huge int), and the
> revision (be it a hash it git or an integer in SVN or whatever else is used
> by a supported VCS).
There isn't VCS type in SRCPV (that's why there is always prefix like
1.0+git${SRCPV}, 1.0+svn${SRCPV}). Some recipes even in oe-core are
using wrong prefix like -git or ~git:
meta/recipes-connectivity/ofono/ofono_git.bb:PV = "0.12-git${SRCPV}"
meta/recipes-extended/libzypp/libzypp_git.bb:PV = "0.0-git${SRCPV}"
meta/recipes-extended/sat-solver/sat-solver_git.bb:PV = "0.0-git${SRCPV}"
meta/recipes-extended/zypper/zypper_git.bb:PV = "1.5.3-git${SRCPV}"
meta/recipes-graphics/mesa/mesa-git.inc:PV = "9.1~git${SRCPV}"
And +git/+gitr, +svn/+svnr prefixes are inconsistently used.
AUTOINC is used instead of LOCALCOUNT only after
http://git.openembedded.org/bitbake/commit/?id=61cf01c5c236b4218f40cfae7c059c2b86765dbd
And AUTOREV should expand to latest revision in SRCREV even without
SRCPV in recipe (SRCPV is already used in bitbake.conf
meta/conf/bitbake.conf:SRCPV = "${@bb.fetch2.get_srcrev(d)}").
Cheers,
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: SRCPV description
2013-01-14 16:18 ` Martin Jansa
@ 2013-01-14 20:06 ` Rifenbark, Scott M
0 siblings, 0 replies; 5+ messages in thread
From: Rifenbark, Scott M @ 2013-01-14 20:06 UTC (permalink / raw)
To: Martin Jansa, Jerrod Peach; +Cc: Yocto discussion list
Thanks for the explanations for this variable all.
Scott
>-----Original Message-----
>From: Martin Jansa [mailto:martin.jansa@gmail.com]
>Sent: Monday, January 14, 2013 8:19 AM
>To: Jerrod Peach
>Cc: Rifenbark, Scott M; Yocto discussion list
>Subject: Re: [yocto] SRCPV description
>
>On Mon, Jan 14, 2013 at 10:10:58AM -0500, Jerrod Peach wrote:
>> On Mon, Jan 14, 2013 at 9:52 AM, Rifenbark, Scott M <
>> scott.m.rifenbark@intel.com> wrote:
>>
>> > Hi,
>> >
>> > I need a description of the SRCPV variable for the YP reference
>glossary.
>> > I have been told that it is generated and not assigned and that it
>> > is used to define PV values that include the source revisions from
>> > an RCS. By default it is set to the following in the
>conf/bitbake.conf file:
>> >
>> > SRCPV = "${@bb.fetch2.get_srcrev(d)}"
>> >
>> > Can anyone provide more information on this variable?
>> >
>> > Thanks,
>> > Scott
>> >
>> >
>> >
>> > Scott Rifenbark
>> > Intel Corporation
>> > Yocto Project Documentation
>> > 503.712.2702
>> > 503.341.0418 (cell)
>> >
>> > _______________________________________________
>> > yocto mailing list
>> > yocto@yoctoproject.org
>> > https://lists.yoctoproject.org/listinfo/yocto
>> >
>>
>> Scott,
>>
>> Off the top of my head, I know SRCPV is a combination of the VCS type
>> and revision used in the actual build. Most interestingly, SRCPV will
>> always contain the real revision used in the build, even if ${AUTOREV}
>> is specified as the SRCREV for a given package. Note that if a package
>> does not include SRCPV somewhere within its recipe, I believe setting
>> SRCREV to ${AUTOREV} will have no effect, as ${AUTOREV} by itself
>> simply resolves to the string "AUTOINC", which does not permute the
>hash of the recipe.
>>
>> Note that I'm not really a Yocto expert nor am I sitting with the code
>> in front of me right now, so someone can jump in if I missed something
>> or got a detail incorrect. I don't remember the exact format of the
>> string, but I want to say its a combination of the VCS name, a
>> Yocto-internal VCS identification number (just like 1 or 2, not some
>> huge int), and the revision (be it a hash it git or an integer in SVN
>> or whatever else is used by a supported VCS).
>
>There isn't VCS type in SRCPV (that's why there is always prefix like
>1.0+git${SRCPV}, 1.0+svn${SRCPV}). Some recipes even in oe-core are
>using wrong prefix like -git or ~git:
>meta/recipes-connectivity/ofono/ofono_git.bb:PV = "0.12-git${SRCPV}"
>meta/recipes-extended/libzypp/libzypp_git.bb:PV = "0.0-git${SRCPV}"
>meta/recipes-extended/sat-solver/sat-solver_git.bb:PV = "0.0-
>git${SRCPV}"
>meta/recipes-extended/zypper/zypper_git.bb:PV = "1.5.3-git${SRCPV}"
>meta/recipes-graphics/mesa/mesa-git.inc:PV = "9.1~git${SRCPV}"
>
>And +git/+gitr, +svn/+svnr prefixes are inconsistently used.
>
>AUTOINC is used instead of LOCALCOUNT only after
>http://git.openembedded.org/bitbake/commit/?id=61cf01c5c236b4218f40cfae7
>c059c2b86765dbd
>
>And AUTOREV should expand to latest revision in SRCREV even without
>SRCPV in recipe (SRCPV is already used in bitbake.conf
>meta/conf/bitbake.conf:SRCPV = "${@bb.fetch2.get_srcrev(d)}").
>
>Cheers,
>
>--
>Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-01-14 20:06 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-14 14:52 SRCPV description Rifenbark, Scott M
2013-01-14 15:10 ` Jerrod Peach
2013-01-14 15:28 ` Robert P. J. Day
2013-01-14 16:18 ` Martin Jansa
2013-01-14 20:06 ` Rifenbark, Scott M
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.