* LOCALCOUNT increased twice when there are 2 layers with same git recipe
@ 2011-06-09 8:38 Martin Jansa
2011-06-09 8:58 ` Koen Kooi
2011-06-09 9:24 ` Richard Purdie
0 siblings, 2 replies; 5+ messages in thread
From: Martin Jansa @ 2011-06-09 8:38 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
[-- Attachment #1: Type: text/plain, Size: 2011 bytes --]
Hi,
I was wondering why I see gobject-introspection built on every image
build and it's because LOCALCOUNT is changing all the time.
OE om-gta02@shr ~/shr-core $ find openembedded-core/ -name gobject-introspection\*
openembedded-core/meta/recipes-gnome/gnome/gobject-introspection_git.bb
SRCREV = "efa7266bcf78478ce62e8dd778a4f0417bfd4d15"
PV = "0.10.8+git${SRCPV}"
OE om-gta02@shr ~/shr-core $ find meta-openembedded/ -name gobject-introspection\*
meta-openembedded/meta-oe/recipes-gnome/gnome/gobject-introspection_0.9.10.bb
meta-openembedded/meta-oe/recipes-gnome/gnome/gobject-introspection_git.bb
SRCREV = "8d64bc23d2b837421ecf9c7b0e4b8d5d95ca0d21"
PV = "1.29.0+gitr${SRCPV}"
I had to add gobject-introspection_git.bb to meta-oe, because we're
using newer glib with gdbus-codegen included (instead separate
gdbus-binding-tool we were using before)
meta-openembedded/meta-oe/recipes-core/glib-2.0/glib-2.0_git.bb with
SRCREV = "d97cbc6731deab137770bc0fe9c69b06f689f5b4"
PV = "2.29.3+gitr${SRCPV}"
and default gobject-introspection version is not compatible with it.
Problem is that with 2 _git recipes LOCALCOUNT is incremented twice
because there are 2 different SRCREVs found during parsing.
I wanted to use gobject-introspection_git.bbappend, but it looks like
changing PV/SRCREV from .bbappend is not supported (bitbake-layers also
reported that it cannot find right gobject-introspection version to my
bbappend. And I also cannot blacklist gobject-introspection_git.bb from
oe-core, because Angstrom blacklister uses only PN. So in the end I've
removed that recipe from my oe-core-contrib/shr branch which is used for
SHR builds..
Is there better way to resolve this? With more layers enabled this could
happen more often imho.. Maybe we could add unexpanded -PV to LOCALCOUNT
persistent db key with sideeffect of reseting LOCALCOUNT on every PV
change (upgrade to newer version).
Regards,
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: LOCALCOUNT increased twice when there are 2 layers with same git recipe
2011-06-09 8:38 LOCALCOUNT increased twice when there are 2 layers with same git recipe Martin Jansa
@ 2011-06-09 8:58 ` Koen Kooi
2011-06-09 9:40 ` Martin Jansa
2011-06-09 9:24 ` Richard Purdie
1 sibling, 1 reply; 5+ messages in thread
From: Koen Kooi @ 2011-06-09 8:58 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
Op 9 jun 2011, om 10:38 heeft Martin Jansa het volgende geschreven:
> Hi,
>
> I was wondering why I see gobject-introspection built on every image
> build and it's because LOCALCOUNT is changing all the time.
>
> OE om-gta02@shr ~/shr-core $ find openembedded-core/ -name gobject-introspection\*
> openembedded-core/meta/recipes-gnome/gnome/gobject-introspection_git.bb
> SRCREV = "efa7266bcf78478ce62e8dd778a4f0417bfd4d15"
> PV = "0.10.8+git${SRCPV}"
>
> OE om-gta02@shr ~/shr-core $ find meta-openembedded/ -name gobject-introspection\*
> meta-openembedded/meta-oe/recipes-gnome/gnome/gobject-introspection_0.9.10.bb
> meta-openembedded/meta-oe/recipes-gnome/gnome/gobject-introspection_git.bb
> SRCREV = "8d64bc23d2b837421ecf9c7b0e4b8d5d95ca0d21"
> PV = "1.29.0+gitr${SRCPV}"
>
> I had to add gobject-introspection_git.bb to meta-oe, because we're
> using newer glib with gdbus-codegen included (instead separate
> gdbus-binding-tool we were using before)
> meta-openembedded/meta-oe/recipes-core/glib-2.0/glib-2.0_git.bb with
> SRCREV = "d97cbc6731deab137770bc0fe9c69b06f689f5b4"
> PV = "2.29.3+gitr${SRCPV}"
> and default gobject-introspection version is not compatible with it.
>
> Problem is that with 2 _git recipes LOCALCOUNT is incremented twice
> because there are 2 different SRCREVs found during parsing.
>
> I wanted to use gobject-introspection_git.bbappend, but it looks like
> changing PV/SRCREV from .bbappend is not supported
And with SRCREV_pn-${PN} = "34932849328" ?
regards,
Koen
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: LOCALCOUNT increased twice when there are 2 layers with same git recipe
2011-06-09 8:38 LOCALCOUNT increased twice when there are 2 layers with same git recipe Martin Jansa
2011-06-09 8:58 ` Koen Kooi
@ 2011-06-09 9:24 ` Richard Purdie
2011-06-09 10:32 ` Martin Jansa
1 sibling, 1 reply; 5+ messages in thread
From: Richard Purdie @ 2011-06-09 9:24 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Thu, 2011-06-09 at 10:38 +0200, Martin Jansa wrote:
> Hi,
>
> I was wondering why I see gobject-introspection built on every image
> build and it's because LOCALCOUNT is changing all the time.
>
> OE om-gta02@shr ~/shr-core $ find openembedded-core/ -name gobject-introspection\*
> openembedded-core/meta/recipes-gnome/gnome/gobject-introspection_git.bb
> SRCREV = "efa7266bcf78478ce62e8dd778a4f0417bfd4d15"
> PV = "0.10.8+git${SRCPV}"
>
> OE om-gta02@shr ~/shr-core $ find meta-openembedded/ -name gobject-introspection\*
> meta-openembedded/meta-oe/recipes-gnome/gnome/gobject-introspection_0.9.10.bb
> meta-openembedded/meta-oe/recipes-gnome/gnome/gobject-introspection_git.bb
> SRCREV = "8d64bc23d2b837421ecf9c7b0e4b8d5d95ca0d21"
> PV = "1.29.0+gitr${SRCPV}"
>
> I had to add gobject-introspection_git.bb to meta-oe, because we're
> using newer glib with gdbus-codegen included (instead separate
> gdbus-binding-tool we were using before)
> meta-openembedded/meta-oe/recipes-core/glib-2.0/glib-2.0_git.bb with
> SRCREV = "d97cbc6731deab137770bc0fe9c69b06f689f5b4"
> PV = "2.29.3+gitr${SRCPV}"
> and default gobject-introspection version is not compatible with it.
>
> Problem is that with 2 _git recipes LOCALCOUNT is incremented twice
> because there are 2 different SRCREVs found during parsing.
>
> I wanted to use gobject-introspection_git.bbappend, but it looks like
> changing PV/SRCREV from .bbappend is not supported (bitbake-layers also
> reported that it cannot find right gobject-introspection version to my
> bbappend. And I also cannot blacklist gobject-introspection_git.bb from
> oe-core, because Angstrom blacklister uses only PN. So in the end I've
> removed that recipe from my oe-core-contrib/shr branch which is used for
> SHR builds..
>
> Is there better way to resolve this? With more layers enabled this could
> happen more often imho.. Maybe we could add unexpanded -PV to LOCALCOUNT
> persistent db key with sideeffect of reseting LOCALCOUNT on every PV
> change (upgrade to newer version).
I like this idea at least in principle. If you're changing PV, you don't
mind if the counter resets so I don't see that as a problem...
Cheers,
Richard
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: LOCALCOUNT increased twice when there are 2 layers with same git recipe
2011-06-09 8:58 ` Koen Kooi
@ 2011-06-09 9:40 ` Martin Jansa
0 siblings, 0 replies; 5+ messages in thread
From: Martin Jansa @ 2011-06-09 9:40 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
[-- Attachment #1: Type: text/plain, Size: 2151 bytes --]
On Thu, Jun 09, 2011 at 10:58:58AM +0200, Koen Kooi wrote:
>
> Op 9 jun 2011, om 10:38 heeft Martin Jansa het volgende geschreven:
>
> > Hi,
> >
> > I was wondering why I see gobject-introspection built on every image
> > build and it's because LOCALCOUNT is changing all the time.
> >
> > OE om-gta02@shr ~/shr-core $ find openembedded-core/ -name gobject-introspection\*
> > openembedded-core/meta/recipes-gnome/gnome/gobject-introspection_git.bb
> > SRCREV = "efa7266bcf78478ce62e8dd778a4f0417bfd4d15"
> > PV = "0.10.8+git${SRCPV}"
> >
> > OE om-gta02@shr ~/shr-core $ find meta-openembedded/ -name gobject-introspection\*
> > meta-openembedded/meta-oe/recipes-gnome/gnome/gobject-introspection_0.9.10.bb
> > meta-openembedded/meta-oe/recipes-gnome/gnome/gobject-introspection_git.bb
> > SRCREV = "8d64bc23d2b837421ecf9c7b0e4b8d5d95ca0d21"
> > PV = "1.29.0+gitr${SRCPV}"
> >
> > I had to add gobject-introspection_git.bb to meta-oe, because we're
> > using newer glib with gdbus-codegen included (instead separate
> > gdbus-binding-tool we were using before)
> > meta-openembedded/meta-oe/recipes-core/glib-2.0/glib-2.0_git.bb with
> > SRCREV = "d97cbc6731deab137770bc0fe9c69b06f689f5b4"
> > PV = "2.29.3+gitr${SRCPV}"
> > and default gobject-introspection version is not compatible with it.
> >
> > Problem is that with 2 _git recipes LOCALCOUNT is incremented twice
> > because there are 2 different SRCREVs found during parsing.
> >
> > I wanted to use gobject-introspection_git.bbappend, but it looks like
> > changing PV/SRCREV from .bbappend is not supported
>
> And with SRCREV_pn-${PN} = "34932849328" ?
Thanks! this works
http://git.shr-project.org/git/?p=meta-smartphone.git;a=commit;h=e332258bcd9c39dd9b6a3937a1d6937e7e9ed8c5
I had similar problem >year ago after renaming linux-openmoko
git recipes to PN_PV scheme
http://thread.gmane.org/gmane.comp.handhelds.openembedded/32950
but there it wouldn't be enough if different machines needs different
version. Good that I don't need this usecase anymore :).
Regards,
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: LOCALCOUNT increased twice when there are 2 layers with same git recipe
2011-06-09 9:24 ` Richard Purdie
@ 2011-06-09 10:32 ` Martin Jansa
0 siblings, 0 replies; 5+ messages in thread
From: Martin Jansa @ 2011-06-09 10:32 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
[-- Attachment #1: Type: text/plain, Size: 2780 bytes --]
On Thu, Jun 09, 2011 at 10:24:59AM +0100, Richard Purdie wrote:
> On Thu, 2011-06-09 at 10:38 +0200, Martin Jansa wrote:
> > Hi,
> >
> > I was wondering why I see gobject-introspection built on every image
> > build and it's because LOCALCOUNT is changing all the time.
> >
> > OE om-gta02@shr ~/shr-core $ find openembedded-core/ -name gobject-introspection\*
> > openembedded-core/meta/recipes-gnome/gnome/gobject-introspection_git.bb
> > SRCREV = "efa7266bcf78478ce62e8dd778a4f0417bfd4d15"
> > PV = "0.10.8+git${SRCPV}"
> >
> > OE om-gta02@shr ~/shr-core $ find meta-openembedded/ -name gobject-introspection\*
> > meta-openembedded/meta-oe/recipes-gnome/gnome/gobject-introspection_0.9.10.bb
> > meta-openembedded/meta-oe/recipes-gnome/gnome/gobject-introspection_git.bb
> > SRCREV = "8d64bc23d2b837421ecf9c7b0e4b8d5d95ca0d21"
> > PV = "1.29.0+gitr${SRCPV}"
> >
> > I had to add gobject-introspection_git.bb to meta-oe, because we're
> > using newer glib with gdbus-codegen included (instead separate
> > gdbus-binding-tool we were using before)
> > meta-openembedded/meta-oe/recipes-core/glib-2.0/glib-2.0_git.bb with
> > SRCREV = "d97cbc6731deab137770bc0fe9c69b06f689f5b4"
> > PV = "2.29.3+gitr${SRCPV}"
> > and default gobject-introspection version is not compatible with it.
> >
> > Problem is that with 2 _git recipes LOCALCOUNT is incremented twice
> > because there are 2 different SRCREVs found during parsing.
> >
> > I wanted to use gobject-introspection_git.bbappend, but it looks like
> > changing PV/SRCREV from .bbappend is not supported (bitbake-layers also
> > reported that it cannot find right gobject-introspection version to my
> > bbappend. And I also cannot blacklist gobject-introspection_git.bb from
> > oe-core, because Angstrom blacklister uses only PN. So in the end I've
> > removed that recipe from my oe-core-contrib/shr branch which is used for
> > SHR builds..
> >
> > Is there better way to resolve this? With more layers enabled this could
> > happen more often imho.. Maybe we could add unexpanded -PV to LOCALCOUNT
> > persistent db key with sideeffect of reseting LOCALCOUNT on every PV
> > change (upgrade to newer version).
>
> I like this idea at least in principle. If you're changing PV, you don't
> mind if the counter resets so I don't see that as a problem...
But it would need fallback to key without -PV in case PN-PV is not found
to prevent LOCALCOUNT breakage like branch addition to key did, also
it's a bit harder to test older bitbake after such change (as fallback
will work only one-way).
http://git.openembedded.org/cgit.cgi/bitbake/commit/?id=8c0afc13ad5eefea62b0b136f5b66792ba4e44cb
Regards,
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-06-09 10:35 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-09 8:38 LOCALCOUNT increased twice when there are 2 layers with same git recipe Martin Jansa
2011-06-09 8:58 ` Koen Kooi
2011-06-09 9:40 ` Martin Jansa
2011-06-09 9:24 ` Richard Purdie
2011-06-09 10:32 ` Martin Jansa
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.