* [PATCH 0/1] Fix for bitbake freeze due to git fetch during parse
@ 2011-06-21 17:29 Paul Eggleton
2011-06-21 17:29 ` [PATCH 1/1] u-boot: set SRCREV to a git revision instead of a tag reference Paul Eggleton
` (2 more replies)
0 siblings, 3 replies; 11+ messages in thread
From: Paul Eggleton @ 2011-06-21 17:29 UTC (permalink / raw)
To: openembedded-core
Addresses [YOCTO #1186]. See patch for further details. (Sending against
poky-contrib since OE git is currently experiencing issues.)
The following changes since commit 2163461ec94528ecf046a04edc5db3d2dd3a6b8b:
systemtap: remove non-core COMPATIBLE_MACHINES (2011-06-16 22:14:06 +0100)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib paule/fix-uboot-srcrev
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=paule/fix-uboot-srcrev
Paul Eggleton (1):
u-boot: set SRCREV to a git revision instead of a tag reference
meta/recipes-bsp/uboot/u-boot_2011.03.bb | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
--
1.7.4.1
^ permalink raw reply [flat|nested] 11+ messages in thread* [PATCH 1/1] u-boot: set SRCREV to a git revision instead of a tag reference
2011-06-21 17:29 [PATCH 0/1] Fix for bitbake freeze due to git fetch during parse Paul Eggleton
@ 2011-06-21 17:29 ` Paul Eggleton
2011-06-21 17:33 ` Joshua Lock
2011-06-21 17:34 ` Koen Kooi
2011-06-21 17:33 ` [PATCH 0/1] Fix for bitbake freeze due to git fetch during parse Koen Kooi
2011-06-22 16:36 ` Richard Purdie
2 siblings, 2 replies; 11+ messages in thread
From: Paul Eggleton @ 2011-06-21 17:29 UTC (permalink / raw)
To: openembedded-core
If we use a tag here then bitbake has to connect to the repository to find
out the corresponding revision (so it can expand SRCPV which is part of PV,
which amongst other things is needed to determine whether or not the
package has to be rebuilt.) This occurs at parse time; on machines behind a
firewall or with no network access this can be a problem.
We wish to avoid unnecessary network accesses and network access in our
default configuration during parse time is even worse. Substituting the
git revision corresponding to the tag prevents bitbake from having to
contact the remote repository in order to expand PV.
Addresses [YOCTO #1186]
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
meta/recipes-bsp/uboot/u-boot_2011.03.bb | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/meta/recipes-bsp/uboot/u-boot_2011.03.bb b/meta/recipes-bsp/uboot/u-boot_2011.03.bb
index 07f0609..25af69b 100644
--- a/meta/recipes-bsp/uboot/u-boot_2011.03.bb
+++ b/meta/recipes-bsp/uboot/u-boot_2011.03.bb
@@ -12,9 +12,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb \
FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/u-boot-git/${MACHINE}"
-SRCREV = "v2011.03"
+SRCREV = "19b54a701811220221fc4d5089a2bb18892018ca"
PV = "v2011.03+git${SRCPV}"
-PR="r4"
+PR = "r5"
SRC_URI = "git://git.denx.de/u-boot.git;branch=master;protocol=git"
--
1.7.4.1
^ permalink raw reply related [flat|nested] 11+ messages in thread* Re: [PATCH 1/1] u-boot: set SRCREV to a git revision instead of a tag reference
2011-06-21 17:29 ` [PATCH 1/1] u-boot: set SRCREV to a git revision instead of a tag reference Paul Eggleton
@ 2011-06-21 17:33 ` Joshua Lock
2011-06-21 17:49 ` Paul Eggleton
2011-06-21 17:34 ` Koen Kooi
1 sibling, 1 reply; 11+ messages in thread
From: Joshua Lock @ 2011-06-21 17:33 UTC (permalink / raw)
To: openembedded-core
On Tue, 2011-06-21 at 18:29 +0100, Paul Eggleton wrote:
> If we use a tag here then bitbake has to connect to the repository to find
> out the corresponding revision (so it can expand SRCPV which is part of PV,
> which amongst other things is needed to determine whether or not the
> package has to be rebuilt.) This occurs at parse time; on machines behind a
> firewall or with no network access this can be a problem.
>
> We wish to avoid unnecessary network accesses and network access in our
> default configuration during parse time is even worse. Substituting the
> git revision corresponding to the tag prevents bitbake from having to
> contact the remote repository in order to expand PV.
>
> Addresses [YOCTO #1186]
>
> Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Great work tracking this down! I wonder if it's worth mentioning in the
metadata that the revision corresponds to the tag?
Signed-off-by: Joshua Lock <josh@linux.intel.com>
> ---
> meta/recipes-bsp/uboot/u-boot_2011.03.bb | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/meta/recipes-bsp/uboot/u-boot_2011.03.bb b/meta/recipes-bsp/uboot/u-boot_2011.03.bb
> index 07f0609..25af69b 100644
> --- a/meta/recipes-bsp/uboot/u-boot_2011.03.bb
> +++ b/meta/recipes-bsp/uboot/u-boot_2011.03.bb
> @@ -12,9 +12,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb \
>
> FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/u-boot-git/${MACHINE}"
>
> -SRCREV = "v2011.03"
> +SRCREV = "19b54a701811220221fc4d5089a2bb18892018ca"
> PV = "v2011.03+git${SRCPV}"
> -PR="r4"
> +PR = "r5"
>
> SRC_URI = "git://git.denx.de/u-boot.git;branch=master;protocol=git"
>
--
Joshua Lock
Yocto Build System Monkey
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: [PATCH 1/1] u-boot: set SRCREV to a git revision instead of a tag reference
2011-06-21 17:29 ` [PATCH 1/1] u-boot: set SRCREV to a git revision instead of a tag reference Paul Eggleton
2011-06-21 17:33 ` Joshua Lock
@ 2011-06-21 17:34 ` Koen Kooi
2011-06-21 17:42 ` Paul Eggleton
1 sibling, 1 reply; 11+ messages in thread
From: Koen Kooi @ 2011-06-21 17:34 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
Op 21 jun 2011, om 19:29 heeft Paul Eggleton het volgende geschreven:
> If we use a tag here then bitbake has to connect to the repository to find
> out the corresponding revision (so it can expand SRCPV which is part of PV,
> which amongst other things is needed to determine whether or not the
> package has to be rebuilt.) This occurs at parse time; on machines behind a
> firewall or with no network access this can be a problem.
>
> We wish to avoid unnecessary network accesses and network access in our
> default configuration during parse time is even worse. Substituting the
> git revision corresponding to the tag prevents bitbake from having to
> contact the remote repository in order to expand PV.
>
> Addresses [YOCTO #1186]
>
> Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
> ---
> meta/recipes-bsp/uboot/u-boot_2011.03.bb | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/meta/recipes-bsp/uboot/u-boot_2011.03.bb b/meta/recipes-bsp/uboot/u-boot_2011.03.bb
> index 07f0609..25af69b 100644
> --- a/meta/recipes-bsp/uboot/u-boot_2011.03.bb
> +++ b/meta/recipes-bsp/uboot/u-boot_2011.03.bb
> @@ -12,9 +12,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb \
>
> FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/u-boot-git/${MACHINE}"
>
> -SRCREV = "v2011.03"
> +SRCREV = "19b54a701811220221fc4d5089a2bb18892018ca"
> PV = "v2011.03+git${SRCPV}"
> -PR="r4"
> +PR = "r5"
Can you add a comment above the rev in the lines of "bitbake sucks, we need to use a rev instead of a tag, this one maps to 2011.03"?
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: [PATCH 1/1] u-boot: set SRCREV to a git revision instead of a tag reference
2011-06-21 17:34 ` Koen Kooi
@ 2011-06-21 17:42 ` Paul Eggleton
2011-06-21 17:54 ` Koen Kooi
0 siblings, 1 reply; 11+ messages in thread
From: Paul Eggleton @ 2011-06-21 17:42 UTC (permalink / raw)
To: openembedded-core; +Cc: Koen Kooi
On Tuesday 21 June 2011 18:34:54 Koen Kooi wrote:
> Can you add a comment above the rev in the lines of "bitbake sucks, we need
> to use a rev instead of a tag, this one maps to 2011.03"?
I will add a comment about the revision corresponding to the tag, good idea.
However, if you do specify a tag for SRCREV and SRCPV is part of PV, then
bitbake needs to fetch the revision from the repo in order to determine SRCPV
so it can expand PV when it comes to figure out if a recipe needs to be rebuilt
or not (remembering that if SRCREV isn't a full revision, bitbake can't tell
if what you've specified is a "fixed" tag or a potentially moving branch.
If you've got a better idea on how to handle this I'd love to hear it.
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/1] u-boot: set SRCREV to a git revision instead of a tag reference
2011-06-21 17:42 ` Paul Eggleton
@ 2011-06-21 17:54 ` Koen Kooi
2011-06-21 17:59 ` Paul Eggleton
0 siblings, 1 reply; 11+ messages in thread
From: Koen Kooi @ 2011-06-21 17:54 UTC (permalink / raw)
To: Paul Eggleton; +Cc: openembedded-core
Op 21 jun 2011, om 19:42 heeft Paul Eggleton het volgende geschreven:
> On Tuesday 21 June 2011 18:34:54 Koen Kooi wrote:
>> Can you add a comment above the rev in the lines of "bitbake sucks, we need
>> to use a rev instead of a tag, this one maps to 2011.03"?
>
> I will add a comment about the revision corresponding to the tag, good idea.
>
> However, if you do specify a tag for SRCREV and SRCPV is part of PV
Since we're using the 2011.03 tag, why is SRCPV in PV at all? It should be exactly the same as the tarball.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/1] u-boot: set SRCREV to a git revision instead of a tag reference
2011-06-21 17:54 ` Koen Kooi
@ 2011-06-21 17:59 ` Paul Eggleton
2011-06-21 18:06 ` Tom Rini
0 siblings, 1 reply; 11+ messages in thread
From: Paul Eggleton @ 2011-06-21 17:59 UTC (permalink / raw)
To: Koen Kooi; +Cc: openembedded-core
On Tuesday 21 June 2011 18:54:12 Koen Kooi wrote:
> Since we're using the 2011.03 tag, why is SRCPV in PV at all? It should be
> exactly the same as the tarball.
One might go one step further and ask why fetching from git is a good idea
when the tarball would be much cleaner. Ultimately this is up to whoever
maintains the u-boot recipe.
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/1] u-boot: set SRCREV to a git revision instead of a tag reference
2011-06-21 17:59 ` Paul Eggleton
@ 2011-06-21 18:06 ` Tom Rini
0 siblings, 0 replies; 11+ messages in thread
From: Tom Rini @ 2011-06-21 18:06 UTC (permalink / raw)
To: openembedded-core
On 06/21/2011 10:59 AM, Paul Eggleton wrote:
> On Tuesday 21 June 2011 18:54:12 Koen Kooi wrote:
>> Since we're using the 2011.03 tag, why is SRCPV in PV at all? It should be
>> exactly the same as the tarball.
>
> One might go one step further and ask why fetching from git is a good idea
> when the tarball would be much cleaner. Ultimately this is up to whoever
> maintains the u-boot recipe.
Especially with the current git archive mirroring problem.
--
Tom Rini
Mentor Graphics Corporation
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 0/1] Fix for bitbake freeze due to git fetch during parse
2011-06-21 17:29 [PATCH 0/1] Fix for bitbake freeze due to git fetch during parse Paul Eggleton
2011-06-21 17:29 ` [PATCH 1/1] u-boot: set SRCREV to a git revision instead of a tag reference Paul Eggleton
@ 2011-06-21 17:33 ` Koen Kooi
2011-06-22 16:36 ` Richard Purdie
2 siblings, 0 replies; 11+ messages in thread
From: Koen Kooi @ 2011-06-21 17:33 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
Op 21 jun 2011, om 19:29 heeft Paul Eggleton het volgende geschreven:
> Addresses [YOCTO #1186]. See patch for further details. (Sending against
> poky-contrib since OE git is currently experiencing issues.)
That's why we have https://github.com/openembedded :)
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 0/1] Fix for bitbake freeze due to git fetch during parse
2011-06-21 17:29 [PATCH 0/1] Fix for bitbake freeze due to git fetch during parse Paul Eggleton
2011-06-21 17:29 ` [PATCH 1/1] u-boot: set SRCREV to a git revision instead of a tag reference Paul Eggleton
2011-06-21 17:33 ` [PATCH 0/1] Fix for bitbake freeze due to git fetch during parse Koen Kooi
@ 2011-06-22 16:36 ` Richard Purdie
2 siblings, 0 replies; 11+ messages in thread
From: Richard Purdie @ 2011-06-22 16:36 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Tue, 2011-06-21 at 18:29 +0100, Paul Eggleton wrote:
> Addresses [YOCTO #1186]. See patch for further details. (Sending against
> poky-contrib since OE git is currently experiencing issues.)
>
> The following changes since commit 2163461ec94528ecf046a04edc5db3d2dd3a6b8b:
>
> systemtap: remove non-core COMPATIBLE_MACHINES (2011-06-16 22:14:06 +0100)
>
> are available in the git repository at:
> git://git.pokylinux.org/poky-contrib paule/fix-uboot-srcrev
> http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=paule/fix-uboot-srcrev
>
> Paul Eggleton (1):
> u-boot: set SRCREV to a git revision instead of a tag reference
>
> meta/recipes-bsp/uboot/u-boot_2011.03.bb | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
I've merged Paul's updated version of this. Its a hard problem given
git's way of handling tags/branches etc. so its probably the best we can
do in the circumstances...
Cheers,
Richard
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2011-06-22 16:40 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-21 17:29 [PATCH 0/1] Fix for bitbake freeze due to git fetch during parse Paul Eggleton
2011-06-21 17:29 ` [PATCH 1/1] u-boot: set SRCREV to a git revision instead of a tag reference Paul Eggleton
2011-06-21 17:33 ` Joshua Lock
2011-06-21 17:49 ` Paul Eggleton
2011-06-21 17:34 ` Koen Kooi
2011-06-21 17:42 ` Paul Eggleton
2011-06-21 17:54 ` Koen Kooi
2011-06-21 17:59 ` Paul Eggleton
2011-06-21 18:06 ` Tom Rini
2011-06-21 17:33 ` [PATCH 0/1] Fix for bitbake freeze due to git fetch during parse Koen Kooi
2011-06-22 16:36 ` Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox