Re: [yocto] failed to compile php_7.2.10.bb

2018-10-10 Thread Martin Jansa
On Wed, Oct 10, 2018 at 04:03:55PM -0400, Simon Chamlian wrote:
> Hi,
> 
> I tried to bitbake php_7.2.10.bb and I am getting the following error.
> 
> Did anyone tried to compile php_7.2.10.bb ?
> 
> Any clue on what the issue can be ?
> 
> bb.data_smart.ExpansionError: Failure expanding variable PACKAGECONFIG,
> expression was mysql sqlite3 imap opcache openssl
> ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6 pam', d)}  apache2 sqlite3
> pgsql  which triggered exception AttributeError: module 'bb.utils' has no
> attribute 'filter'

You're missing different versions of oe-core and meta-oe, use both from
the same branch and it will work.

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


signature.asc
Description: Digital signature
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] failed to compile php_7.2.10.bb

2018-10-10 Thread Simon Chamlian
Hi,

I tried to bitbake php_7.2.10.bb and I am getting the following error.

Did anyone tried to compile php_7.2.10.bb ?

Any clue on what the issue can be ?

*$ bitbake php*
Loading cache: 100%
|###|
Time: 0:00:01
Loaded 3104 entries from dependency cache.
ERROR: ExpansionError during parsing
/opt/PHYTEC_BSPs/yocto_imx7/sources/meta-openembedded/meta-oe/recipes-devtools/php/
php_7.2.10.bb
| ETA:  --:--:--
Traceback (most recent call last):
  File
"/opt/PHYTEC_BSPs/yocto_imx7/sources/poky/meta/classes/base.bbclass", line
375, in
__anon_656__opt_PHYTEC_BSPs_yocto_imx7_sources_poky_meta_classes_base_bbclass(d=):
 pkgconfig = (d.getVar('PACKAGECONFIG', True) or "").split()
>pn = d.getVar("PN", True)

  File
"/opt/PHYTEC_BSPs/yocto_imx7/sources/poky/bitbake/lib/bb/data_smart.py",
line 569, in DataSmart.getVar(var='PACKAGECONFIG', expand=True,
noweakdefault=False, parsing=False):
 def getVar(self, var, expand, noweakdefault=False, parsing=False):
>return self.getVarFlag(var, "_content", expand, noweakdefault,
parsing)

  File
"/opt/PHYTEC_BSPs/yocto_imx7/sources/poky/bitbake/lib/bb/data_smart.py",
line 737, in DataSmart.getVarFlag(var='PACKAGECONFIG', flag='_content',
expand=True, noweakdefault=False, parsing=False):
 cachename = var + "[" + flag + "]"
>value = self.expand(value, cachename)

  File
"/opt/PHYTEC_BSPs/yocto_imx7/sources/poky/bitbake/lib/bb/data_smart.py",
line 410, in DataSmart.expand(s="mysql sqlite3 imap opcache
openssl${@bb.utils.filter('DISTRO_FEATURES', 'ipv6
pam', d)}  apache2 sqlite3 pgsql ", varname='PACKAGECONFIG'):
 def expand(self, s, varname = None):
>return self.expandWithRefs(s, varname).value

  File
"/opt/PHYTEC_BSPs/yocto_imx7/sources/poky/bitbake/lib/bb/data_smart.py",
line 400, in DataSmart.expandWithRefs(s="mysql sqlite3 imap opcache
openssl${@bb.utils.filter('DISTRO_FEATURES', 'ipv6
pam', d)}  apache2 sqlite3 pgsql ", varname='PACKAGECONFIG'):
 except Exception as exc:
>raise ExpansionError(varname, s, exc) from exc

bb.data_smart.ExpansionError: Failure expanding variable PACKAGECONFIG,
expression was mysql sqlite3 imap opcache openssl
${@bb.utils.filter('DISTRO_FEATURES', 'ipv6 pam', d)}  apache2 sqlite3
pgsql  which triggered exception AttributeError: module 'bb.utils' has no
attribute 'filter'


Summary: There was 1 ERROR message shown, returning a non-zero exit code.
*$*

Thanks,
S.
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto