[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


Re: [yocto] net-snmp_5.8.bb failed to compile

2018-08-29 Thread Simon Chamlian
Replacing 'filter'  by 'contains' will do the trick (will compile)

- PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}"
+PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', 'ipv6',
'', d)}"


Note that I get the following warning:

WARNING: net-snmp-5.8-r0 do_package_qa: QA Issue: net-snmp-client rdepends
on libpcap, but it isn't a build dependency, missing libpcap in DEPENDS or
PACKAGECONFIG? [build-deps]


S.


On Tue, Aug 28, 2018 at 4:24 PM, Simon Chamlian 
wrote:

> Will the following method work?
>
> yocto-layer create openembedded*2*
>
> and add the path in conf/bblayers.conf
>
> By doing this, I will have
> openembedded   where  net-snmp version 5.7.3 resides
> openembedded*2*  where  net-snmp version 5.8   resides
>
>
> Then issuing bitbake net-snmp it will take the 5.8?
>
>
>
>
>
> On Tue, Aug 28, 2018 at 2:32 PM, Simon Chamlian 
> wrote:
>
>> How can I avoid mixing branches.
>>
>> I already have a meta-openembedded layer, which supports net-snmp_5.7.3
>> (which compiles but I want to update).
>>
>> Now I cloned a new meta-openembedded layer, which as net-snmp_5.8.
>>
>> How can I merge the layers (meta-openembedded that I have and the new
>> cloned one)?
>>
>>
>>
>>
>>
>>
>> On Tue, Aug 28, 2018 at 11:43 AM, Martin Jansa 
>> wrote:
>>
>>> Follow the READMEs and don't mix layers from different branches.
>>>
>>> You need to checkout all repositories with layers from the same branch
>>> to be compatible. Now you're mixing newer meta-oe branch with older oe-core
>>> branch which doesn't have bb.utils.filter function yet.
>>>
>>> On Tue, Aug 28, 2018 at 5:17 PM Simon Chamlian 
>>> wrote:
>>>
>>>>
>>>> Hi,
>>>>
>>>> Just download  net-snmp_5.8.bb but it failed to compile:
>>>>
>>>>
>>>> $ bitbake net-snmp
>>>> Loading cache: 100% |#
>>>> 
>>>> ###|
>>>> Time: 0:00:01
>>>> Loaded 3093 entries from dependency cache.
>>>> *ERROR:* ExpansionError during parsing /opt/PHYTEC_BSPs/yocto_imx7/so
>>>> urces/meta-openembedded/meta-networking/recipes-protocols/net-snmp/
>>>> net-snmp_5.8.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_yo
>>>> cto_imx7_sources_poky_meta_classes_base_bbclass(d=>>> object at 0x7fe0ee311be0>):
>>>>  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="${@bb.utils.filter('DISTRO_FEATURES',
>>>> 'ipv6', d)}", 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="${
>>>> @bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}",
>>>> varname='PACKAGECONFIG'):
>>>>  except Exception as exc:
>>>> >raise ExpansionError(varname, s, exc) from exc
>>>>
>>>> bb.data_smart.ExpansionError: Failure expanding variable PACKAGECONFIG,
>>>> expression was ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} which
>>>> triggered exception AttributeError: module 'bb.utils' has no attribute
>>>> 'filter'
>>>>
>>>>
>>>> Summary: There was 1 ERROR message shown, returning a non-zero exit
>>>> code.
>>>> $
>>>>
>>>> Any hints would be greatly appreciated.
>>>>
>>>> S
>>>>
>>>>
>>>>
>>>> --
>>>> ___
>>>> yocto mailing list
>>>> yocto@yoctoproject.org
>>>> https://lists.yoctoproject.org/listinfo/yocto
>>>>
>>>
>>
>
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] net-snmp_5.8.bb failed to compile

2018-08-28 Thread Simon Chamlian
Will the following method work?

yocto-layer create openembedded*2*

and add the path in conf/bblayers.conf

By doing this, I will have
openembedded   where  net-snmp version 5.7.3 resides
openembedded*2*  where  net-snmp version 5.8   resides


Then issuing bitbake net-snmp it will take the 5.8?





On Tue, Aug 28, 2018 at 2:32 PM, Simon Chamlian 
wrote:

> How can I avoid mixing branches.
>
> I already have a meta-openembedded layer, which supports net-snmp_5.7.3
> (which compiles but I want to update).
>
> Now I cloned a new meta-openembedded layer, which as net-snmp_5.8.
>
> How can I merge the layers (meta-openembedded that I have and the new
> cloned one)?
>
>
>
>
>
>
> On Tue, Aug 28, 2018 at 11:43 AM, Martin Jansa 
> wrote:
>
>> Follow the READMEs and don't mix layers from different branches.
>>
>> You need to checkout all repositories with layers from the same branch to
>> be compatible. Now you're mixing newer meta-oe branch with older oe-core
>> branch which doesn't have bb.utils.filter function yet.
>>
>> On Tue, Aug 28, 2018 at 5:17 PM Simon Chamlian 
>> wrote:
>>
>>>
>>> Hi,
>>>
>>> Just download  net-snmp_5.8.bb but it failed to compile:
>>>
>>>
>>> $ bitbake net-snmp
>>> Loading cache: 100% |#
>>> 
>>> ###|
>>> Time: 0:00:01
>>> Loaded 3093 entries from dependency cache.
>>> *ERROR:* ExpansionError during parsing /opt/PHYTEC_BSPs/yocto_imx7/so
>>> urces/meta-openembedded/meta-networking/recipes-protocols/net-snmp/
>>> net-snmp_5.8.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_yo
>>> cto_imx7_sources_poky_meta_classes_base_bbclass(d=>> object at 0x7fe0ee311be0>):
>>>  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="${@bb.utils.filter('DISTRO_FEATURES',
>>> 'ipv6', d)}", 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="${
>>> @bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}",
>>> varname='PACKAGECONFIG'):
>>>  except Exception as exc:
>>> >raise ExpansionError(varname, s, exc) from exc
>>>
>>> bb.data_smart.ExpansionError: Failure expanding variable PACKAGECONFIG,
>>> expression was ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} which
>>> triggered exception AttributeError: module 'bb.utils' has no attribute
>>> 'filter'
>>>
>>>
>>> Summary: There was 1 ERROR message shown, returning a non-zero exit code.
>>> $
>>>
>>> Any hints would be greatly appreciated.
>>>
>>> S
>>>
>>>
>>>
>>> --
>>> ___
>>> yocto mailing list
>>> yocto@yoctoproject.org
>>> https://lists.yoctoproject.org/listinfo/yocto
>>>
>>
>
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] net-snmp_5.8.bb failed to compile

2018-08-28 Thread Simon Chamlian
How can I avoid mixing branches.

I already have a meta-openembedded layer, which supports net-snmp_5.7.3
(which compiles but I want to update).

Now I cloned a new meta-openembedded layer, which as net-snmp_5.8.

How can I merge the layers (meta-openembedded that I have and the new
cloned one)?






On Tue, Aug 28, 2018 at 11:43 AM, Martin Jansa 
wrote:

> Follow the READMEs and don't mix layers from different branches.
>
> You need to checkout all repositories with layers from the same branch to
> be compatible. Now you're mixing newer meta-oe branch with older oe-core
> branch which doesn't have bb.utils.filter function yet.
>
> On Tue, Aug 28, 2018 at 5:17 PM Simon Chamlian 
> wrote:
>
>>
>> Hi,
>>
>> Just download  net-snmp_5.8.bb but it failed to compile:
>>
>>
>> $ bitbake net-snmp
>> Loading cache: 100% |#
>> 
>> ###|
>> Time: 0:00:01
>> Loaded 3093 entries from dependency cache.
>> *ERROR:* ExpansionError during parsing /opt/PHYTEC_BSPs/yocto_imx7/
>> sources/meta-openembedded/meta-networking/recipes-protocols/net-snmp/
>> net-snmp_5.8.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=> 0x7fe0ee311be0>):
>>  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="${@bb.utils.filter('DISTRO_FEATURES',
>> 'ipv6', d)}", 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="${@bb.utils.filter('DISTRO_FEATURES',
>> 'ipv6', d)}", varname='PACKAGECONFIG'):
>>  except Exception as exc:
>> >raise ExpansionError(varname, s, exc) from exc
>>
>> bb.data_smart.ExpansionError: Failure expanding variable PACKAGECONFIG,
>> expression was ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} which
>> triggered exception AttributeError: module 'bb.utils' has no attribute
>> 'filter'
>>
>>
>> Summary: There was 1 ERROR message shown, returning a non-zero exit code.
>> $
>>
>> Any hints would be greatly appreciated.
>>
>> S
>>
>>
>>
>> --
>> ___
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>>
>
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] net-snmp_5.8.bb failed to compile

2018-08-28 Thread Simon Chamlian
Hi,

Just download  net-snmp_5.8.bb but it failed to compile:


$ bitbake net-snmp
Loading cache: 100%
||
Time: 0:00:01
Loaded 3093 entries from dependency cache.
*ERROR:* ExpansionError during parsing
/opt/PHYTEC_BSPs/yocto_imx7/sources/meta-openembedded/meta-networking/recipes-protocols/net-snmp/
net-snmp_5.8.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="${@bb.utils.filter('DISTRO_FEATURES',
'ipv6', d)}", 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="${@bb.utils.filter('DISTRO_FEATURES', 'ipv6',
d)}", varname='PACKAGECONFIG'):
 except Exception as exc:
>raise ExpansionError(varname, s, exc) from exc

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


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

Any hints would be greatly appreciated.

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


Re: [yocto] How to pass compilation options from local.conf?

2018-08-07 Thread Simon Chamlian
Hi,

The manual is quite confusing:

https://www.yoctoproject.org/docs/latest/ref-manual/ref-manual.html#var-PACKAGECONFIG

There are several methods to pass compilation options to a package from
*local.conf*:

PACKAGECONFIG[f1]

or

PACKAGECONFIG_append_pn-*recipename*

or
PACKAGECONFIG_CONFARGS

or
COMMON_EXTRA_OECONF_append_pn-*recipename*



*Which one to use?*

Say for extra compilation options for php from  *local.conf* , do I use*?*

PACKAGECONFIG[php]="--enable-ftp --enable-sysvshm --enable-sysvmsg
--enable-sysvsem --enable-debug"
or
PACKAGECONFIG_append_pn-php = "--enable-ftp --enable-sysvshm
--enable-sysvmsg --enable-sysvsem --enable-debug"
or
COMMON_EXTRA_OECONF_append_pn-php = "--enable-ftp --enable-sysvshm
--enable-sysvmsg --enable-sysvsem --enable-debug"


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


Re: [yocto] Removing syslogd form busybox

2018-07-30 Thread Simon Chamlian
So what you are saying is I need to update busybox to be able to remove
syslog from it?

Also I noticed 2 syslogd:
/sbin/syslogd
/usr/lib/opkg/alternatives/syslogd

/sbin/syslogd is a link to busybox.

What is /usr/lib/opkg/alternatives/syslogd   ?



On Fri, Jul 27, 2018 at 4:47 PM, Andre McCurdy  wrote:

> On Fri, Jul 27, 2018 at 1:07 PM, Simon Chamlian 
> wrote:
> > Hi,
> >
> > When I removing syslogd from busybox, I can compile with no error
> >
> > $ bitbake -c compile busybox
> > Loading cache: 100% || Time: 0:00:01
> > Loaded 3082 entries from dependency cache.
> > WARNING: No bb files matched BBFILE_PATTERN_phytec
> > '^/opt/PHYTEC_BSPs/yocto_imx7/sources/meta-phytec/common/'
> > NOTE: Resolving any missing task queue dependencies
> >
> > Build Configuration:
> > BB_VERSION= "1.32.0"
> > BUILD_SYS = "x86_64-linux"
> > NATIVELSBSTRING   = "Ubuntu-16.04"
> > TARGET_SYS= "arm-poky-linux-gnueabi"
> > MACHINE   = "imx7d-phyboard-zeta-001"
> > DISTRO= "fsl-imx-x11"
> > DISTRO_VERSION= "4.9.11-1.0.0"
> > TUNE_FEATURES = "arm armv7ve vfp  neoncallconvention-hard
> > cortexa7"
> > TARGET_FPU= "hard"
> > meta
> > meta-poky = "HEAD:78890ea22750804e3e9113e76f7ca3d7234c8342"
> > meta-oe
> > meta-multimedia
> > meta-webserver= "HEAD:fe5c83312de11e80b85680ef237f8acb04b4b26e"
> > meta-freescale= "HEAD:a398b50b7fc084a9e68cc3000c218d5028522a25"
> > meta-freescale-3rdparty = "HEAD:68314612e236cab1da82d72a0da626
> 35a3523f84"
> > meta-freescale-distro = "HEAD:cd5c7a2539f40004f74126e9fdf08254fd9a6390"
> > meta-bsp
> > meta-sdk  = "HEAD:daba3340ecd8b358e0c6c415baeee0fcae95c525"
> > meta-browser  = "HEAD:10f6e3778d823ee1be106c126216c6f941088fbf"
> > meta-gnome
> > meta-networking
> > meta-python
> > meta-filesystems  = "HEAD:fe5c83312de11e80b85680ef237f8acb04b4b26e"
> > meta-qt5  = "HEAD:ff073f04109900fc07bf81e2f1df63c626caf342"
> > meta-phytec
> > meta-phytec-fsl   = "HEAD:f9897a4e06f43184a71d315cec4a412a28baa59b"
> >
> > WARNING:
> > /opt/PHYTEC_BSPs/yocto_imx7/sources/poky/meta/recipes-
> core/busybox/busybox_1.24.1.bb.do_compile
> > is tainted from a forced run
> > | ETA:  0:00:01
> > Initialising tasks: 100%
> > |###
> 
> |
> > Time: 0:00:01
> > NOTE: Executing SetScene Tasks
> > NOTE: Executing RunQueue Tasks
> > NOTE: Tasks Summary: Attempted 234 tasks of which 232 didn't need to be
> > rerun and all succeeded.
> >
> > Summary: There were 2 WARNING messages shown.
> >
> >
> > When I build my image for my machine, I am getting the following error:
> >
> >
> > WARNING: busybox-1.24.1-r0 do_package: busybox: alternative target
> > (/etc/syslog.conf or /etc/syslog.conf.busybox) does not exist,
> skipping...
> > WARNING: busybox-1.24.1-r0 do_package: busybox: NOT adding alternative
> > provide /etc/syslog.conf: /etc/syslog.conf.busybox does not exist
> > ERROR: busybox-1.24.1-r0 do_package: SYSTEMD_SERVICE_busybox-syslog value
> > busybox-syslog.service does not exist
> > ERROR: busybox-1.24.1-r0 do_package: Function failed:
> > systemd_populate_packages
> > ERROR: Logfile of failure stored in:
> > /opt/PHYTEC_BSPs/yocto_imx7/build/tmp/work/cortexa7hf-
> neon-poky-linux-gnueabi/busybox/1.24.1-r0/temp/log.do_package.30442
> > ERROR: Task
> > (/opt/PHYTEC_BSPs/yocto_imx7/sources/poky/meta/recipes-
> core/busybox/busybox_1.24.1.bb:do_package)
> > failed with exit code '1'
> >
> > Any hints?
>
> It looks like you're using morty, which pre-dates busybox syslog
> "officially" being made optional:
>
>   http://git.openembedded.org/openembedded-core/commit/?id=
> 9732a2ba2edf2607e61ae4fe0d65a02b7918cfe7
>
> If you can't update to a newer release you could try backporting the
> above commit.
>
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Removing syslogd form busybox

2018-07-27 Thread Simon Chamlian
Hi,

When I removing syslogd from busybox, I can compile with no error

$ bitbake -c compile busybox
Loading cache: 100% || Time: 0:00:01
Loaded 3082 entries from dependency cache.
WARNING: No bb files matched BBFILE_PATTERN_phytec
'^/opt/PHYTEC_BSPs/yocto_imx7/sources/meta-phytec/common/'
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION= "1.32.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-16.04"
TARGET_SYS= "arm-poky-linux-gnueabi"
MACHINE   = "imx7d-phyboard-zeta-001"
DISTRO= "fsl-imx-x11"
DISTRO_VERSION= "4.9.11-1.0.0"
TUNE_FEATURES = "arm armv7ve vfp  neon
callconvention-hardcortexa7"
TARGET_FPU= "hard"
meta
meta-poky = "HEAD:78890ea22750804e3e9113e76f7ca3d7234c8342"
meta-oe
meta-multimedia
meta-webserver= "HEAD:fe5c83312de11e80b85680ef237f8acb04b4b26e"
meta-freescale= "HEAD:a398b50b7fc084a9e68cc3000c218d5028522a25"
meta-freescale-3rdparty = "HEAD:68314612e236cab1da82d72a0da62635a3523f84"
meta-freescale-distro = "HEAD:cd5c7a2539f40004f74126e9fdf08254fd9a6390"
meta-bsp
meta-sdk  = "HEAD:daba3340ecd8b358e0c6c415baeee0fcae95c525"
meta-browser  = "HEAD:10f6e3778d823ee1be106c126216c6f941088fbf"
meta-gnome
meta-networking
meta-python
meta-filesystems  = "HEAD:fe5c83312de11e80b85680ef237f8acb04b4b26e"
meta-qt5  = "HEAD:ff073f04109900fc07bf81e2f1df63c626caf342"
meta-phytec
meta-phytec-fsl   = "HEAD:f9897a4e06f43184a71d315cec4a412a28baa59b"

WARNING:
/opt/PHYTEC_BSPs/yocto_imx7/sources/poky/meta/recipes-core/busybox/busybox_1.24.1.bb.do_compile
is tainted from a forced
run| ETA:
0:00:01
Initialising tasks: 100%
|###|
Time: 0:00:01
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 234 tasks of which 232 didn't need to be
rerun and all succeeded.

Summary: There were 2 WARNING messages shown.


When I build my image for my machine, I am getting the following error:


WARNING: busybox-1.24.1-r0 do_package: busybox: alternative target
(/etc/syslog.conf or /etc/syslog.conf.busybox) does not exist, skipping...
WARNING: busybox-1.24.1-r0 do_package: busybox: NOT adding alternative
provide /etc/syslog.conf: /etc/syslog.conf.busybox does not exist
ERROR: busybox-1.24.1-r0 do_package: SYSTEMD_SERVICE_busybox-syslog value
busybox-syslog.service does not exist
ERROR: busybox-1.24.1-r0 do_package: Function failed:
systemd_populate_packages
ERROR: Logfile of failure stored in:
/opt/PHYTEC_BSPs/yocto_imx7/build/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/busybox/1.24.1-r0/temp/log.do_package.30442
ERROR: Task
(/opt/PHYTEC_BSPs/yocto_imx7/sources/poky/meta/recipes-core/busybox/busybox_1.24.1.bb:do_package)
failed with exit code '1'

Any hints?

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


Re: [yocto] net-snmp_5.7.3.bbappend

2018-07-26 Thread Simon Chamlian
Hi,

I created a bbappend in the same directory where *net-snmp_5.7.3.bb
* resides:


/sources/meta-openembedded/meta-networking/recipes-protocols/net-snmp$ *cat
net-snmp_5.7.3.bbappend*



EXTRA_OECONF += " --enable-mini-agent --with-default-snmp-version=3
--disable-debugging \
  --with-logfile='/var/log/snmp' --with-transports='UDP
TCP' --enable-blumenthal-aes  "






did

$ *bitbake -c compile net-snmp*
$ *MACHINE=imx7d-phyboard-zeta-**001 bitbake  fsl-image-pk-imx-15*


Does not seem to make any difference. The manifest files for the rootfs are
identical with the previous build without the bbappend.


Any hints?

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


Re: [yocto] How to enable http2 for Apache?

2018-07-25 Thread Simon Chamlian
Trial and errors.

Is there another way of enabling http2  ?

In general, if we wish to add flags to a compilation of a package, what is
the proper way of doing it?
Changing the local.conf or the recipe of a given package?





On Wed, Jul 25, 2018 at 3:26 PM, Andre McCurdy  wrote:

> On Wed, Jul 25, 2018 at 11:17 AM, Simon Chamlian 
> wrote:
> > Hi,
> >
> > What is the best way to enable http2 for Apache?
> >
> > Do I add
> >
> > COMMON_EXTRA_OECONF_append_pn-apache2 = "--enable-http2"
> >
> > in local.conf ?
>
> No.
>
> Wondering what process you went through to arrive at that?
>
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] How to enable http2 for Apache?

2018-07-25 Thread Simon Chamlian
Hi,


What is the best way to enable http2 for Apache?

Do I add

COMMON_EXTRA_OECONF_append_pn-apache2 = "--enable-http2"

in local.conf ?

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


Re: [yocto] how to download a recipe

2018-07-23 Thread Simon Chamlian
So I cloned the git meta-networking.

Copied the whole
meta-openembedded/meta-networking/recipes-devtools/grpc

into my layer.  Ran bitbake and I get the following errors:


$ bitbake grpc
Loading cache: 100%
|#|
Time: 0:00:01
Loaded 3076 entries from dependency cache.
Parsing recipes: 100%
|###|
Time: 0:00:01
Parsing of 2334 .bb files complete (2333 cached, 1 parsed). 3064 targets,
288 skipped, 2 masked, 0 errors.
WARNING: No bb files matched BBFILE_PATTERN_phytec
'^/opt/PHYTEC_BSPs/yocto_imx7/sources/meta-phytec/common/'
NOTE: Resolving any missing task queue dependencies
ERROR: Nothing PROVIDES 'gflags-native' (but
virtual:native:/opt/PHYTEC_BSPs/yocto_imx7/sources/meta-openembedded/meta-networking/recipes-devtools/grpc/
grpc_1.8.5.bb DEPENDS on or otherwise requires it). Close matches:
  glslang-native
  slang-native
  lua-native
ERROR: Required build target 'grpc' has no buildable providers.
Missing or unbuildable dependency chain was: ['grpc', 'grpc-native',
'gflags-native']

Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
$


There is no instructions on how we can compile this grpc into image?

Thanks,
S




On Tue, Jul 17, 2018 at 3:11 AM, Paul Eggleton <
paul.eggle...@linux.intel.com> wrote:

> On Thursday, 12 July 2018 7:51:35 PM CEST Burton, Ross wrote:
> > On 12 July 2018 at 18:49, Simon Chamlian  wrote:
> > > for grpc, there are 2 of them:
> > >
> > > http://layers.openembedded.org/layerindex/recipe/72419/
> > > Layer meta-oe
> > > <http://layers.openembedded.org/layerindex/branch/master/
> layer/meta-oe/>
> > > (master branch)
> >
> > That's a bug in the tool, as meta-networking is a sublayer of meta-oe.
> If
> > you look at the paths, they're the same file.
>
> That is indeed a bug in the layer index update script - at some point in
> the
> past the recipe was moved and the move wasn't handled properly. I have a
> fix
> and will be sending it shortly.
>
> Cheers,
> Paul
>
> --
>
> Paul Eggleton
> Intel Open Source Technology Centre
>
>
>
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] To remove packages from busybox

2018-07-23 Thread Simon Chamlian
Hi,

In order to remove package from busybox, I used:

$ bitbake  -c menuconfig busybox

Under 'System Logging Itilities -->' I unchecked *syslogd*

Then ran
$ bitbake   busybox

and I get the following error:

WARNING: busybox-1.24.1-r0 do_package: busybox: alternative target
(/etc/syslog.conf or /etc/syslog.conf.busybox) does not exist, skipping...
WARNING: busybox-1.24.1-r0 do_package: busybox: NOT adding alternative
provide /etc/syslog.conf: /etc/syslog.conf.busybox does not exist

ERROR: busybox-1.24.1-r0 do_package: SYSTEMD_SERVICE_busybox-syslog value
busybox-syslog.service does not exist


ERROR: busybox-1.24.1-r0 do_package: Function failed:
systemd_populate_packages


ERROR: Logfile of failure stored in:
/opt/PHYTEC_BSPs/yocto_imx7/build/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/busybox/1.24.1-r0/temp/log.do_package.30881

ERROR: Task
(/opt/PHYTEC_BSPs/yocto_imx7/sources/poky/meta/recipes-core/busybox/busybox_1.24.1.bb:do_package)
failed with exit code '1'

NOTE: Tasks Summary: Attempted 711 tasks of which 705 didn't need to be
rerun and 1 failed.



What am I doing wrong?

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


[yocto] net-snmp 5.8 recipe

2018-07-19 Thread Simon Chamlian
Hi,

Is there any recipe for the new snmp release 5.8 ?

I took the net-snmp_5.7.3.bb file and renamed it net-snmp_5.8.bb
removed the patches and re-entered the checksum but it still giving me
errors.

ERROR: net-snmp-5.8-r0 do_configure: This autoconf log indicates errors, it
looked at host include and/or library paths while determining system
capabilities.
Rerun configure task after fixing this.
ERROR: net-snmp-5.8-r0 do_configure: Function failed: do_qa_configure
ERROR: Logfile of failure stored in:
/opt/PHYTEC_BSPs/yocto_imx7/build/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/net-snmp/5.8-r0/temp/log.do_configure.394
ERROR: Task
(/opt/PHYTEC_BSPs/yocto_imx7/sources/meta-openembedded/meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb:do_configure)
failed with exit code '1'

See attached for the recipe.

Thanks,
S


net-snmp_5.8.bb
Description: Binary data
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] how to download a recipe

2018-07-12 Thread Simon Chamlian
for grpc, there are 2 of them:

http://layers.openembedded.org/layerindex/recipe/72419/
Layer meta-oe
<http://layers.openembedded.org/layerindex/branch/master/layer/meta-oe/>
(master branch)


and
http://layers.openembedded.org/layerindex/recipe/86424/
Layer meta-networking
<http://layers.openembedded.org/layerindex/branch/master/layer/meta-networking/>
(master branch)


which one do I choose?



On Thu, Jul 12, 2018 at 12:42 PM, Burton, Ross 
wrote:

> Using postgresql as an example, searching for it will take you to the
> recipe page:
>
> http://layers.openembedded.org/layerindex/recipe/5558/
>
> This tells you that the recipe is in the meta-oe layer, so click on that:
>
> http://layers.openembedded.org/layerindex/branch/master/layer/meta-oe/
>
> That tells you where the layer is hosted:
>
> http://cgit.openembedded.org/meta-openembedded
>
> You use git to clone that layer and add it to BBLAYERS.
>
> Ross
>
> On 12 July 2018 at 17:19, Simon Chamlian  wrote:
> > Hi,
> >
> > I simple question.
> >
> > How do you download a recipe from ?
> >
> > http://layers.openembedded.org/layerindex/branch/master/recipes/
> >
> > ??
> >
> > Do I copy past the bb into a text file or there is a way to download the
> > actual file?
> >
> > Thanks,
> > S
> >
> >
> >
> >
> > --
> > ___
> > yocto mailing list
> > yocto@yoctoproject.org
> > https://lists.yoctoproject.org/listinfo/yocto
> >
>
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] how to download a recipe

2018-07-12 Thread Simon Chamlian
Hi,

I simple question.

How do you download a recipe from ?

http://layers.openembedded.org/layerindex/branch/master/recipes/

??

Do I copy past the bb into a text file or there is a way to download the
actual file?

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


[yocto] Which bb is chosen when several versions are available

2018-07-11 Thread Simon Chamlian
Hi,

In the BSP yocto image, I have 2 recipes:

/sources/meta-openembedded/meta-oe/recipes-devtools/php

drwxrwxr-x 2 jay jay  4096 Jun 28 09:48 php
-rw-rw-r-- 1 jay jay   232 Jun 28 09:48 php_5.5.38.bb
drwxrwxr-x 2 jay jay  4096 Jun 28 09:48 php-5.6.26
-rw-rw-r-- 1 jay jay   291 Jun 28 09:48 php_5.6.26.bb
-rw-rw-r-- 1 jay jay 11980 Jun 28 09:48 php.inc


If I add in my image recipe:
CORE_IMAGE_EXTRA_INSTALL += " \
php \
"

which version will be included?

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


Re: [yocto] Keeping and modifying Source code in Yocto

2018-07-11 Thread Simon Chamlian
I am getting the following error using devtool:

$ devtool add help
ERROR: Layer directory '/home/jay/sources/poky/meta' does not exist! Please
check BBLAYERS in /home/jay/build/conf/bblayers.conf

$ whereis devtool
devtool: /opt/PHYTEC_BSPs/yocto_imx7/sources/poky/scripts/devtool

The paths are completely wrong.

Any hints?

Thanks,
S






On Tue, Jul 10, 2018 at 4:27 AM, ChenQi  wrote:

> On 07/10/2018 02:18 PM, Paul Eggleton wrote:
>
>> On Tuesday, 10 July 2018 3:32:56 AM CEST ChenQi wrote:
>>
>>> I usually use the following steps when I need to modify source for some
>>> purpose.
>>>
>>> 1. bitbake A (or at least bitbake A -c configure)
>>> *2. cd tmp/work/x/A/**
>>> **3. make the modification*
>>> 4. bitbake A -c compile -f
>>> 5. bitbake A
>>>
>>> If you find the modification useful, make a patch from it.
>>>
>> This is the old way of doing it which can under some circumstances result
>> in
>> you losing your changes to the source tree, since the sources under
>> tmp/work/
>> are only ever intended to be there temporarily. Devtool (as recommend by
>> others on this thread) is designed to enable this workflow in a much safer
>> manner.
>>
>> Cheers,
>> Paul
>>
>> Thanks Paul. I'll turn to use devtool.
>
> Best Regards,
>
> Chen Qi
>
>
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Keeping and modifying Source code in Yocto

2018-07-06 Thread Simon Chamlian
Hi,

Is there a way to keep the source code of a package to be able to modify it
and then compile?

For example, with LTIB ( Linux Target Image Builder ), it was possible with
a command to extract the source code from a package, make modifications and
then re-compile?

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


Re: [yocto] porting gRPC into Yocto

2018-07-05 Thread Simon Chamlian
Hi,

After reading several documents, there seems to be several methods to
add/remove packages from a build.
I just want to make sure I am using the correct method that falls into
YOCTO architecture.

In local.conf file, I can use:

IMAGE_INSTALL_remove = " dropbear"
IMAGE_INSTALL_append = " openssh net-snmp "

To remove dropbear and add openssh and net-snmp into image.

Is this the right way of doing it?  Do I use 'DISTRO_FEATURES_remove'  or
simply ' IMAGE_INSTALL_remove' ?

Does Yocto fetch *.bb files and source files just by adding these commands
in local.conf or I need more steps to do?

Thanks,
S.













On Thu, Jun 21, 2018 at 3:05 PM, Stephen Lawrence <
stephen.lawre...@renesas.com> wrote:

> >From: yocto-boun...@yoctoproject.org [mailto:yocto-bounces@
> yoctoproject.org] On Behalf Of Simon Chamlian
> >Sent: 21 June 2018 19:50
> >To: Rudolf J Streif 
> >Cc: yocto@yoctoproject.org
> >Subject: Re: [yocto] porting gRPC into Yocto
> >
> >Thank you everyone for such a prompt response.
> >
> >What do I do with the http://cgit.openembedded.org/
> meta-openembedded/tree/meta-networking/recipes-devtools/
> grpc/grpc_1.8.5.bb?h=master recipe file (sorry >for my ignorance, it has
> been 1 day I am using Yocto)?
> >
> >Simon
>
> Hi Simon,
>
> The Yocto Project online documentation set [1] contains some useful
> development manuals that guide you through some
> common use cases for using Yocto. Such as adding a package to an existing
> image.
>
> There have also been some good books written on embedded development with
> Yocto. A more recent one is
> "Embedded Linux Systems with the Yocto Project" by Rudolf J. Streif from
> Prentice Hall. You'll easily get a return on the
> investment.
>
> [1] https://www.yoctoproject.org/docs/
>
> Regards
>
> Steve
>
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] porting gRPC into Yocto

2018-06-25 Thread Simon Chamlian
Hi,


I just started using Yocto.

Is there a detailed procedure on how I can port gRPC (for C or C++) into a
Yocto project?

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


Re: [yocto] porting gRPC into Yocto

2018-06-21 Thread Simon Chamlian
Thank you everyone for such a prompt response.

What do I do with the grpc_1.8.5.bb
<http://cgit.openembedded.org/meta-openembedded/tree/meta-networking/recipes-devtools/grpc/grpc_1.8.5.bb?h=master>
recipe file (sorry for my ignorance, it has been 1 day I am using Yocto)?

Simon




On Thu, Jun 21, 2018 at 2:29 PM, Rudolf J Streif 
wrote:

> Hi Simon,
>
> Thank you for using the Yocto Project and reaching out.
>
> For any open-source component that you would like to add to the Yocto
> Project I recommend that you first have a look at
> http://layers.openembedded.org/layerindex/branch/master/recipes/ and
> enter the name of the component. Chances are that somebody already did the
> work. This is indeed the case with gRPC: http://layers.openembedded.
> org/layerindex/recipe/72419/.
>
> If you cannot find a recipe for the component then you should look at how
> the component is built. Most C/C++ components use some sort of a build
> system such as GNU Autotools or CMake. The Yocto Project documentation has
> sections for the common build systems.
>
> I hope this answers your question.
>
> Rudi
>
> On 06/21/2018 11:15 AM, Simon Chamlian wrote:
>
> Hi,
>
> I just started using Yocto.
>
> Is there a detailed procedure on how I can port gRPC (for C or C++) into a
> Yocto project?
>
> Thanks,
>
> S
>
>
>
>
>
>
>
>
> --
> Rudolf J Streif
>
>
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] porting gRPC into Yocto

2018-06-21 Thread Simon Chamlian
Hi,

I just started using Yocto.

Is there a detailed procedure on how I can port gRPC (for C or C++) into a
Yocto project?

Thanks,

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