* Correct versioning of unversioned source in git
@ 2014-03-13 9:08 Tomas Novotny
2014-03-13 9:59 ` Koen Kooi
0 siblings, 1 reply; 10+ messages in thread
From: Tomas Novotny @ 2014-03-13 9:08 UTC (permalink / raw)
To: openembedded-devel
Hi all,
there is a recipe sunxi-board-fex in meta-sunxi layer. That recipe fetches
sources from unversioned git which contains definitions of some boards (in
fact it is something like a store).
I'm not sure with correct versioning in OE. Is that:
PV = "1.0+git${SRCPV}"
SRCREV = "<some_gitrev_I_want>"
correct? Will be change of SRCREV (only) catched by build system (I'm curious
how OE handles age of the rev in git)?
Or do I need to raise PV to 1.1 and so on with every change to SRCREV?
Thanks,
Tomas
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Correct versioning of unversioned source in git
2014-03-13 9:08 Correct versioning of unversioned source in git Tomas Novotny
@ 2014-03-13 9:59 ` Koen Kooi
2014-03-13 10:45 ` Paul Eggleton
2014-03-13 21:15 ` Tomas Novotny
0 siblings, 2 replies; 10+ messages in thread
From: Koen Kooi @ 2014-03-13 9:59 UTC (permalink / raw)
To: openembedded-devel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Tomas Novotny schreef op 13-03-14 10:08:
> Hi all,
>
> there is a recipe sunxi-board-fex in meta-sunxi layer. That recipe
> fetches sources from unversioned git which contains definitions of some
> boards (in fact it is something like a store). I'm not sure with correct
> versioning in OE. Is that: PV = "1.0+git${SRCPV}" SRCREV =
> "<some_gitrev_I_want>" correct? Will be change of SRCREV (only) catched
> by build system (I'm curious how OE handles age of the rev in git)? Or do
> I need to raise PV to 1.1 and so on with every change to SRCREV?
The answer changes if you have more than one buildhost. If you have only one
buildhost and don't care about other people rebuilding the exact same
versions, 1.0+git${SRCPV} will work.
If you have more than one buildhost and/or care about other people
rebuilding the exact same, you'll need to increase PR (or PV) everytime
SRCREV changes. That will still cause some discrepancies if someone rebuilds
after >1 SRCREV change, but upgrade paths should work when increasing PV
(not with PR!).
regards,
Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: GPGTools - http://gpgtools.org
iD8DBQFTIYGKMkyGM64RGpERAtHvAJ96mw6U8PacUt+DOagTFjWtwsNd2wCbB3nr
KSym/Y5aAMUbEKx61oNDiH0=
=Qvq7
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Correct versioning of unversioned source in git
2014-03-13 9:59 ` Koen Kooi
@ 2014-03-13 10:45 ` Paul Eggleton
2014-03-13 11:09 ` Koen Kooi
2014-03-13 21:15 ` Tomas Novotny
1 sibling, 1 reply; 10+ messages in thread
From: Paul Eggleton @ 2014-03-13 10:45 UTC (permalink / raw)
To: Koen Kooi; +Cc: openembedded-devel
On Thursday 13 March 2014 10:59:38 Koen Kooi wrote:
> Tomas Novotny schreef op 13-03-14 10:08:
> > there is a recipe sunxi-board-fex in meta-sunxi layer. That recipe
> > fetches sources from unversioned git which contains definitions of some
> > boards (in fact it is something like a store). I'm not sure with correct
> > versioning in OE. Is that: PV = "1.0+git${SRCPV}" SRCREV =
> > "<some_gitrev_I_want>" correct? Will be change of SRCREV (only) catched
> > by build system (I'm curious how OE handles age of the rev in git)? Or do
> > I need to raise PV to 1.1 and so on with every change to SRCREV?
>
> The answer changes if you have more than one buildhost. If you have only one
> buildhost and don't care about other people rebuilding the exact same
> versions, 1.0+git${SRCPV} will work.
>
> If you have more than one buildhost and/or care about other people
> rebuilding the exact same, you'll need to increase PR (or PV) everytime
> SRCREV changes. That will still cause some discrepancies if someone rebuilds
> after >1 SRCREV change, but upgrade paths should work when increasing PV
> (not with PR!).
Why not with PR?
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Correct versioning of unversioned source in git
2014-03-13 10:45 ` Paul Eggleton
@ 2014-03-13 11:09 ` Koen Kooi
2014-03-13 11:14 ` Paul Eggleton
0 siblings, 1 reply; 10+ messages in thread
From: Koen Kooi @ 2014-03-13 11:09 UTC (permalink / raw)
To: Paul Eggleton; +Cc: openembedded-devel
Op 13 mrt. 2014, om 11:45 heeft Paul Eggleton <paul.eggleton@linux.intel.com> het volgende geschreven:
> On Thursday 13 March 2014 10:59:38 Koen Kooi wrote:
>> Tomas Novotny schreef op 13-03-14 10:08:
>>> there is a recipe sunxi-board-fex in meta-sunxi layer. That recipe
>>> fetches sources from unversioned git which contains definitions of some
>>> boards (in fact it is something like a store). I'm not sure with correct
>>> versioning in OE. Is that: PV = "1.0+git${SRCPV}" SRCREV =
>>> "<some_gitrev_I_want>" correct? Will be change of SRCREV (only) catched
>>> by build system (I'm curious how OE handles age of the rev in git)? Or do
>>> I need to raise PV to 1.1 and so on with every change to SRCREV?
>>
>> The answer changes if you have more than one buildhost. If you have only one
>> buildhost and don't care about other people rebuilding the exact same
>> versions, 1.0+git${SRCPV} will work.
>>
>> If you have more than one buildhost and/or care about other people
>> rebuilding the exact same, you'll need to increase PR (or PV) everytime
>> SRCREV changes. That will still cause some discrepancies if someone rebuilds
>> after >1 SRCREV change, but upgrade paths should work when increasing PV
>> (not with PR!).
>
> Why not with PR?
because SRCPV in in PV, not PR
>
> Cheers,
> Paul
>
> --
>
> Paul Eggleton
> Intel Open Source Technology Centre
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Correct versioning of unversioned source in git
2014-03-13 11:09 ` Koen Kooi
@ 2014-03-13 11:14 ` Paul Eggleton
2014-03-13 11:17 ` Koen Kooi
0 siblings, 1 reply; 10+ messages in thread
From: Paul Eggleton @ 2014-03-13 11:14 UTC (permalink / raw)
To: Koen Kooi; +Cc: openembedded-devel
On Thursday 13 March 2014 12:09:21 Koen Kooi wrote:
> Op 13 mrt. 2014, om 11:45 heeft Paul Eggleton
<paul.eggleton@linux.intel.com> het volgende geschreven:
> > On Thursday 13 March 2014 10:59:38 Koen Kooi wrote:
> >> Tomas Novotny schreef op 13-03-14 10:08:
> >>> there is a recipe sunxi-board-fex in meta-sunxi layer. That recipe
> >>> fetches sources from unversioned git which contains definitions of some
> >>> boards (in fact it is something like a store). I'm not sure with correct
> >>> versioning in OE. Is that: PV = "1.0+git${SRCPV}" SRCREV =
> >>> "<some_gitrev_I_want>" correct? Will be change of SRCREV (only) catched
> >>> by build system (I'm curious how OE handles age of the rev in git)? Or
> >>> do
> >>> I need to raise PV to 1.1 and so on with every change to SRCREV?
> >>
> >> The answer changes if you have more than one buildhost. If you have only
> >> one buildhost and don't care about other people rebuilding the exact
> >> same versions, 1.0+git${SRCPV} will work.
> >>
> >> If you have more than one buildhost and/or care about other people
> >> rebuilding the exact same, you'll need to increase PR (or PV) everytime
> >> SRCREV changes. That will still cause some discrepancies if someone
> >> rebuilds after >1 SRCREV change, but upgrade paths should work when
> >> increasing PV (not with PR!).
> >
> > Why not with PR?
>
> because SRCPV in in PV, not PR
Right, but if you're using the PR server, that also stores the incrementing
number at the start of SRCPV; PR may also increment when SRCREV changes as
well (not sure on the latter). The PR server ought to be used if you care
about this sort of thing.
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Correct versioning of unversioned source in git
2014-03-13 11:14 ` Paul Eggleton
@ 2014-03-13 11:17 ` Koen Kooi
2014-03-13 11:54 ` Paul Eggleton
0 siblings, 1 reply; 10+ messages in thread
From: Koen Kooi @ 2014-03-13 11:17 UTC (permalink / raw)
To: Paul Eggleton; +Cc: openembedded-devel
Op 13 mrt. 2014, om 12:14 heeft Paul Eggleton <paul.eggleton@linux.intel.com> het volgende geschreven:
> On Thursday 13 March 2014 12:09:21 Koen Kooi wrote:
>> Op 13 mrt. 2014, om 11:45 heeft Paul Eggleton
> <paul.eggleton@linux.intel.com> het volgende geschreven:
>>> On Thursday 13 March 2014 10:59:38 Koen Kooi wrote:
>>>> Tomas Novotny schreef op 13-03-14 10:08:
>>>>> there is a recipe sunxi-board-fex in meta-sunxi layer. That recipe
>>>>> fetches sources from unversioned git which contains definitions of some
>>>>> boards (in fact it is something like a store). I'm not sure with correct
>>>>> versioning in OE. Is that: PV = "1.0+git${SRCPV}" SRCREV =
>>>>> "<some_gitrev_I_want>" correct? Will be change of SRCREV (only) catched
>>>>> by build system (I'm curious how OE handles age of the rev in git)? Or
>>>>> do
>>>>> I need to raise PV to 1.1 and so on with every change to SRCREV?
>>>>
>>>> The answer changes if you have more than one buildhost. If you have only
>>>> one buildhost and don't care about other people rebuilding the exact
>>>> same versions, 1.0+git${SRCPV} will work.
>>>>
>>>> If you have more than one buildhost and/or care about other people
>>>> rebuilding the exact same, you'll need to increase PR (or PV) everytime
>>>> SRCREV changes. That will still cause some discrepancies if someone
>>>> rebuilds after >1 SRCREV change, but upgrade paths should work when
>>>> increasing PV (not with PR!).
>>>
>>> Why not with PR?
>>
>> because SRCPV in in PV, not PR
>
> Right, but if you're using the PR server, that also stores the incrementing
> number at the start of SRCPV; PR may also increment when SRCREV changes as
> well (not sure on the latter). The PR server ought to be used if you care
> about this sort of thing.
Only if your PR server is publicly available *and* you have network access during the build. There is currently no workable way to get versioning info to users trying to rebuild something. The closest I've been to a solution is to ship prserv-tool exports in git.
regards,
Koen
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Correct versioning of unversioned source in git
2014-03-13 11:17 ` Koen Kooi
@ 2014-03-13 11:54 ` Paul Eggleton
2014-03-13 13:13 ` Koen Kooi
2014-03-14 11:53 ` Mike Looijmans
0 siblings, 2 replies; 10+ messages in thread
From: Paul Eggleton @ 2014-03-13 11:54 UTC (permalink / raw)
To: Koen Kooi; +Cc: openembedded-devel
On Thursday 13 March 2014 12:17:40 Koen Kooi wrote:
> Op 13 mrt. 2014, om 12:14 heeft Paul Eggleton
<paul.eggleton@linux.intel.com> het volgende geschreven:
> > On Thursday 13 March 2014 12:09:21 Koen Kooi wrote:
> >> Op 13 mrt. 2014, om 11:45 heeft Paul Eggleton
> >
> > <paul.eggleton@linux.intel.com> het volgende geschreven:
> >>> On Thursday 13 March 2014 10:59:38 Koen Kooi wrote:
> >>>> Tomas Novotny schreef op 13-03-14 10:08:
> >>>>> there is a recipe sunxi-board-fex in meta-sunxi layer. That recipe
> >>>>> fetches sources from unversioned git which contains definitions of
> >>>>> some
> >>>>> boards (in fact it is something like a store). I'm not sure with
> >>>>> correct
> >>>>> versioning in OE. Is that: PV = "1.0+git${SRCPV}" SRCREV =
> >>>>> "<some_gitrev_I_want>" correct? Will be change of SRCREV (only)
> >>>>> catched
> >>>>> by build system (I'm curious how OE handles age of the rev in git)? Or
> >>>>> do
> >>>>> I need to raise PV to 1.1 and so on with every change to SRCREV?
> >>>>
> >>>> The answer changes if you have more than one buildhost. If you have
> >>>> only
> >>>> one buildhost and don't care about other people rebuilding the exact
> >>>> same versions, 1.0+git${SRCPV} will work.
> >>>>
> >>>> If you have more than one buildhost and/or care about other people
> >>>> rebuilding the exact same, you'll need to increase PR (or PV) everytime
> >>>> SRCREV changes. That will still cause some discrepancies if someone
> >>>> rebuilds after >1 SRCREV change, but upgrade paths should work when
> >>>> increasing PV (not with PR!).
> >>>
> >>> Why not with PR?
> >>
> >> because SRCPV in in PV, not PR
> >
> > Right, but if you're using the PR server, that also stores the
> > incrementing
> > number at the start of SRCPV; PR may also increment when SRCREV changes as
> > well (not sure on the latter). The PR server ought to be used if you care
> > about this sort of thing.
>
> Only if your PR server is publicly available *and* you have network access
> during the build. There is currently no workable way to get versioning info
> to users trying to rebuild something. The closest I've been to a solution
> is to ship prserv-tool exports in git.
If you're saying you want something that doesn't require network access, gets
the right answer for all users *and* automatically increments when something
changes - those are conflicting requirements...
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Correct versioning of unversioned source in git
2014-03-13 11:54 ` Paul Eggleton
@ 2014-03-13 13:13 ` Koen Kooi
2014-03-14 11:53 ` Mike Looijmans
1 sibling, 0 replies; 10+ messages in thread
From: Koen Kooi @ 2014-03-13 13:13 UTC (permalink / raw)
To: Paul Eggleton; +Cc: openembedded-devel
Op 13 mrt. 2014, om 12:54 heeft Paul Eggleton <paul.eggleton@linux.intel.com> het volgende geschreven:
> On Thursday 13 March 2014 12:17:40 Koen Kooi wrote:
>> Op 13 mrt. 2014, om 12:14 heeft Paul Eggleton
> <paul.eggleton@linux.intel.com> het volgende geschreven:
>>> On Thursday 13 March 2014 12:09:21 Koen Kooi wrote:
>>>> Op 13 mrt. 2014, om 11:45 heeft Paul Eggleton
>>>
>>> <paul.eggleton@linux.intel.com> het volgende geschreven:
>>>>> On Thursday 13 March 2014 10:59:38 Koen Kooi wrote:
>>>>>> Tomas Novotny schreef op 13-03-14 10:08:
>>>>>>> there is a recipe sunxi-board-fex in meta-sunxi layer. That recipe
>>>>>>> fetches sources from unversioned git which contains definitions of
>>>>>>> some
>>>>>>> boards (in fact it is something like a store). I'm not sure with
>>>>>>> correct
>>>>>>> versioning in OE. Is that: PV = "1.0+git${SRCPV}" SRCREV =
>>>>>>> "<some_gitrev_I_want>" correct? Will be change of SRCREV (only)
>>>>>>> catched
>>>>>>> by build system (I'm curious how OE handles age of the rev in git)? Or
>>>>>>> do
>>>>>>> I need to raise PV to 1.1 and so on with every change to SRCREV?
>>>>>>
>>>>>> The answer changes if you have more than one buildhost. If you have
>>>>>> only
>>>>>> one buildhost and don't care about other people rebuilding the exact
>>>>>> same versions, 1.0+git${SRCPV} will work.
>>>>>>
>>>>>> If you have more than one buildhost and/or care about other people
>>>>>> rebuilding the exact same, you'll need to increase PR (or PV) everytime
>>>>>> SRCREV changes. That will still cause some discrepancies if someone
>>>>>> rebuilds after >1 SRCREV change, but upgrade paths should work when
>>>>>> increasing PV (not with PR!).
>>>>>
>>>>> Why not with PR?
>>>>
>>>> because SRCPV in in PV, not PR
>>>
>>> Right, but if you're using the PR server, that also stores the
>>> incrementing
>>> number at the start of SRCPV; PR may also increment when SRCREV changes as
>>> well (not sure on the latter). The PR server ought to be used if you care
>>> about this sort of thing.
>>
>> Only if your PR server is publicly available *and* you have network access
>> during the build. There is currently no workable way to get versioning info
>> to users trying to rebuild something. The closest I've been to a solution
>> is to ship prserv-tool exports in git.
>
> If you're saying you want something that doesn't require network access, gets
> the right answer for all users *and* automatically increments when something
> changes - those are conflicting requirements...
I know, that's why putting SRCPV in PV instead of PR is such a massive pain :/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Correct versioning of unversioned source in git
2014-03-13 9:59 ` Koen Kooi
2014-03-13 10:45 ` Paul Eggleton
@ 2014-03-13 21:15 ` Tomas Novotny
1 sibling, 0 replies; 10+ messages in thread
From: Tomas Novotny @ 2014-03-13 21:15 UTC (permalink / raw)
To: Koen Kooi; +Cc: openembedded-devel
On Thu, 13 Mar 2014 10:59:38 +0100, Koen Kooi <koen@dominion.thruhere.net>
wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Tomas Novotny schreef op 13-03-14 10:08:
> > Hi all,
> >
> > there is a recipe sunxi-board-fex in meta-sunxi layer. That recipe
> > fetches sources from unversioned git which contains definitions of some
> > boards (in fact it is something like a store). I'm not sure with correct
> > versioning in OE. Is that: PV = "1.0+git${SRCPV}" SRCREV =
> > "<some_gitrev_I_want>" correct? Will be change of SRCREV (only) catched
> > by build system (I'm curious how OE handles age of the rev in git)? Or do
> > I need to raise PV to 1.1 and so on with every change to SRCREV?
>
> The answer changes if you have more than one buildhost. If you have only one
> buildhost and don't care about other people rebuilding the exact same
> versions, 1.0+git${SRCPV} will work.
>
> If you have more than one buildhost and/or care about other people
> rebuilding the exact same, you'll need to increase PR (or PV) everytime
> SRCREV changes. That will still cause some discrepancies if someone rebuilds
> after >1 SRCREV change, but upgrade paths should work when increasing PV
> (not with PR!).
Thanks for the explanation, I will use the latter option.
Tomas
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Correct versioning of unversioned source in git
2014-03-13 11:54 ` Paul Eggleton
2014-03-13 13:13 ` Koen Kooi
@ 2014-03-14 11:53 ` Mike Looijmans
1 sibling, 0 replies; 10+ messages in thread
From: Mike Looijmans @ 2014-03-14 11:53 UTC (permalink / raw)
To: openembedded-devel
On 03/13/2014 12:54 PM, Paul Eggleton wrote:
> On Thursday 13 March 2014 12:17:40 Koen Kooi wrote:
>> Op 13 mrt. 2014, om 12:14 heeft Paul Eggleton
> <paul.eggleton@linux.intel.com> het volgende geschreven:
>>> On Thursday 13 March 2014 12:09:21 Koen Kooi wrote:
>>>> Op 13 mrt. 2014, om 11:45 heeft Paul Eggleton
>>>
>>> <paul.eggleton@linux.intel.com> het volgende geschreven:
>>>>> On Thursday 13 March 2014 10:59:38 Koen Kooi wrote:
>>>>>> Tomas Novotny schreef op 13-03-14 10:08:
>>>>>>> there is a recipe sunxi-board-fex in meta-sunxi layer. That recipe
>>>>>>> fetches sources from unversioned git which contains definitions of
>>>>>>> some
>>>>>>> boards (in fact it is something like a store). I'm not sure with
>>>>>>> correct
>>>>>>> versioning in OE. Is that: PV = "1.0+git${SRCPV}" SRCREV =
>>>>>>> "<some_gitrev_I_want>" correct? Will be change of SRCREV (only)
>>>>>>> catched
>>>>>>> by build system (I'm curious how OE handles age of the rev in git)? Or
>>>>>>> do
>>>>>>> I need to raise PV to 1.1 and so on with every change to SRCREV?
>>>>>>
>>>>>> The answer changes if you have more than one buildhost. If you have
>>>>>> only
>>>>>> one buildhost and don't care about other people rebuilding the exact
>>>>>> same versions, 1.0+git${SRCPV} will work.
>>>>>>
>>>>>> If you have more than one buildhost and/or care about other people
>>>>>> rebuilding the exact same, you'll need to increase PR (or PV) everytime
>>>>>> SRCREV changes. That will still cause some discrepancies if someone
>>>>>> rebuilds after >1 SRCREV change, but upgrade paths should work when
>>>>>> increasing PV (not with PR!).
>>>>>
>>>>> Why not with PR?
>>>>
>>>> because SRCPV in in PV, not PR
>>>
>>> Right, but if you're using the PR server, that also stores the
>>> incrementing
>>> number at the start of SRCPV; PR may also increment when SRCREV changes as
>>> well (not sure on the latter). The PR server ought to be used if you care
>>> about this sort of thing.
>>
>> Only if your PR server is publicly available *and* you have network access
>> during the build. There is currently no workable way to get versioning info
>> to users trying to rebuild something. The closest I've been to a solution
>> is to ship prserv-tool exports in git.
>
> If you're saying you want something that doesn't require network access, gets
> the right answer for all users *and* automatically increments when something
> changes - those are conflicting requirements...
"gitpkgv" from mete-openembedded has been doing a good job at that for me in
several projects. It just counts the number of git commits and uses that as
counter. Everybody thus sees the same number, versions are incremental, and no
server access needed during build.
My only wish would be that this were in oe-core.
Met vriendelijke groet / kind regards,
Mike Looijmans
TOPIC Embedded Systems
Eindhovenseweg 32-C, NL-5683 KH Best
Postbus 440, NL-5680 AK Best
Telefoon: (+31) (0) 499 33 69 79
Telefax: (+31) (0) 499 33 69 70
E-mail: mike.looijmans@topic.nl
Website: www.topic.nl
Please consider the environment before printing this e-mail
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2014-03-14 11:54 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-13 9:08 Correct versioning of unversioned source in git Tomas Novotny
2014-03-13 9:59 ` Koen Kooi
2014-03-13 10:45 ` Paul Eggleton
2014-03-13 11:09 ` Koen Kooi
2014-03-13 11:14 ` Paul Eggleton
2014-03-13 11:17 ` Koen Kooi
2014-03-13 11:54 ` Paul Eggleton
2014-03-13 13:13 ` Koen Kooi
2014-03-14 11:53 ` Mike Looijmans
2014-03-13 21:15 ` Tomas Novotny
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.