[yocto] Problem to compile kernel (enable nfsd)

2013-05-29 Thread Caio
Hello,

I'm following the ELC2013 hands-on
(https://www.yoctoproject.org/sites/yoctoproject.org/files/elc2013-kernel-lab.pdf)
but with poky 9.0.

Git Branch (b15bdd842092f2335784c20b8e1b3a0ddcf7996b)

In the lab3 I'm trying to compile a kernel from master git tree.


But I'm having these trouble to enable NFSD.
-WARNING: addon feature "features/nfsd/nfsd-enable" was not found


My log:

Build Configuration:
BB_VERSION= "1.18.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-12.04"
TARGET_SYS= "i586-poky-linux"
MACHINE   = "lab3-qemux86"
DISTRO= "poky"
DISTRO_VERSION= "1.4.1"
TUNE_FEATURES = "m32 i586"
TARGET_FPU= ""
meta
meta-yocto
meta-yocto-bsp
meta-lab3-qemux86 = "dylan:3768675706462c0cc8566ead958161e77e2247e9"


NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: Function failed: do_patch (see
/home/caio/yocto/poky/lab3/tmp/work/lab3_qemux86-poky-linux/linux-yocto-custom/3.4.28+gitAUTOINC+c7788792a5e7b0d5d7f96d0766b4cb6112d47d75-r0/temp/log.do_patch.8248
for further information)
ERROR: Logfile of failure stored in:
/home/caio/yocto/poky/lab3/tmp/work/lab3_qemux86-poky-linux/linux-yocto-custom/3.4.28+gitAUTOINC+c7788792a5e7b0d5d7f96d0766b4cb6112d47d75-r0/temp/log.do_patch.8248
Log data follows:
| DEBUG: Executing shell function do_patch
| WARNING: no meta data branch found ...
| Already on 'linux-3.4.y'
| WARNING: addon feature "features/nfsd/nfsd-enable" was not found
| ERROR: required features were not found. aborting
| ERROR. Could not update linux-3.4.y
| ERROR: Function failed: do_patch (see
/home/caio/yocto/poky/lab3/tmp/work/lab3_qemux86-poky-linux/linux-yocto-custom/3.4.28+gitAUTOINC+c7788792a5e7b0d5d7f96d0766b4cb6112d47d75-r0/temp/log.do_patch.8248
for further information)
ERROR: Task 843
(/home/caio/yocto/poky/meta-lab3-qemux86/recipes-kernel/linux/linux-yocto-custom.bb,
do_patch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1618 tasks of which 1613 didn't need to
be rerun and 1 failed.
No currently running tasks (1618 of 1647)

Summary: 1 task failed:
  
/home/caio/yocto/poky/meta-lab3-qemux86/recipes-kernel/linux/linux-yocto-custom.bb,
do_patch
Summary: There was 1 ERROR message shown, returning a non-zero exit code.



I tryed configure defconf to

CONFIG_NETWORK_FILESYSTEMS=y
CONFIG_NFS_FS=y
CONFIG_NFS_DEF_FILE_IO_SIZE=4096
CONFIG_NFS_V3=y
# CONFIG_NFS_V3_ACL is not set
CONFIG_NFS_V4=y
#CONFIG_NFS_V4_1 is not set
CONFIG_ROOT_NFS=y
# CONFIG_NFS_USE_LEGACY_DNS is not set
CONFIG_NFS_USE_KERNEL_DNS=y
CONFIG_NFSD=y


The Recipe

inherit kernel
require recipes-kernel/linux/linux-yocto.inc

SRC_URI = 
"git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git;protocol=git;bareclone=1"

SRC_URI += "file://defconfig"

#SRC_URI += "file://yocto-testmod.patch"
#SRC_URI += "file://lab3.cfg"

#module_autoload_yocto-testmod = "yocto-testmod"

KBRANCH = "linux-3.4.y"

LINUX_VERSION ?= "3.4.28"
LINUX_VERSION_EXTENSION ?= "-custom"

SRCREV="${AUTOREV}"

PR = "r0"
PV = "${LINUX_VERSION}+git${SRCPV}"

COMPATIBLE_MACHINE_lab3-qemux86 = "lab3-qemux86"


There's some advice to me?

Thank you!

Regards,

Caio Pereira


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


Re: [yocto] Problem to compile kernel (enable nfsd)

2013-05-29 Thread Caio
Bruce I tested the patch but doesn't work

meta-yocto/conf/distro/poky-
lsb.conf

require conf/distro/poky.conf

DISTRO = "poky-lsb"
DISTROOVERRIDES = "poky:linuxstdbase"

DISTRO_FEATURES_append = " pam largefile opengl"
PREFERRED_PROVIDER_virtual/libx11 = "libx11"

# Ensure the kernel nfs server is enabled
KERNEL_FEATURES_append_pn-linux-yocto = " features/nfsd/nfsd-enable.scc"

After a bitbake core-image-minimal
I have the same error.

I will follow the Tom's suggestion and back the poky version.

Thank you very much!

2013/5/29 Tom Zanussi :
> On Wed, 2013-05-29 at 14:19 -0400, Bruce Ashfield wrote:
>> On 13-05-29 02:15 PM, Caio wrote:
>> > Hello,
>> >
>> > I'm following the ELC2013 hands-on
>> > (https://www.yoctoproject.org/sites/yoctoproject.org/files/elc2013-kernel-lab.pdf)
>> > but with poky 9.0.
>> >
>> > Git Branch (b15bdd842092f2335784c20b8e1b3a0ddcf7996b)
>> >
>> > In the lab3 I'm trying to compile a kernel from master git tree.
>> >
>> >
>> > But I'm having these trouble to enable NFSD.
>> > -WARNING: addon feature "features/nfsd/nfsd-enable" was not found
>> >
>>
>> There's a bug in master at the moment that is breaking linux-yocto-custom.
>>
>
> Also apparently in the dylan point release i.e post-9.0.0.
>
> Tom
>
>> I'll send it out for merge shortly.
>>
>> In the meantime, take this change:
>>
>> --- a/meta-yocto/conf/distro/poky-lsb.conf
>> +++ b/meta-yocto/conf/distro/poky-lsb.conf
>> @@ -7,6 +7,6 @@ DISTRO_FEATURES_append = " pam largefile opengl"
>>   PREFERRED_PROVIDER_virtual/libx11 = "libx11"
>>
>>   # Ensure the kernel nfs server is enabled
>> -KERNEL_FEATURES_append = " features/nfsd/nfsd-enable.scc"
>> +KERNEL_FEATURES_append_pn-linux-yocto = " features/nfsd/nfsd-enable.scc"
>>
>>
>> Bruce
>>
>> >
>> > My log:
>> >
>> > Build Configuration:
>> > BB_VERSION= "1.18.0"
>> > BUILD_SYS = "x86_64-linux"
>> > NATIVELSBSTRING   = "Ubuntu-12.04"
>> > TARGET_SYS= "i586-poky-linux"
>> > MACHINE   = "lab3-qemux86"
>> > DISTRO= "poky"
>> > DISTRO_VERSION= "1.4.1"
>> > TUNE_FEATURES = "m32 i586"
>> > TARGET_FPU    = ""
>> > meta
>> > meta-yocto
>> > meta-yocto-bsp
>> > meta-lab3-qemux86 = "dylan:3768675706462c0cc8566ead958161e77e2247e9"
>> >
>> >
>> > NOTE: Resolving any missing task queue dependencies
>> > NOTE: Preparing runqueue
>> > NOTE: Executing SetScene Tasks
>> > NOTE: Executing RunQueue Tasks
>> > ERROR: Function failed: do_patch (see
>> > /home/caio/yocto/poky/lab3/tmp/work/lab3_qemux86-poky-linux/linux-yocto-custom/3.4.28+gitAUTOINC+c7788792a5e7b0d5d7f96d0766b4cb6112d47d75-r0/temp/log.do_patch.8248
>> > for further information)
>> > ERROR: Logfile of failure stored in:
>> > /home/caio/yocto/poky/lab3/tmp/work/lab3_qemux86-poky-linux/linux-yocto-custom/3.4.28+gitAUTOINC+c7788792a5e7b0d5d7f96d0766b4cb6112d47d75-r0/temp/log.do_patch.8248
>> > Log data follows:
>> > | DEBUG: Executing shell function do_patch
>> > | WARNING: no meta data branch found ...
>> > | Already on 'linux-3.4.y'
>> > | WARNING: addon feature "features/nfsd/nfsd-enable" was not found
>> > | ERROR: required features were not found. aborting
>> > | ERROR. Could not update linux-3.4.y
>> > | ERROR: Function failed: do_patch (see
>> > /home/caio/yocto/poky/lab3/tmp/work/lab3_qemux86-poky-linux/linux-yocto-custom/3.4.28+gitAUTOINC+c7788792a5e7b0d5d7f96d0766b4cb6112d47d75-r0/temp/log.do_patch.8248
>> > for further information)
>> > ERROR: Task 843
>> > (/home/caio/yocto/poky/meta-lab3-qemux86/recipes-kernel/linux/linux-yocto-custom.bb,
>> > do_patch) failed with exit code '1'
>> > NOTE: Tasks Summary: Attempted 1618 tasks of which 1613 didn't need to
>> > be rerun and 1 failed.
>> > No currently running tasks (1618 of 1647)
>> >
>> > Summary: 1 task failed:
>> >
>> > /home/caio/yocto/poky/meta-lab3-qemux86/recipes-kernel/linux/linux-yocto-custom.bb,
>> > do_patch
>> > Summary: There was 1 ERROR message shown, returning a non-zero exit code.
>> >
>> >
>> >
>> >

Re: [yocto] Problem to compile kernel (enable nfsd)

2013-05-29 Thread Caio
bitbake core-image-minimal
Loading cache: 100%
|#|
ETA:  00:00:00
Loaded 1121 entries from dependency cache.
Parsing recipes: 100%
|###|
Time: 00:00:03
Parsing of 814 .bb files complete (813 cached, 1 parsed). 1121
targets, 37 skipped, 0 masked, 0 errors.

Build Configuration:
BB_VERSION= "1.18.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-12.04"
TARGET_SYS= "i586-poky-linux"
MACHINE   = "lab3-qemux86"
DISTRO= "poky"
DISTRO_VERSION= "1.4.1"
TUNE_FEATURES = "m32 i586"
TARGET_FPU= ""
meta
meta-yocto
meta-yocto-bsp
meta-lab3-qemux86 = "dylan:3768675706462c0cc8566ead958161e77e2247e9"

NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: Function failed: do_patch (see
/home/caio/yocto/poky/lab3/tmp/work/lab3_qemux86-poky-linux/linux-yocto-custom/3.4.28+gitAUTOINC+c7788792a5e7b0d5d7f96d0766b4cb6112d47d75-r0/temp/log.do_patch.9687
for further information)
ERROR: Logfile of failure stored in:
/home/caio/yocto/poky/lab3/tmp/work/lab3_qemux86-poky-linux/linux-yocto-custom/3.4.28+gitAUTOINC+c7788792a5e7b0d5d7f96d0766b4cb6112d47d75-r0/temp/log.do_patch.9687
Log data follows:
| DEBUG: Executing shell function do_patch
| WARNING: no meta data branch found ...
| Already on 'linux-3.4.y'
| WARNING: addon feature "features/nfsd/nfsd-enable" was not found
| ERROR: required features were not found. aborting
| ERROR. Could not update linux-3.4.y
| ERROR: Function failed: do_patch (see
/home/caio/yocto/poky/lab3/tmp/work/lab3_qemux86-poky-linux/linux-yocto-custom/3.4.28+gitAUTOINC+c7788792a5e7b0d5d7f96d0766b4cb6112d47d75-r0/temp/log.do_patch.9687
for further information)
ERROR: Task 843
(/home/caio/yocto/poky/meta-lab3-qemux86/recipes-kernel/linux/linux-yocto-custom.bb,
do_patch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1618 tasks of which 1617 didn't need to
be rerun and 1 failed.
No currently running tasks (571 of 1647)

Summary: 1 task failed:
  
/home/caio/yocto/poky/meta-lab3-qemux86/recipes-kernel/linux/linux-yocto-custom.bb,
do_patch


log.do_patch.9687
DEBUG: Executing shell function do_patch
WARNING: no meta data branch found ...
Already on 'linux-3.4.y'
WARNING: addon feature "features/nfsd/nfsd-enable" was not found
ERROR: required features were not found. aborting
ERROR. Could not update linux-3.4.y
ERROR: Function failed: do_patch (see
/home/caio/yocto/poky/lab3/tmp/work/lab3_qemux86-poky-linux/linux-yocto-custom/3.4.28+gitAUTOINC+c7788792a5e7b0d5d7f96d0766b4cb6112d47d75-r0/temp/log.do_patch.9687
for further informati


conf/bblayers.conf

# LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf
# changes incompatibly
LCONF_VERSION = "6"

BBPATH = "${TOPDIR}"
BBFILES ?= ""

BBLAYERS ?= " \
  /home/caio/yocto/poky/meta \
  /home/caio/yocto/poky/meta-yocto \
  /home/caio/yocto/poky/meta-yocto-bsp \
  /home/caio/yocto/poky/meta-lab3-qemux86 \
  "
BBLAYERS_NON_REMOVABLE ?= " \
  /home/caio/yocto/poky/meta \
  /home/caio/yocto/poky/meta-yocto \



./meta-lab3-qemux86/recipes-kernel/linux/linux-yocto-custom.bb

inherit kernel
require recipes-kernel/linux/linux-yocto.inc

SRC_URI = 
"git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git;protocol=git;bareclone=1"

SRC_URI += "file://defconfig"

SRC_URI += "file://yocto-testmod.patch"
SRC_URI += "file://lab3.cfg"

#module_autoload_yocto-testmod = "yocto-testmod"

KBRANCH = "linux-3.4.y"

LINUX_VERSION ?= "3.4.28"
LINUX_VERSION_EXTENSION ?= "-custom"

SRCREV="${AUTOREV}"

PR = "r0"
PV = "${LINUX_VERSION}+git${SRCPV}"

COMPATIBLE_MACHINE_lab3-qemux86 = "lab3-qemux86"



/meta-lab3-qemux86/recipes-kernel/linux/linux-yocto-custom/defconfig :
(full defconfig http://pastebin.com/iTtkKy3w)
Just NFS config from
CONFIG_NETWORK_FILESYSTEMS=y
CONFIG_NFS_FS=y
CONFIG_NFS_DEF_FILE_IO_SIZE=4096
CONFIG_NFS_V3=y
# CONFIG_NFS_V3_ACL is not set
CONFIG_NFS_V4=y
#CONFIG_NFS_V4_1 is not set
CONFIG_ROOT_NFS=y
# CONFIG_NFS_USE_LEGACY_DNS is not set
#CONFIG_NFS_USE_KERNEL_DNS is not set
CONFIG_NFSD=y
CONFIG_LOCKD=y
CONFIG_LOCKD_V4=y
CONFIG_NFS_COMMON=y


conf/local.conf http://pastebin.com/BVSz0eTL

2013/5/29 Bruce Ashfield :
> On 13-05-29 02:30 PM, Caio wrote:
>>
>> Br

Re: [yocto] Problem to compile kernel (enable nfsd)

2013-05-29 Thread Caio
bitbake -e -c kernel_configme linux-yocto-custom | grep KERNEL_FEATURES
# $KERNEL_FEATURES [2 operations]
KERNEL_FEATURES="features/nfsd/nfsd-enable.scc"

2013/5/29 Bruce Ashfield :
> On 13-05-29 02:53 PM, Caio wrote:
>>
>> bitbake core-image-minimal
>
>
> This won't give me what I'm looking for, bitbake the
> kernel directly:
>
>   bitbake -e -c kernel_configme linux-yocto-custom | grep KERNEL_FEATURES
>
> Cheers,
>
> Bruce
>
>
>> Loading cache: 100%
>>
>> |#|
>> ETA:  00:00:00
>> Loaded 1121 entries from dependency cache.
>> Parsing recipes: 100%
>>
>> |###|
>> Time: 00:00:03
>> Parsing of 814 .bb files complete (813 cached, 1 parsed). 1121
>> targets, 37 skipped, 0 masked, 0 errors.
>>
>> Build Configuration:
>> BB_VERSION= "1.18.0"
>> BUILD_SYS = "x86_64-linux"
>> NATIVELSBSTRING   = "Ubuntu-12.04"
>> TARGET_SYS= "i586-poky-linux"
>> MACHINE   = "lab3-qemux86"
>> DISTRO= "poky"
>> DISTRO_VERSION= "1.4.1"
>> TUNE_FEATURES = "m32 i586"
>> TARGET_FPU= ""
>> meta
>> meta-yocto
>> meta-yocto-bsp
>> meta-lab3-qemux86 = "dylan:3768675706462c0cc8566ead958161e77e2247e9"
>>
>> NOTE: Resolving any missing task queue dependencies
>> NOTE: Preparing runqueue
>> NOTE: Executing SetScene Tasks
>> NOTE: Executing RunQueue Tasks
>> ERROR: Function failed: do_patch (see
>>
>> /home/caio/yocto/poky/lab3/tmp/work/lab3_qemux86-poky-linux/linux-yocto-custom/3.4.28+gitAUTOINC+c7788792a5e7b0d5d7f96d0766b4cb6112d47d75-r0/temp/log.do_patch.9687
>> for further information)
>> ERROR: Logfile of failure stored in:
>>
>> /home/caio/yocto/poky/lab3/tmp/work/lab3_qemux86-poky-linux/linux-yocto-custom/3.4.28+gitAUTOINC+c7788792a5e7b0d5d7f96d0766b4cb6112d47d75-r0/temp/log.do_patch.9687
>> Log data follows:
>> | DEBUG: Executing shell function do_patch
>> | WARNING: no meta data branch found ...
>> | Already on 'linux-3.4.y'
>> | WARNING: addon feature "features/nfsd/nfsd-enable" was not found
>> | ERROR: required features were not found. aborting
>> | ERROR. Could not update linux-3.4.y
>> | ERROR: Function failed: do_patch (see
>>
>> /home/caio/yocto/poky/lab3/tmp/work/lab3_qemux86-poky-linux/linux-yocto-custom/3.4.28+gitAUTOINC+c7788792a5e7b0d5d7f96d0766b4cb6112d47d75-r0/temp/log.do_patch.9687
>> for further information)
>> ERROR: Task 843
>>
>> (/home/caio/yocto/poky/meta-lab3-qemux86/recipes-kernel/linux/linux-yocto-custom.bb,
>> do_patch) failed with exit code '1'
>> NOTE: Tasks Summary: Attempted 1618 tasks of which 1617 didn't need to
>> be rerun and 1 failed.
>> No currently running tasks (571 of 1647)
>>
>> Summary: 1 task failed:
>>
>> /home/caio/yocto/poky/meta-lab3-qemux86/recipes-kernel/linux/linux-yocto-custom.bb,
>> do_patch
>>
>>
>> log.do_patch.9687
>> DEBUG: Executing shell function do_patch
>> WARNING: no meta data branch found ...
>> Already on 'linux-3.4.y'
>> WARNING: addon feature "features/nfsd/nfsd-enable" was not found
>> ERROR: required features were not found. aborting
>> ERROR. Could not update linux-3.4.y
>> ERROR: Function failed: do_patch (see
>>
>> /home/caio/yocto/poky/lab3/tmp/work/lab3_qemux86-poky-linux/linux-yocto-custom/3.4.28+gitAUTOINC+c7788792a5e7b0d5d7f96d0766b4cb6112d47d75-r0/temp/log.do_patch.9687
>> for further informati
>>
>>
>> conf/bblayers.conf
>>
>> # LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf
>> # changes incompatibly
>> LCONF_VERSION = "6"
>>
>> BBPATH = "${TOPDIR}"
>> BBFILES ?= ""
>>
>> BBLAYERS ?= " \
>>/home/caio/yocto/poky/meta \
>>/home/caio/yocto/poky/meta-yocto \
>>/home/caio/yocto/poky/meta-yocto-bsp \
>>/home/caio/yocto/poky/meta-lab3-qemux86 \
>>"
>> BBLAYERS_NON_REMOVABLE ?= " \
>>/home/caio/yocto/poky/meta \
>>/home/caio/yocto/poky/

Re: [yocto] Problem to compile kernel (enable nfsd)

2013-06-03 Thread Caio
Thank you guys!

Now Works!

---
 meta-yocto/conf/distro/poky-lsb.conf |2 +-
 meta/conf/machine/include/qemu.inc   |3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/meta-yocto/conf/distro/poky-lsb.conf
b/meta-yocto/conf/distro/poky-lsb.conf
index 53d088f..355bd50 100644
--- a/meta-yocto/conf/distro/poky-lsb.conf
+++ b/meta-yocto/conf/distro/poky-lsb.conf
@@ -7,6 +7,6 @@ DISTRO_FEATURES_append = " pam largefile opengl"
 PREFERRED_PROVIDER_virtual/libx11 = "libx11"

 # Ensure the kernel nfs server is enabled
-KERNEL_FEATURES_append = " features/nfsd/nfsd-enable.scc"
+KERNEL_FEATURES_append_pn_linux_yocto = " features/nfsd/nfsd-enable.scc"


diff --git a/meta/conf/machine/include/qemu.inc
b/meta/conf/machine/include/qemu.inc
index 7111926..4a50b38 100644
--- a/meta/conf/machine/include/qemu.inc
+++ b/meta/conf/machine/include/qemu.inc
@@ -25,4 +25,5 @@ PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
 EXTRA_IMAGEDEPENDS += "qemu-native qemu-helper-native"

 # Provide the nfs server kernel module for all qemu images
-KERNEL_FEATURES_append = " features/nfsd/nfsd-enable.scc"
+KERNEL_FEATURES_append_pn_linux-yocto = " features/nfsd/nfsd-enable.scc"
+


2013/5/30 Bruce Ashfield :
> On Thu, May 30, 2013 at 5:03 AM, Paul Eggleton
>  wrote:
>> On Wednesday 29 May 2013 23:33:04 Bruce Ashfield wrote:
>>> On 13-05-29 3:05 PM, Caio wrote:
>>> > bitbake -e -c kernel_configme linux-yocto-custom | grep KERNEL_FEATURES
>>> > # $KERNEL_FEATURES [2 operations]
>>> > KERNEL_FEATURES="features/nfsd/nfsd-enable.scc"
>>>
>>> Aha. That's the problem with cutting and pasting patches, I missed this
>>> part of the fix:
>>>
>>> diff --git a/meta/conf/machine/include/qemu.inc
>>> b/meta/conf/machine/include/qemu.inc
>>> index 7111926..b303191 100644
>>> --- a/meta/conf/machine/include/qemu.inc
>>> +++ b/meta/conf/machine/include/qemu.inc
>>> @@ -25,4 +25,4 @@ PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
>>>   EXTRA_IMAGEDEPENDS += "qemu-native qemu-helper-native"
>>>
>>>   # Provide the nfs server kernel module for all qemu images
>>> -KERNEL_FEATURES_append = " features/nfsd/nfsd-enable.scc"
>>> +KERNEL_FEATURES-pn_linux-yocto_append = " features/nfsd/nfsd-enable.scc"
>>
>> I'm afraid this is not correct either.
>>
>> You need pn- instead of pn_, and I think in terms of ordering you also need
>> _append_pn-linux-yocto instead of _pn-linux-yocto_append.
>
> Heh. Well that wasn't the patch, that was me typing it in at 1AM based on
> a modified line from the original :) My laptop with the real change decided
> to drop of the network.
>
> Bruce
>
>>
>> I'd really appreciate the final fix for this as soon as possible so I can
>> integrate it into the dylan branch for the 1.4.1 release.
>>
>> Cheers,
>> Paul
>>
>> --
>>
>> Paul Eggleton
>> Intel Open Source Technology Centre
>> ___
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>
>
>
> --
> "Thou shalt not follow the NULL pointer, for chaos and madness await
> thee at its end"
> ___
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto



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


[yocto] node-serialport recipe help

2015-03-14 Thread Caio
Hi folks!

I'm writing a recipe to build the nodejs with node-serialport, but i'm
having problem in the QA and in the do_package.

This problem occurs when I try to copy all the npm packets to target path
using the command "cp -r".

 cp -r  ${S}/build/* ${D}${libdir}/node_modules/serialport/build/
 cp -r  ${S}/node_modules/*  ${D}${libdir}/node_modules

When I use the cp , the bitbake display the following message:

WARNING: QA Issue: node-serialport requires /bin/bash, /bin/zsh, but no
providers in its RDEPENDS [file-rdeps]

I try to add RDEPENDS += "bash" but this is not enough, and the bitbake ask
for the /bin/zsh and the zsh is blacklisted.

*I'm not a "Yocto expert" so I need improve my recipes (there's some
workarounds in my recipes)

I'm using as model the Recipes from webOS :
https://github.com/openwebos/meta-webos/tree/master/recipes-upstreamable/node-gyp


node-serialport_git.bb

SUMMARY = "node-serial is a Serial Port binding for Node.js"
SECTION = "nodejs/module"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://README.md;md5=b9a59a0fefe195d10be82cf7f0a99788"

DEPENDS = "node-pre-gyp-native"

PV = "1.6.1+gitr${SRCPV}"

RDEPENDS = "bash"

SRC_URI = "git://
github.com/voodootikigod/node-serialport.git;branch=master;protocol=git"
SRCREV = "94b7bdcc087b820e10913c483bab3e2c54d103f2"
S = "${WORKDIR}/git"


do_configure() {
export LD="${CXX}"
export GYP_DEFINES="sysroot=${STAGING_DIR_HOST}"
node-pre-gyp --target_arch=${TARGET_ARCH} --target_platform=linux
configure
}

do_compile() {
export LD="${CXX}"
export GYP_DEFINES="sysroot=${STAGING_DIR_HOST}"
node-pre-gyp --target_arch=${TARGET_ARCH} --target_platform=linux
build
}

do_install() {

npm install --no-cache
install -d ${D}${libdir}/node_modules
install -d ${D}${libdir}/node_modules/serialport/
install -d ${D}${libdir}/node_modules/serialport/build
install -d ${D}${libdir}/node_modules/serialport/bin
install -d ${S}/build/Release/
${D}${libdir}/node_modules/serialport/build/
install -m 0664 ${S}/bin/serialportList.js
${D}${libdir}/node_modules/serialport/bin/
install -m 0664 ${S}/bin/serialportTerminal.js
${D}${libdir}/node_modules/serialport/bin/
install -m 0664 ${S}/package.json ${D}${libdir}/node_modules/serialport/
install -m 0664 ${S}/parsers.js   ${D}${libdir}/node_modules/serialport/
install -m 0664 ${S}/serialport.js
${D}${libdir}/node_modules/serialport/
#problematic line if the cp lines are uncommented the bitbake displayed to
add RDEPEND /bin/bash and /bin/zsh
cp -r  ${S}/build/* ${D}${libdir}/node_modules/serialport/build/
cp -r  ${S}/node_modules/*  ${D}${libdir}/node_modules
}


FILES_${PN} += "${libdir}/node_modules \
${libdir}/node_modules/serialport \
${libdir}/node_modules/serialport/build \
"

FILES_${PN}-dbg += "${libdir}/node_modules/.debug \
${libdir}/node_modules/serialport/.debug \
${libdir}/node_modules/serialport/build/.debug \
${libdir/node_modules/serialport/build/Release/.debug \
"
#workaround to avoid QA's problems, must be fixed in the second round
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
INHIBIT_PACKAGE_STRIP = "1"


}



node_pre-gyp-native.bb

DESCRIPTION = "Node.js tool for easy binary deployment of C++ addons"
HOMEPAGE = "https://github.com/mapbox/node-pre-gyp.git";
LICENSE = "BSD"
SECTION = "nodejs/module"

LIC_FILES_CHKSUM = "file://LICENSE;md5=7e13c3cf883a44ebcc74a8f568c0f6fb"

SRC_URI = "git://
github.com/mapbox/node-pre-gyp.git;branch=master;protocol=git"
SRCREV = "332b8b123e3aa91718fad763cf1fc11c4cfb49b7"
DEPENDS = "nodejs-native node-gyp-native"

S = "${WORKDIR}/git"

inherit native

do_install () {
  #woraround to install the node-pre-gyp
  npm install -g --force
}

If someone could help me I will be grateful.
Thanks !

Regards,

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


Re: [yocto] node-serialport recipe help

2015-03-16 Thread Caio
Khem , Thank you very much !


Best Regards,

Caio Pereira

2015-03-15 5:57 GMT-03:00 Khem Raj :

> On Sat, Mar 14, 2015 at 11:35 AM, Caio  wrote:
> > Hi folks!
> >
> > I'm writing a recipe to build the nodejs with node-serialport, but i'm
> > having problem in the QA and in the do_package.
> >
> > This problem occurs when I try to copy all the npm packets to target path
> > using the command "cp -r".
> >
> >  cp -r  ${S}/build/* ${D}${libdir}/node_modules/serialport/build/
> >  cp -r  ${S}/node_modules/*  ${D}${libdir}/node_modules
> >
> > When I use the cp , the bitbake display the following message:
> >
> > WARNING: QA Issue: node-serialport requires /bin/bash, /bin/zsh, but no
> > providers in its RDEPENDS [file-rdeps]
> >
> > I try to add RDEPENDS += "bash" but this is not enough, and the bitbake
> ask
> > for the /bin/zsh and the zsh is blacklisted.
> >
> > *I'm not a "Yocto expert" so I need improve my recipes (there's some
> > workarounds in my recipes)
>
> These errors can be easily avoided by making more granular packaging.
> Identify the scripts in the install tree which require bash and zsh
> for interpreter, then add PACKAGES += "${PN}-bash ${PN}-zsh" which
> defines two extra output packages. then add FILES_${PN}-zsh =
> "/path/to/the/zsh/scripts/" and same for for another package. Then add
> RDEPENDS_${PN}-zsh = "zsh" RDEPENDS_${PN}-bash = "bash"
>
>
> >
> > I'm using as model the Recipes from webOS :
> >
> https://github.com/openwebos/meta-webos/tree/master/recipes-upstreamable/node-gyp
> >
> >
> > node-serialport_git.bb
> >
> > SUMMARY = "node-serial is a Serial Port binding for Node.js"
> > SECTION = "nodejs/module"
> > LICENSE = "MIT"
> > LIC_FILES_CHKSUM =
> "file://README.md;md5=b9a59a0fefe195d10be82cf7f0a99788"
> >
> > DEPENDS = "node-pre-gyp-native"
> >
> > PV = "1.6.1+gitr${SRCPV}"
> >
> > RDEPENDS = "bash"
> >
> > SRC_URI =
> > "git://
> github.com/voodootikigod/node-serialport.git;branch=master;protocol=git"
> > SRCREV = "94b7bdcc087b820e10913c483bab3e2c54d103f2"
> > S = "${WORKDIR}/git"
> >
> >
> > do_configure() {
> > export LD="${CXX}"
> > export GYP_DEFINES="sysroot=${STAGING_DIR_HOST}"
> > node-pre-gyp --target_arch=${TARGET_ARCH} --target_platform=linux
> > configure
> > }
> >
> > do_compile() {
> > export LD="${CXX}"
> > export GYP_DEFINES="sysroot=${STAGING_DIR_HOST}"
> > node-pre-gyp --target_arch=${TARGET_ARCH} --target_platform=linux
> build
> > }
> >
> > do_install() {
> >
> > npm install --no-cache
> > install -d ${D}${libdir}/node_modules
> > install -d ${D}${libdir}/node_modules/serialport/
> > install -d ${D}${libdir}/node_modules/serialport/build
> > install -d ${D}${libdir}/node_modules/serialport/bin
> > install -d ${S}/build/Release/
> > ${D}${libdir}/node_modules/serialport/build/
> > install -m 0664 ${S}/bin/serialportList.js
> > ${D}${libdir}/node_modules/serialport/bin/
> > install -m 0664 ${S}/bin/serialportTerminal.js
> > ${D}${libdir}/node_modules/serialport/bin/
> > install -m 0664 ${S}/package.json
> ${D}${libdir}/node_modules/serialport/
> > install -m 0664 ${S}/parsers.js
>  ${D}${libdir}/node_modules/serialport/
> > install -m 0664 ${S}/serialport.js
> > ${D}${libdir}/node_modules/serialport/
> > #problematic line if the cp lines are uncommented the bitbake displayed
> to
> > add RDEPEND /bin/bash and /bin/zsh
> > cp -r  ${S}/build/* ${D}${libdir}/node_modules/serialport/build/
> > cp -r  ${S}/node_modules/*  ${D}${libdir}/node_modules
> > }
> >
> >
> > FILES_${PN} += "${libdir}/node_modules \
> > ${libdir}/node_modules/serialport \
> > ${libdir}/node_modules/serialport/build \
> > "
> >
> > FILES_${PN}-dbg += "${libdir}/node_modules/.debug \
> > ${libdir}/node_modules/serialport/.debug \
> > ${libdir}/node_modules/serialport/build/.debug \
> > ${libdir/node_modules/serialport/build/Release/.debug \
> > "
> > #workaround to avoid QA's problems, must be fixed in the second round
> > INHIBIT_PACKAGE_DEBUG_

[yocto] [meta-qt5] Missing qt5declarative rootfs

2015-08-31 Thread Caio
Hello,

I'm trying to build an Image with meta-qt5 , the problem is that the
qt5declarative is not copied to rootfs.
The qt5declarative package is generated but is not included in the rootfs,
others qt5's packages are included in the rootfs.
What I'm doing wrong?

Yocto 1.7
meta-qt5: d2c05c81e8230358dca80cf9df67e49f9f672a29


my package group

packagegroup-qt5_0.1.bb

SUMMARY = "QT5  package group"
LICENSE = "MIT"

PR = "0"

inherit packagegroup

VIRTUAL_KEYBOARD ?= "maliit-framework-qt5 maliit-plugins-qt5"

IMAGE_INSTALL+ = " \
dbus \
qtbase \
qtbase-plugins \
qtbase-fonts \
qtdeclarative \
qtdeclarative-plugins \
qtdeclarative-qmlplugins \
qtmultimedia \
qtmultimedia-plugins \
qtmultimedia-qmlplugins \
qtserialport \
qtscript \
qtgraphicaleffects-qmlplugins \
qtconnectivity-qmlplugins \
qtxmlpatterns \
qtquick1 \
qtquickcontrols \
qtquickcontrols-qmlplugins \
qtgstreamer \
qtsvg \
qtsvg-plugins \
qtimageformats \
qtimageformats-plugin \
"

RDEPENDS_${PN}= "qtquickcontrols-qmlplugins qtdeclarative-qmlplugins
qtdeclarative-plugins"


My local.conf

MACHINE ??= 'colibri-imx6'
DISTRO ?= 'poky'
PACKAGE_CLASSES ?= "package_ipk "
EXTRA_IMAGE_FEATURES += "debug-tweaks package-management splash "
USER_CLASSES ?= "buildstats image-mklibs image-prelink"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS = "\
STOPTASKS,${TMPDIR},1G,100K \
STOPTASKS,${DL_DIR},1G,100K \
STOPTASKS,${SSTATE_DIR},1G,100K \
ABORT,${TMPDIR},100M,1K \
ABORT,${DL_DIR},100M,1K \
ABORT,${SSTATE_DIR},100M,1K"
CONF_VERSION = "1"

BB_NUMBER_THREADS = '24'
PARALLEL_MAKE = '-j 24'

ACCEPT_FSL_EULA = "1"
DISTRO_FEATURES_remove = "x11 wayland nfc 3g bluetooth irda ppp zerconf"
IMAGE_OVERHEAD_FACTOR = "2"

DISTRO_FEATURES_append = " opengl pulseaudio alsa systemd wifi ethernet
loopback"
PACKAGECONFIG_DISTRO_pn-qtbase = "accessibility qtxmlpatterns"
PACKAGECONFIG_DISTRO_pn-qtdeclarative = "qtxmlpatterns"
CORE_IMAGE_EXTRA_INSTALL_append = " kernel-modules module-init-tools-depmod
modutils-initscripts udev qtsmarthome quitbattery"

IMAGE_INSTALL_append = " \
firmware-imx-vpu-imx6d \
packagegroup-gstreamer \
packagegroup-qt5 \
packagegroup-core \
packagegroup-base-graphics \
"
PREFERRED_PROVIDER_psplash-support = "psplash-angstrom"
PREFERRED_PROVIDER_glibc = "glibc"




Thank you very much!

Regards,


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


Re: [yocto] [meta-qt5] Missing qt5declarative rootfs

2015-08-31 Thread Caio
Khem,

I fix the typo but the problem still remains.

Thank you.

Caio Pereira

2015-08-31 12:51 GMT-03:00 Khem Raj :

>
> On Aug 31, 2015, at 8:13 AM, Caio  wrote:
>
> VIRTUAL_KEYBOARD ?= "maliit-framework-qt5 maliit-plugins-qt5"
>
> IMAGE_INSTALL+ = “ \
>
>  ^
>
> if you pasted the recipe verbatim then there is a typo there there should
> be no space between + and =
>
>
> dbus \
> qtbase \
> qtbase-plugins \
> qtbase-fonts \
> qtdeclarative \
> qtdeclarative-plugins \
> qtdeclarative-qmlplugins \
> qtmultimedia \
> qtmultimedia-plugins \
> qtmultimedia-qmlplugins \
> qtserialport \
> qtscript \
> qtgraphicaleffects-qmlplugins \
> qtconnectivity-qmlplugins \
> qtxmlpatterns \
> qtquick1 \
> qtquickcontrols \
> qtquickcontrols-qmlplugins \
> qtgstreamer \
> qtsvg \
> qtsvg-plugins \
> qtimageformats \
> qtimageformats-plugin \
> "
>
>
>


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


Re: [yocto] [meta-qt5] Missing qt5declarative rootfs

2015-09-01 Thread Caio
Pascal,

You're right, was my mistake.
I updated the recipe to use RDEPENDS_${PN} , but now I'm having problem
with dependence ( qtquickcontrols). I'm trying to fix.


SUMMARY = "QT5  package group"
LICENSE = "MIT"

PR = "0"

inherit packagegroup

RDEPENDS_${PN} += " \
qtbase \
qtbase-plugins \
qtbase-fonts \
qtdeclarative \
qtdeclarative-plugins \
qtdeclarative-qmlplugins \
qtsvg \
qtsvg-plugins \
qtimageformats \
qtimageformats-plugins \
qtmultimedia \
qtmultimedia-plugins \
qtmultimedia-qmlplugins \
qtserialport \
qtscript \
qtgraphicaleffects-qmlplugins \
qtconnectivity-qmlplugins \
qtxmlpatterns \
qtquick1 \
qtquick1-plugins \
qtquick1-qmlplugins \
qtquickcontrols \
qtquickcontrols-qmlplugins \
qtgstreamer \
"

Error:

Configuring packagegroup-gstreamer.
Configuring opkg-collateral.
Configuring poky-feed-config-opkg.
Configuring quitbattery.
Configuring psplash.
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for
packagegroup-qt5:
 * qtquickcontrols *
 * opkg_install_cmd: Cannot install package packagegroup-qt5.

ERROR: Function failed: do_rootfs
ERROR: Logfile of failure stored in:
/home/icchw/fsl-community-bsp/toradex_colibri_imx6/tmp/work/colibri_imx6-poky-linux-gnueabi/core-image-minimal/1.0-r0/temp/log.do_rootfs.3458
ERROR: Task 7
(/home/icchw/fsl-community-bsp/sources/poky/meta/recipes-core/images/
core-image-minimal.bb, do_rootfs) failed with exit code '1'


Thank you very much,

Regards,

Caio Pereira


2015-09-01 11:22 GMT-03:00 Pascal Bach :

> >
> >
> > my package group
> >
> > packagegroup-qt5_0.1.bb <http://packagegroup-qt5_0.1.bb>
> >
> > SUMMARY = "QT5  package group"
> > LICENSE = "MIT"
> >
> > PR = "0"
> >
> > inherit packagegroup
> >
> > VIRTUAL_KEYBOARD ?= "maliit-framework-qt5 maliit-plugins-qt5"
> >
> I don't know if you can use IMAGE_INSTALL in a package group.
> Unitl now I have only seen RDEPENDS_${PN} used. IMAGE_INSTALL is normaly
> only used in images.
>
> > IMAGE_INSTALL+ = " \
> > dbus \
> > qtbase \
> > qtbase-plugins \
> > qtbase-fonts \
> > qtdeclarative \
> > qtdeclarative-plugins \
> > qtdeclarative-qmlplugins \
> > qtmultimedia \
> > qtmultimedia-plugins \
> > qtmultimedia-qmlplugins \
> > qtserialport \
> > qtscript \
> > qtgraphicaleffects-qmlplugins \
> > qtconnectivity-qmlplugins \
> > qtxmlpatterns \
> > qtquick1 \
> > qtquickcontrols \
> >     qtquickcontrols-qmlplugins \
> > qtgstreamer \
> > qtsvg \
> > qtsvg-plugins \
> > qtimageformats \
> > qtimageformats-plugin \
> > "
> >
> > RDEPENDS_${PN}= "qtquickcontrols-qmlplugins qtdeclarative-qmlplugins
> qtdeclarative-plugins"
> >
> >
> Pascal
>
>


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


Re: [yocto] [meta-qt5] Missing qt5declarative rootfs

2015-09-01 Thread Caio
I created a bbappend for qtquickcontrol with ALLOW_EMPTY_${PN} = "1" to
fix. (Thanks Sergio Prado)

#cat qtquickcontrol_%.bbappend
ALLOW_EMPTY_${PN} = "1"


Thank you guys!


Regards,

Caio Pereira


2015-09-01 11:54 GMT-03:00 Caio :

> Pascal,
>
> You're right, was my mistake.
> I updated the recipe to use RDEPENDS_${PN} , but now I'm having problem
> with dependence ( qtquickcontrols). I'm trying to fix.
>
>
> SUMMARY = "QT5  package group"
> LICENSE = "MIT"
>
> PR = "0"
>
> inherit packagegroup
>
> RDEPENDS_${PN} += " \
> qtbase \
> qtbase-plugins \
> qtbase-fonts \
> qtdeclarative \
> qtdeclarative-plugins \
> qtdeclarative-qmlplugins \
> qtsvg \
> qtsvg-plugins \
> qtimageformats \
> qtimageformats-plugins \
> qtmultimedia \
> qtmultimedia-plugins \
> qtmultimedia-qmlplugins \
> qtserialport \
> qtscript \
> qtgraphicaleffects-qmlplugins \
> qtconnectivity-qmlplugins \
> qtxmlpatterns \
> qtquick1 \
> qtquick1-plugins \
> qtquick1-qmlplugins \
> qtquickcontrols \
> qtquickcontrols-qmlplugins \
> qtgstreamer \
> "
>
> Error:
>
> Configuring packagegroup-gstreamer.
> Configuring opkg-collateral.
> Configuring poky-feed-config-opkg.
> Configuring quitbattery.
> Configuring psplash.
> Collected errors:
>  * satisfy_dependencies_for: Cannot satisfy the following dependencies for
> packagegroup-qt5:
>  * qtquickcontrols *
>  * opkg_install_cmd: Cannot install package packagegroup-qt5.
>
> ERROR: Function failed: do_rootfs
> ERROR: Logfile of failure stored in:
> /home/icchw/fsl-community-bsp/toradex_colibri_imx6/tmp/work/colibri_imx6-poky-linux-gnueabi/core-image-minimal/1.0-r0/temp/log.do_rootfs.3458
> ERROR: Task 7
> (/home/icchw/fsl-community-bsp/sources/poky/meta/recipes-core/images/
> core-image-minimal.bb, do_rootfs) failed with exit code '1'
>
>
> Thank you very much,
>
> Regards,
>
> Caio Pereira
>
>
> 2015-09-01 11:22 GMT-03:00 Pascal Bach :
>
>> >
>> >
>> > my package group
>> >
>> > packagegroup-qt5_0.1.bb <http://packagegroup-qt5_0.1.bb>
>> >
>> > SUMMARY = "QT5  package group"
>> > LICENSE = "MIT"
>> >
>> > PR = "0"
>> >
>> > inherit packagegroup
>> >
>> > VIRTUAL_KEYBOARD ?= "maliit-framework-qt5 maliit-plugins-qt5"
>> >
>> I don't know if you can use IMAGE_INSTALL in a package group.
>> Unitl now I have only seen RDEPENDS_${PN} used. IMAGE_INSTALL is normaly
>> only used in images.
>>
>> > IMAGE_INSTALL+ = " \
>> > dbus \
>> > qtbase \
>> > qtbase-plugins \
>> > qtbase-fonts \
>> > qtdeclarative \
>> > qtdeclarative-plugins \
>> > qtdeclarative-qmlplugins \
>> > qtmultimedia \
>> > qtmultimedia-plugins \
>> > qtmultimedia-qmlplugins \
>> >     qtserialport \
>> > qtscript \
>> > qtgraphicaleffects-qmlplugins \
>> > qtconnectivity-qmlplugins \
>> > qtxmlpatterns \
>> > qtquick1 \
>> > qtquickcontrols \
>> > qtquickcontrols-qmlplugins \
>> > qtgstreamer \
>> > qtsvg \
>> > qtsvg-plugins \
>> > qtimageformats \
>> > qtimageformats-plugin \
>> > "
>> >
>> > RDEPENDS_${PN}= "qtquickcontrols-qmlplugins qtdeclarative-qmlplugins
>> qtdeclarative-plugins"
>> >
>> >
>> Pascal
>>
>>
>
>
> --
> --
> Caio Pereira
>



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


Re: [yocto] [meta-qt5] Missing qt5declarative rootfs

2015-09-02 Thread Caio
I had the same dependency error.

Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for
packagegroup-qt5:
 * qtquickcontrols-plugins * qtquickcontrols *
 * opkg_install_cmd: Cannot install package packagegroup-qt5.

ERROR: Function failed: do_rootfs
ERROR: Logfile of failure stored in:
/home/icchw/fsl-community-bsp/toradex_colibri_imx6/tmp/work/colibri_imx6-poky-linux-gnueabi/core-image-minimal/1.0-r0/temp/log.do_rootfs.2872
ERROR: Task 7
(/home/icchw/fsl-community-bsp/sources/poky/meta/recipes-core/images/
core-image-minimal.bb, do_rootfs) failed with exit code '1'



Which option is better to add Qt5 packages? Create a package group or add
the packages in the Image recipe?


Thanks

Caio Pereira


2015-09-01 18:57 GMT-03:00 Martin Jansa :

> On Tue, Sep 01, 2015 at 06:05:58PM -0300, Caio wrote:
> > I created a bbappend for qtquickcontrol with ALLOW_EMPTY_${PN} = "1" to
> > fix. (Thanks Sergio Prado)
> >
> > #cat qtquickcontrol_%.bbappend
> > ALLOW_EMPTY_${PN} = "1"
>
> And what do you expect from empty package installed in your rootfs?
>
> If you need qtquickcontrol-plugins, then you should add
> qtquickcontrol-plugins to RDEPENDS, installing empty package is as good
> as not installing qtquickcontrol at all.
>
> > 2015-09-01 11:54 GMT-03:00 Caio :
> >
> > > Pascal,
> > >
> > > You're right, was my mistake.
> > > I updated the recipe to use RDEPENDS_${PN} , but now I'm having problem
> > > with dependence ( qtquickcontrols). I'm trying to fix.
> > >
> > >
> > > SUMMARY = "QT5  package group"
> > > LICENSE = "MIT"
> > >
> > > PR = "0"
> > >
> > > inherit packagegroup
> > >
> > > RDEPENDS_${PN} += " \
> > > qtbase \
> > > qtbase-plugins \
> > > qtbase-fonts \
> > > qtdeclarative \
> > > qtdeclarative-plugins \
> > > qtdeclarative-qmlplugins \
> > > qtsvg \
> > > qtsvg-plugins \
> > > qtimageformats \
> > > qtimageformats-plugins \
> > > qtmultimedia \
> > > qtmultimedia-plugins \
> > > qtmultimedia-qmlplugins \
> > > qtserialport \
> > > qtscript \
> > > qtgraphicaleffects-qmlplugins \
> > > qtconnectivity-qmlplugins \
> > > qtxmlpatterns \
> > > qtquick1 \
> > > qtquick1-plugins \
> > > qtquick1-qmlplugins \
> > > qtquickcontrols \
> > > qtquickcontrols-qmlplugins \
> > > qtgstreamer \
> > > "
> > >
> > > Error:
> > >
> > > Configuring packagegroup-gstreamer.
> > > Configuring opkg-collateral.
> > > Configuring poky-feed-config-opkg.
> > > Configuring quitbattery.
> > > Configuring psplash.
> > > Collected errors:
> > >  * satisfy_dependencies_for: Cannot satisfy the following dependencies
> for
> > > packagegroup-qt5:
> > >  * qtquickcontrols *
> > >  * opkg_install_cmd: Cannot install package packagegroup-qt5.
> > >
> > > ERROR: Function failed: do_rootfs
> > > ERROR: Logfile of failure stored in:
> > >
> /home/icchw/fsl-community-bsp/toradex_colibri_imx6/tmp/work/colibri_imx6-poky-linux-gnueabi/core-image-minimal/1.0-r0/temp/log.do_rootfs.3458
> > > ERROR: Task 7
> > > (/home/icchw/fsl-community-bsp/sources/poky/meta/recipes-core/images/
> > > core-image-minimal.bb, do_rootfs) failed with exit code '1'
> > >
> > >
> > > Thank you very much,
> > >
> > > Regards,
> > >
> > > Caio Pereira
> > >
> > >
> > > 2015-09-01 11:22 GMT-03:00 Pascal Bach :
> > >
> > >> >
> > >> >
> > >> > my package group
> > >> >
> > >> > packagegroup-qt5_0.1.bb <http://packagegroup-qt5_0.1.bb>
> > >> >
> > >> > SUMMARY = "QT5  package group"
> > >> > LICENSE = "MIT"
> > >> >
> > >> > PR = "0"
> > >> >
> > >> > inherit packagegroup
> > >> >
> > >> > VIRTUAL_KEYBOARD ?= "maliit-framework-qt5 maliit-plugins-qt5"
> > >> >
> > >> I don't know if you can use IMAGE_INSTALL in a package group.
> > >> Unitl now I have only

Re: [yocto] [meta-qt5] Missing qt5declarative rootfs

2015-09-03 Thread Caio
Martin,
I tested with PACKAGECONFIG_pn-qtbase = " accessibility"  and after with
PACKAGECONFIG_append_pn-qtbase in the local.conf but the problem still the
same.


Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for
packagegroup-qt5:
 * qtquickcontrols-plugins * qtquickcontrols *
 * opkg_install_cmd: Cannot install package packagegroup-qt5.

ERROR: Function failed: do_rootfs
ERROR: Logfile of failure stored in:
/home/icchw/fsl-community-bsp/toradex_colibri_imx6/tmp/work/colibri_imx6-poky-linux-gnueabi/core-image-minimal/1.0-r0/temp/log.do_rootfs.18724

I'm trying to find what is missing or wrong.

Thank you very much!.

Regards

Caio Pereira

2015-09-02 10:18 GMT-03:00 Martin Jansa :

> On Wed, Sep 02, 2015 at 10:04:19AM -0300, Caio wrote:
> > I had the same dependency error.
> >
> > Collected errors:
> >  * satisfy_dependencies_for: Cannot satisfy the following dependencies
> for
> > packagegroup-qt5:
> >  * qtquickcontrols-plugins * qtquickcontrols *
> >  * opkg_install_cmd: Cannot install package packagegroup-qt5.
> >
> > ERROR: Function failed: do_rootfs
> > ERROR: Logfile of failure stored in:
> >
> /home/icchw/fsl-community-bsp/toradex_colibri_imx6/tmp/work/colibri_imx6-poky-linux-gnueabi/core-image-minimal/1.0-r0/temp/log.do_rootfs.2872
> > ERROR: Task 7
> > (/home/icchw/fsl-community-bsp/sources/poky/meta/recipes-core/images/
> > core-image-minimal.bb, do_rootfs) failed with exit code '1'
>
> And fixing that by creating empty packages is the worst thing you can do..
>
> qtquickcontrols is probably empty because you didn't enable right
> PACKAGECONFIG options for qtbase (accessiblity), see README and
> qtbase_git.bb
>
> > Which option is better to add Qt5 packages? Create a package group or add
> > the packages in the Image recipe?
>
> It doesn't matter, packagegroup is better if you want to group all qt5
> related packages together and/or reuse the same packagegroup from
> various images.
>
> > 2015-09-01 18:57 GMT-03:00 Martin Jansa :
> >
> > > On Tue, Sep 01, 2015 at 06:05:58PM -0300, Caio wrote:
> > > > I created a bbappend for qtquickcontrol with ALLOW_EMPTY_${PN} = "1"
> to
> > > > fix. (Thanks Sergio Prado)
> > > >
> > > > #cat qtquickcontrol_%.bbappend
> > > > ALLOW_EMPTY_${PN} = "1"
> > >
> > > And what do you expect from empty package installed in your rootfs?
> > >
> > > If you need qtquickcontrol-plugins, then you should add
> > > qtquickcontrol-plugins to RDEPENDS, installing empty package is as good
> > > as not installing qtquickcontrol at all.
> > >
> > > > 2015-09-01 11:54 GMT-03:00 Caio :
> > > >
> > > > > Pascal,
> > > > >
> > > > > You're right, was my mistake.
> > > > > I updated the recipe to use RDEPENDS_${PN} , but now I'm having
> problem
> > > > > with dependence ( qtquickcontrols). I'm trying to fix.
> > > > >
> > > > >
> > > > > SUMMARY = "QT5  package group"
> > > > > LICENSE = "MIT"
> > > > >
> > > > > PR = "0"
> > > > >
> > > > > inherit packagegroup
> > > > >
> > > > > RDEPENDS_${PN} += " \
> > > > > qtbase \
> > > > > qtbase-plugins \
> > > > > qtbase-fonts \
> > > > > qtdeclarative \
> > > > > qtdeclarative-plugins \
> > > > > qtdeclarative-qmlplugins \
> > > > > qtsvg \
> > > > > qtsvg-plugins \
> > > > > qtimageformats \
> > > > > qtimageformats-plugins \
> > > > > qtmultimedia \
> > > > > qtmultimedia-plugins \
> > > > > qtmultimedia-qmlplugins \
> > > > > qtserialport \
> > > > > qtscript \
> > > > > qtgraphicaleffects-qmlplugins \
> > > > > qtconnectivity-qmlplugins \
> > > > > qtxmlpatterns \
> > > > > qtquick1 \
> > > > > qtquick1-plugins \
> > > > > qtquick1-qmlplugins \
> > > > > qtquickcontrols \
> > > > > qtquickcontrols-qmlplugins \
> > > > > qtgstreamer \
> > > > > "
> > > > >
> > > > > Error:
> > > > >

[yocto] Help with Opensips Recipe - QA run found fatal errors

2015-11-24 Thread Caio
Hello,

I'm writing a recipe to a Sip proxy Opensips, but I'm having problems with
QA Issues.
In the First time I tried to use make install from Opensips Makefile I had
problem with QA Issues,  so I added all the folders to FILES_${PN} and
FILES_${PN} but I still having problem.

So I decided to start small, creating the folder structure and copy only
the binary files and after I will copy all the files using the  do_install
function.

But when I added the folders and I started to have problems with QA again.

FILES_${PN} = " \
${sbindir}/* \
${sysconfdir}/* \
${sysconfdir}/opensips/* \
${libdir}/* \
${libdir}/opensips/* \
${libdir}/opensips/modules/* \
"
Someone could help me with this problem?


Thank you very much

Best Regards,

Caio Pereira


ERROR: QA Issue: opensips: The compile log indicates that host include
and/or library paths were used.
 Please check the log
'/home/icchw/fsl-community-bsp/small_steps/tmp/work/armv7at2hf-vfp-neon-poky-linux-gnueabi/opensips/2.2.0-r0/temp/log.do_compile'
for more information. [compile-host-path]


ERROR: QA run found fatal errors. Please consider fixing them.
ERROR: Function failed: do_package_qa
ERROR: Logfile of failure stored in:
/home/icchw/fsl-community-bsp/small_steps/tmp/work/armv7at2hf-vfp-neon-poky-linux-gnueabi/opensips/2.2.0-r0/temp/log.do_package_qa.30973
ERROR: Task 9
(/home/icchw/fsl-community-bsp/sources/icchw/meta-caio/recipes-telephony/opensips/
opensips_2.2.0.bb, do_package_qa) failed with exit code '1'


cat
/home/icchw/fsl-community-bsp/small_steps/tmp/work/armv7at2hf-vfp-neon-poky-linux-gnueabi/opensips/2.2.0-r0/temp/log.do_package_qa.30973

DEBUG: Python function read_subpackage_metadata finished
ERROR: QA Issue: opensips: The compile log indicates that host include
and/or library paths were used.
 Please check the log
'/home/icchw/fsl-community-bsp/small_steps/tmp/work/armv7at2hf-vfp-neon-poky-linux-gnueabi/opensips/2.2.0-r0/temp/log.do_compile'
for more information. [compile-host-path]
NOTE: Checking Package: opensips-dbg
NOTE: arm-poky-linux-gnueabi-objdump -p
/home/icchw/fsl-community-bsp/small_steps/tmp/work/armv7at2hf-vfp-neon-poky-linux-gnueabi/opensips/2.2.0-r0/packages-split/opensips-dbg/usr/sbin/.debug/opensips
NOTE: Checking Package: opensips-staticdev
NOTE: Checking Package: opensips-dev
NOTE: Checking Package: opensips-doc
NOTE: Checking Package: opensips-locale
NOTE: Checking Package: opensips
NOTE: arm-poky-linux-gnueabi-objdump -p
/home/icchw/fsl-community-bsp/small_steps/tmp/work/armv7at2hf-vfp-neon-poky-linux-gnueabi/opensips/2.2.0-r0/packages-split/opensips/usr/sbin/opensips
ERROR: QA run found fatal errors. Please consider fixing them.
DEBUG: Python function do_package_qa finished
ERROR: Function failed: do_package_qa


opensips_2.2.bb

DESCRIPTION = "SIP Proxy"
HOMEPAGE = "http://www.opensips.org";
LICENSE = "GPLv2"
DEPENDS = "sqlite3 libxml2 openssl confuse curl"
LIC_FILES_CHKSUM = "file://COPYING;md5=007e0c25afacf8e39c37f27c8212bc67"

SRC_URI = "git://github.com/OpenSIPS/opensips.git;branch=master \
   file://Makefile.conf \
   "
SRCREV = "d6660513634c8e4305e7c5b03510893efced1b68"
S = "${WORKDIR}/git"
inherit autotools pkgconfig

OPENSIPS_CPPFLAGS = "-fexpensive-optimizations -fomit-frame-pointer
-fsigned-char -Wcast-align -fPIC "

OSREL = "${LINUX_VERSION}"
OSREL .= "3.10.17"
#FIX-ME
OPENSIPS_ARCH .= "${TUNE_PKGARCH}"
OPENSIPS_MAKEFLAGS = "ARCH=${OPENSIPS_ARCH}  OS=linux OSREL=${OSREL}"
OPENSIPS_BUILD_DIR = "${S}"
OPENSIPS_INCLUDE_BASE_MODULES = "\"presence db_sqlite\""
export TLS = "1"
OPENSIPS_EXCLUDE_MODULES = "\"aaa_radius b2b_logic cachedb_cassandra
cachedb_couchbase cachedb_memcached cachedb_mongodb cachedb_redis
carrierroute compression cpl-c db_berkeley db_http db_mysql db_oracle
db_perlvdb db_postgres db_unixodbc dialplan emergency event_rabbitmq h350
regex identity jabber json ldap lua httpd mi_xmlrpc_ng mmgeoip osp perl
pi_http presence presence_dialoginfo presence_mwi presence_xml proto_sctp
proto_tls pua pua_bla pua_dialoginfo pua_mi pua_usrloc pua_xmpp python
rest_client rls sngtc snmpstats tlsops xcap xcap_client xmpp proto_wsi\""

OPENSIPS_DEBUG_MODE = ""

do_configure(){
cp ${WORKDIR}/Makefile.conf ${S}
}

do_compile() {
oe_runmake -C ${OPENSIPS_BUILD_DIR} ${OPENSIPS_MAKEFLAGS}
${OPENSIPS_DEBUG_MODE} include_modules="${OPENSIPS_INCLUDE_BASE_MODULES}"
prefix=${D}${prefix} modules app

}

#I decide to move in small steps, so this installations doesn't have all
the files
do_install() {

install -d ${D}${sbindir}/
install -d ${D}${sysconfdir}
install -d ${D}${sysconfdir}/opensips/
install -d ${D}${libdi

Re: [yocto] Help with Opensips Recipe - QA run found fatal errors

2015-12-01 Thread Caio
Hi Paul,

Thank you very much for your help.
I added INSANE_SKIP_${PN} += " libdir compile-host-path" because the
instalation is different from /usr/lib.

Thank you very much!

Regards,

Caio Pereira


2015-11-25 20:26 GMT-02:00 Paul Eggleton :

> Hi Caio,
>
> On Tuesday 24 November 2015 11:48:13 Caio wrote:
> > I'm writing a recipe to a Sip proxy Opensips, but I'm having problems
> with
> > QA Issues.
> > In the First time I tried to use make install from Opensips Makefile I
> had
> > problem with QA Issues,  so I added all the folders to FILES_${PN} and
> > FILES_${PN} but I still having problem.
> >
> > So I decided to start small, creating the folder structure and copy only
> > the binary files and after I will copy all the files using the
> do_install
> > function.
> >
> > But when I added the folders and I started to have problems with QA
> again.
> >
> > FILES_${PN} = " \
> > ${sbindir}/* \
> > ${sysconfdir}/* \
> > ${sysconfdir}/opensips/* \
> > ${libdir}/* \
> > ${libdir}/opensips/* \
> > ${libdir}/opensips/modules/* \
> > "
> > Someone could help me with this problem?
> >
> >
> > Thank you very much
> >
> > Best Regards,
> >
> > Caio Pereira
> >
> >
> > ERROR: QA Issue: opensips: The compile log indicates that host include
> > and/or library paths were used.
> >  Please check the log
> >
> '/home/icchw/fsl-community-bsp/small_steps/tmp/work/armv7at2hf-vfp-neon-poky
> > -linux-gnueabi/opensips/2.2.0-r0/temp/log.do_compile' for more
> information.
> > [compile-host-path]
> >
> >
> > ERROR: QA run found fatal errors. Please consider fixing them.
> > ERROR: Function failed: do_package_qa
> > ERROR: Logfile of failure stored in:
> >
> /home/icchw/fsl-community-bsp/small_steps/tmp/work/armv7at2hf-vfp-neon-poky-
> > linux-gnueabi/opensips/2.2.0-r0/temp/log.do_package_qa.30973 ERROR: Task
> 9
> >
> (/home/icchw/fsl-community-bsp/sources/icchw/meta-caio/recipes-telephony/ope
> > nsips/ opensips_2.2.0.bb, do_package_qa) failed with exit code '1'
> >
> >
> > cat
> >
> /home/icchw/fsl-community-bsp/small_steps/tmp/work/armv7at2hf-vfp-neon-poky-
> > linux-gnueabi/opensips/2.2.0-r0/temp/log.do_package_qa.30973
> >
> > DEBUG: Python function read_subpackage_metadata finished
> > ERROR: QA Issue: opensips: The compile log indicates that host include
> > and/or library paths were used.
> >  Please check the log
> >
> '/home/icchw/fsl-community-bsp/small_steps/tmp/work/armv7at2hf-vfp-neon-poky
> > -linux-gnueabi/opensips/2.2.0-r0/temp/log.do_compile' for more
> information.
> > [compile-host-path]
>
> Did you check the mentioned compile log?
>
> FYI a good reference for these QA checks is:
>
>
> http://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#qa-errors-and-warnings
>
> As mentioned there you should find somewhere in that log "is unsafe for
> cross-compilation" or "CROSS COMPILE Badness".
>
> Cheers,
> Paul
>
> --
>
> Paul Eggleton
> Intel Open Source Technology Centre
>



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


Re: [yocto] Help with Opensips Recipe - QA run found fatal errors

2015-12-08 Thread Caio
Paul,
 Ok, thank you for your elucidation.
This could be a prefix problem, because I'm using a make install from
Makefile.

I will find this problem and fix it.

Thank you very much.

Regards,

Caio Pereira



2015-12-01 14:56 GMT-02:00 Paul Eggleton :

> Hi Caio,
>
> compile-host-path isn't about the path being different - it's about the
> path
> being something possibly bad i.e. on the host system. You really ought to
> fix
> that one rather than disable it.
>
> Cheers,
> Paul
>
> On Tue, 01 Dec 2015 10:21:03 Caio wrote:
> > Hi Paul,
> >
> > Thank you very much for your help.
> > I added INSANE_SKIP_${PN} += " libdir compile-host-path" because the
> > instalation is different from /usr/lib.
> >
> > Thank you very much!
> >
> > Regards,
> >
> > Caio Pereira
> >
> > 2015-11-25 20:26 GMT-02:00 Paul Eggleton  >:
> > > Hi Caio,
> > >
> > > On Tuesday 24 November 2015 11:48:13 Caio wrote:
> > > > I'm writing a recipe to a Sip proxy Opensips, but I'm having problems
> > >
> > > with
> > >
> > > > QA Issues.
> > > > In the First time I tried to use make install from Opensips Makefile
> I
> > >
> > > had
> > >
> > > > problem with QA Issues,  so I added all the folders to FILES_${PN}
> and
> > > > FILES_${PN} but I still having problem.
> > > >
> > > > So I decided to start small, creating the folder structure and copy
> only
> > > > the binary files and after I will copy all the files using the
> > >
> > > do_install
> > >
> > > > function.
> > > >
> > > > But when I added the folders and I started to have problems with QA
> > >
> > > again.
> > >
> > > > FILES_${PN} = " \
> > > >
> > > > ${sbindir}/* \
> > > > ${sysconfdir}/* \
> > > > ${sysconfdir}/opensips/* \
> > > > ${libdir}/* \
> > > > ${libdir}/opensips/* \
> > > > ${libdir}/opensips/modules/* \
> > > > "
> > > >
> > > > Someone could help me with this problem?
> > > >
> > > >
> > > > Thank you very much
> > > >
> > > > Best Regards,
> > > >
> > > > Caio Pereira
> > > >
> > > >
> > > > ERROR: QA Issue: opensips: The compile log indicates that host
> include
> > > > and/or library paths were used.
> > > >
> > > >  Please check the log
> > >
> > >
> '/home/icchw/fsl-community-bsp/small_steps/tmp/work/armv7at2hf-vfp-neon-po
> > > ky>
> > > > -linux-gnueabi/opensips/2.2.0-r0/temp/log.do_compile' for more
> > >
> > > information.
> > >
> > > > [compile-host-path]
> > > >
> > > >
> > > > ERROR: QA run found fatal errors. Please consider fixing them.
> > > > ERROR: Function failed: do_package_qa
> > >
> > > > ERROR: Logfile of failure stored in:
> > >
> /home/icchw/fsl-community-bsp/small_steps/tmp/work/armv7at2hf-vfp-neon-pok
> > > y->
> > > > linux-gnueabi/opensips/2.2.0-r0/temp/log.do_package_qa.30973 ERROR:
> Task
> > >
> > > 9
> > >
> > >
> (/home/icchw/fsl-community-bsp/sources/icchw/meta-caio/recipes-telephony/o
> > > pe>
> > > > nsips/ opensips_2.2.0.bb, do_package_qa) failed with exit code '1'
> > > >
> > > >
> > > > cat
> > >
> > >
> /home/icchw/fsl-community-bsp/small_steps/tmp/work/armv7at2hf-vfp-neon-pok
> > > y->
> > > > linux-gnueabi/opensips/2.2.0-r0/temp/log.do_package_qa.30973
> > > >
> > > > DEBUG: Python function read_subpackage_metadata finished
> > > > ERROR: QA Issue: opensips: The compile log indicates that host
> include
> > > > and/or library paths were used.
> > > >
> > > >  Please check the log
> > >
> > >
> '/home/icchw/fsl-community-bsp/small_steps/tmp/work/armv7at2hf-vfp-neon-po
> > > ky>
> > > > -linux-gnueabi/opensips/2.2.0-r0/temp/log.do_compile' for more
> > >
> > > information.
> > >
> > > > [compile-host-path]
> > >
> > > Did you check the mentioned compile log?
> > >
> > > FYI a good reference for these QA checks is:
> > >
> > >
> > >
> http://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#qa-err
> > > ors-and-warnings
> > >
> > > As mentioned there you should find somewhere in that log "is unsafe for
> > > cross-compilation" or "CROSS COMPILE Badness".
> > >
> > > Cheers,
> > > Paul
> > >
> > > --
> > >
> > > Paul Eggleton
> > > Intel Open Source Technology Centre
>
> --
>
> Paul Eggleton
> Intel Open Source Technology Centre
>



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