Openembedded Core Discussions
 help / color / mirror / Atom feed
* dbus-test no longer built for dbus-ptest after last bitbake changes
@ 2015-07-14 14:21 Martin Jansa
  2015-07-16 21:29 ` Martin Jansa
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Martin Jansa @ 2015-07-14 14:21 UTC (permalink / raw)
  To: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 1002 bytes --]

I'm not 100% sure it's related to recent bitbake variable expansion
changes, but my recent builds are failing with errors about
dbus-ptest cannot be installed because dbus-test-ptest doesn't exist

ERROR: 
Collected errors:

 * satisfy_dependencies_for: Cannot satisfy the following dependencies
 * for dbus-ptest:

 * 	dbus-test-ptest * 

 * opkg_install_cmd: Cannot install package dbus-ptest.

It's using a bit strange construct to add it to RDEPENDS:
meta/recipes-core/dbus/dbus.inc:RDEPENDS_dbus-ptest_class-target =
"dbus-test-ptest"

but checking cooker log shows that dbus-test
(meta/recipes-core/dbus/dbus-test_1.8.18.bb) wasn't built at all, only
dbus-test message is from opkg error and this QA error from dbus itself:

NOTE: recipe dbus-1.8.18-r0: task do_package_write_ipk: Started
WARNING: QA Issue: dbus-ptest rdepends on dbus-test-ptest, but it isn't
a build dependency? [build-deps]

Any ideas?

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: dbus-test no longer built for dbus-ptest after last bitbake changes
  2015-07-14 14:21 dbus-test no longer built for dbus-ptest after last bitbake changes Martin Jansa
@ 2015-07-16 21:29 ` Martin Jansa
  2015-07-16 22:22   ` Burton, Ross
  2015-07-16 21:39 ` Richard Purdie
  2015-07-21  9:44 ` Richard Purdie
  2 siblings, 1 reply; 7+ messages in thread
From: Martin Jansa @ 2015-07-16 21:29 UTC (permalink / raw)
  To: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 3110 bytes --]

On Tue, Jul 14, 2015 at 04:21:40PM +0200, Martin Jansa wrote:
> I'm not 100% sure it's related to recent bitbake variable expansion
> changes, but my recent builds are failing with errors about
> dbus-ptest cannot be installed because dbus-test-ptest doesn't exist
> 
> ERROR: 
> Collected errors:
> 
>  * satisfy_dependencies_for: Cannot satisfy the following dependencies
>  * for dbus-ptest:
> 
>  * 	dbus-test-ptest * 
> 
>  * opkg_install_cmd: Cannot install package dbus-ptest.
> 
> It's using a bit strange construct to add it to RDEPENDS:
> meta/recipes-core/dbus/dbus.inc:RDEPENDS_dbus-ptest_class-target =
> "dbus-test-ptest"
> 
> but checking cooker log shows that dbus-test
> (meta/recipes-core/dbus/dbus-test_1.8.18.bb) wasn't built at all, only
> dbus-test message is from opkg error and this QA error from dbus itself:
> 
> NOTE: recipe dbus-1.8.18-r0: task do_package_write_ipk: Started
> WARNING: QA Issue: dbus-ptest rdepends on dbus-test-ptest, but it isn't
> a build dependency? [build-deps]

Possibly other issues caused by different data expansion (because I don't remember any metadata changes in this area)

Parsing of 2408 .bb files complete (0 cached, 2408 parsed). 2963 targets, 125 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
NOTE: multiple providers are available for runtime opencv-samples (opencv-samples, opencv)
NOTE: consider defining a PREFERRED_PROVIDER entry to match opencv-samples
ERROR: Nothing PROVIDES 'qt4-x11-free-native' (but virtual:native:/home/jenkins/oe/world/shr-core/meta-smartphone/meta-fso/recipes-freesmartphone/freesmartphone/qfsodbusxml2cpp_git.bb DEPENDS on or otherwise requires it). Close matches:
  qt4-x11-free
NOTE: Runtime target 'aurora-daemon-dev' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['aurora-daemon-dev', 'libfso-qt', 'qfsodbusxml2cpp-native', 'qt4-x11-free-native']
NOTE: Runtime target 'aurora-daemon' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['aurora-daemon', 'libfso-qt', 'qfsodbusxml2cpp-native', 'qt4-x11-free-native']
NOTE: Runtime target 'libfso-qt' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['libfso-qt', 'qfsodbusxml2cpp-native', 'qt4-x11-free-native']
NOTE: Runtime target 'libfso-qt-dev' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['libfso-qt-dev', 'qfsodbusxml2cpp-native', 'qt4-x11-free-native']
ERROR: Nothing PROVIDES 'gtk+-native' (but virtual:native:/home/jenkins/oe/world/shr-core/meta-openembedded/meta-oe/recipes-extended/libwmf/libwmf_0.2.8.4.bb DEPENDS on or otherwise requires it). Close matches:
  tk-native
  git-native
  atk-native
NOTE: Runtime target 'abiword-dev' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['abiword-dev', 'libwmf-native', 'gtk+-native']
NOTE: Runtime target 'abiword' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['abiword', 'libwmf-native', 'gtk+-native']

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: dbus-test no longer built for dbus-ptest after last bitbake changes
  2015-07-14 14:21 dbus-test no longer built for dbus-ptest after last bitbake changes Martin Jansa
  2015-07-16 21:29 ` Martin Jansa
@ 2015-07-16 21:39 ` Richard Purdie
  2015-07-21  9:44 ` Richard Purdie
  2 siblings, 0 replies; 7+ messages in thread
From: Richard Purdie @ 2015-07-16 21:39 UTC (permalink / raw)
  To: Martin Jansa; +Cc: openembedded-core

On Tue, 2015-07-14 at 16:21 +0200, Martin Jansa wrote:
> I'm not 100% sure it's related to recent bitbake variable expansion
> changes, but my recent builds are failing with errors about
> dbus-ptest cannot be installed because dbus-test-ptest doesn't exist
> 
> ERROR: 
> Collected errors:
> 
>  * satisfy_dependencies_for: Cannot satisfy the following dependencies
>  * for dbus-ptest:
> 
>  * 	dbus-test-ptest * 
> 
>  * opkg_install_cmd: Cannot install package dbus-ptest.
> 
> It's using a bit strange construct to add it to RDEPENDS:
> meta/recipes-core/dbus/dbus.inc:RDEPENDS_dbus-ptest_class-target =
> "dbus-test-ptest"
> 
> but checking cooker log shows that dbus-test
> (meta/recipes-core/dbus/dbus-test_1.8.18.bb) wasn't built at all, only
> dbus-test message is from opkg error and this QA error from dbus itself:
> 
> NOTE: recipe dbus-1.8.18-r0: task do_package_write_ipk: Started
> WARNING: QA Issue: dbus-ptest rdepends on dbus-test-ptest, but it isn't
> a build dependency? [build-deps]
> 
> Any ideas?

I've not forgotten about this, I'm just neck deep in trying to fix the
current failures on the autobuilder (libspeexdsp is proving to uncover
scary things in smart). Its next on the queue when I get done with that
assuming nobody beats me to it but may be Monday...

Cheers,

Richard



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: dbus-test no longer built for dbus-ptest after last bitbake changes
  2015-07-16 21:29 ` Martin Jansa
@ 2015-07-16 22:22   ` Burton, Ross
  2015-07-17 12:01     ` Richard Purdie
  0 siblings, 1 reply; 7+ messages in thread
From: Burton, Ross @ 2015-07-16 22:22 UTC (permalink / raw)
  To: Martin Jansa; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 516 bytes --]

On 16 July 2015 at 22:29, Martin Jansa <martin.jansa@gmail.com> wrote:

> ERROR: Nothing PROVIDES 'gtk+-native' (but
> virtual:native:/home/jenkins/oe/world/shr-core/meta-openembedded/meta-oe/recipes-extended/libwmf/
> libwmf_0.2.8.4.bb DEPENDS on or otherwise requires it). Close matches:
>

So libwmf does this:

DEPENDS_virtclass-native = "freetype-native libpng-native jpeg-native"
DEPENDS = "freetype libpng jpeg expat gtk+"

Interestingly changing this to _class-native fixes the problem.

Ross

[-- Attachment #2: Type: text/html, Size: 1215 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: dbus-test no longer built for dbus-ptest after last bitbake changes
  2015-07-16 22:22   ` Burton, Ross
@ 2015-07-17 12:01     ` Richard Purdie
  2015-07-21  9:11       ` Richard Purdie
  0 siblings, 1 reply; 7+ messages in thread
From: Richard Purdie @ 2015-07-17 12:01 UTC (permalink / raw)
  To: Burton, Ross; +Cc: OE-core

On Thu, 2015-07-16 at 23:22 +0100, Burton, Ross wrote:
> 
> On 16 July 2015 at 22:29, Martin Jansa <martin.jansa@gmail.com> wrote:
>         ERROR: Nothing PROVIDES 'gtk+-native' (but
>         virtual:native:/home/jenkins/oe/world/shr-core/meta-openembedded/meta-oe/recipes-extended/libwmf/libwmf_0.2.8.4.bb DEPENDS on or otherwise requires it). Close matches:
>
> So libwmf does this:
>
> DEPENDS_virtclass-native = "freetype-native libpng-native jpeg-native"
> DEPENDS = "freetype libpng jpeg expat gtk+"
>
> Interestingly changing this to _class-native fixes the problem.

Strangely, the answer as to what might be wrong occurred to me in the
shower this morning. We should try changing:

native.bbclass:    e.data.setVar("OVERRIDES", e.data.getVar("OVERRIDES", False) + ":virtclass-native")

to

e.data.setVar("FOO", "virtclass-native")
e.data.setVar("OVERRIDES", e.data.getVar("OVERRIDES", False) + ":${FOO}")

and if that makes things work, its the override caching mechanism that
is bust for direct changes to OVERRIDES which don't use variable
indirection (most do).

If that is the case, a fix shouldn't be hard.

Cheers,

Richard




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: dbus-test no longer built for dbus-ptest after last bitbake changes
  2015-07-17 12:01     ` Richard Purdie
@ 2015-07-21  9:11       ` Richard Purdie
  0 siblings, 0 replies; 7+ messages in thread
From: Richard Purdie @ 2015-07-21  9:11 UTC (permalink / raw)
  To: Burton, Ross; +Cc: OE-core

On Fri, 2015-07-17 at 13:01 +0100, Richard Purdie wrote:
> On Thu, 2015-07-16 at 23:22 +0100, Burton, Ross wrote:
> > 
> > On 16 July 2015 at 22:29, Martin Jansa <martin.jansa@gmail.com> wrote:
> >         ERROR: Nothing PROVIDES 'gtk+-native' (but
> >         virtual:native:/home/jenkins/oe/world/shr-core/meta-openembedded/meta-oe/recipes-extended/libwmf/libwmf_0.2.8.4.bb DEPENDS on or otherwise requires it). Close matches:
> >
> > So libwmf does this:
> >
> > DEPENDS_virtclass-native = "freetype-native libpng-native jpeg-native"
> > DEPENDS = "freetype libpng jpeg expat gtk+"
> >
> > Interestingly changing this to _class-native fixes the problem.
> 
> Strangely, the answer as to what might be wrong occurred to me in the
> shower this morning. We should try changing:
> 
> native.bbclass:    e.data.setVar("OVERRIDES", e.data.getVar("OVERRIDES", False) + ":virtclass-native")
> 
> to
> 
> e.data.setVar("FOO", "virtclass-native")
> e.data.setVar("OVERRIDES", e.data.getVar("OVERRIDES", False) + ":${FOO}")
> 
> and if that makes things work, its the override caching mechanism that
> is bust for direct changes to OVERRIDES which don't use variable
> indirection (most do).
> 
> If that is the case, a fix shouldn't be hard.

Its actually much simpler than this. DEPENDS is evaluated in
native_virtclass_handler(e):28 [map_dependencies] which is before
virtclass-native is added to OVERRIDES. The act of setting the DEPENDS
variable wipes out any other overrides which may not have been applied
to that point. The fixes are:

a) Move the virtclass-native addition to OVERRIDES to earlier in the
function
b) Change meta-oe use of virtclass -> class
c) Drop use of virtclass-native and virtclass-nativesdk entirely (only
multilib really makes sense now).

Cheers,

Richard





^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: dbus-test no longer built for dbus-ptest after last bitbake changes
  2015-07-14 14:21 dbus-test no longer built for dbus-ptest after last bitbake changes Martin Jansa
  2015-07-16 21:29 ` Martin Jansa
  2015-07-16 21:39 ` Richard Purdie
@ 2015-07-21  9:44 ` Richard Purdie
  2 siblings, 0 replies; 7+ messages in thread
From: Richard Purdie @ 2015-07-21  9:44 UTC (permalink / raw)
  To: Martin Jansa; +Cc: openembedded-core

On Tue, 2015-07-14 at 16:21 +0200, Martin Jansa wrote:
> I'm not 100% sure it's related to recent bitbake variable expansion
> changes, but my recent builds are failing with errors about
> dbus-ptest cannot be installed because dbus-test-ptest doesn't exist
> 
> ERROR: 
> Collected errors:
> 
>  * satisfy_dependencies_for: Cannot satisfy the following dependencies
>  * for dbus-ptest:
> 
>  * 	dbus-test-ptest * 
> 
>  * opkg_install_cmd: Cannot install package dbus-ptest.
> 
> It's using a bit strange construct to add it to RDEPENDS:
> meta/recipes-core/dbus/dbus.inc:RDEPENDS_dbus-ptest_class-target =
> "dbus-test-ptest"
> 
> but checking cooker log shows that dbus-test
> (meta/recipes-core/dbus/dbus-test_1.8.18.bb) wasn't built at all, only
> dbus-test message is from opkg error and this QA error from dbus itself:
> 
> NOTE: recipe dbus-1.8.18-r0: task do_package_write_ipk: Started
> WARNING: QA Issue: dbus-ptest rdepends on dbus-test-ptest, but it isn't
> a build dependency? [build-deps]
> 
> Any ideas?

I've confirmed this is a bug in the bitbake data store changes. The fix
is to replace a copy.copy() with a copy.deepcopy(). I'll sort out
patches as soon as I can although I'm travelling a bit this week. Also
need to write a testcase for it.

Cheers,

Richard



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-07-21 10:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-14 14:21 dbus-test no longer built for dbus-ptest after last bitbake changes Martin Jansa
2015-07-16 21:29 ` Martin Jansa
2015-07-16 22:22   ` Burton, Ross
2015-07-17 12:01     ` Richard Purdie
2015-07-21  9:11       ` Richard Purdie
2015-07-16 21:39 ` Richard Purdie
2015-07-21  9:44 ` Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox