Luca Ceresoli d53382fcb3 qt5-ptest: fix build with yocto < 2.3 (pyro)
The expand parameter to DataSmart.getVar() defaults to True since
yocto 2.3 (pyro) [0]. Stable Yocto releases 2.2 (morty) and 2.1
(krogoth) had no default value. Older, now unsupported releases
defaulted to False [1] [2].

Not passing the expand parameter here means all recipes including
qt5-ptest.inc won't build with yocto 2.2 and 2.1 with this error
message:

  $ bitbake qtxmlpatterns -vfc populate_sysroot
  [...]
  ERROR: Error executing a python function in exec_python_func() autogenerated:

  The stack trace of python calls that resulted in this exception/failure was:
  File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
       0001:
   *** 0002:do_populate_sysroot(d)
       0003:
  File: '[...]/poky/meta/classes/staging.bbclass', lineno: 227, function: do_populate_sysroot
       0223:        p = p.replace("/", "_")
       0224:        with open(provdir + p, "w") as f:
       0225:            f.write(pn)
       0226:}
   *** 0227:
       0228:do_populate_sysroot[vardeps] += "${SYSROOT_PREPROCESS_FUNCS}"
       0229:do_populate_sysroot[vardepsexclude] += "MULTI_PROVIDER_WHITELIST"
       0230:
       0231:SSTATETASKS += "do_populate_sysroot"
  Exception: TypeError: getVar() missing 1 required positional argument: 'expand'

  DEBUG: Python function do_populate_sysroot finished
  ERROR: Function failed: do_populate_sysroot

Fixing this in a user layer requires duplicating the entire
do_populate_sysroot_append() in the .bbappend of all packages
including qt5-ptest.inc, i.e. currently qtdeclarative, qtquick1 and
qtxmlpatterns.

Avoid the hassle for those users by explicitly passing expand=True.

[0] http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=2631c375b8a025ee2e4329f6d93900bb7b5dadf7
[1] http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=c7610aa353e31977c099ce574acb188a3f4219e0
[2] http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=4e5e501155a21fe64a470c626b3afe6d9748308e

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-08-08 20:44:31 +02:00
2015-12-18 13:11:42 +01:00

This layer depends on:

URI: git://github.com/openembedded/oe-core.git
branch: master
revision: HEAD

When building stuff like qtdeclarative, qtquick, qtwebkit, make sure that
you have required PACKAGECONFIG options enabled in qtbase build, see qtbase.inc
for detail.

Send pull requests to openembedded-devel@lists.openembedded.org with '[meta-qt5]' in the subject'

When sending single patches, please using something like:

git send-email -M -1 --to openembedded-devel@lists.openembedded.org --subject-prefix='meta-qt5][PATCH'

Change option '-1' to '-n' for n number of patches in series

You are encouraged to fork the mirror on github[1] to share your
patches. This is preferred for patch sets consisting of more than one
patch. Other services like gitlab, repo.or.cz or self hosted setups
are of course accepted as well, 'git fetch <remote>' works the same on
all of them. We recommend github because it is free, easy to use, has
been proven to be reliable and has a really good web GUI.

1. https://github.com/meta-qt5/meta-qt5/

meta-qt5 has Yocto Project Compatible status since 2013:
https://www.yoctoproject.org/product/meta-qt5

Main layer maintainers:
  Martin 'JaMa' Jansa <martin.jansa@gmail.com>
  Otavio Salvador <otavio@ossystems.com.br>
Description
No description provided
Readme 4.6 MiB
Languages
BitBake 95.2%
Python 4%
Roff 0.7%