[OE-core] [PATCH] sysstat:11.5.5 -> 11.5.6

2017-06-27 Thread Huang Qiyu
From: susanbian Upgrade sysstat from 11.5.5 to 11.5.6. Signed-off-by: susanbian --- .../recipes-extended/sysstat/{sysstat_11.5.5.bb => sysstat_11.5.6.bb} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename meta/recipes-extended/sysstat/{sysstat_11.5.5.bb => sysstat_11.5.6.bb} (5

Re: [OE-core] [PATCH] cmake: Use find_program if find_host_program is not available

2017-06-27 Thread Jussi Kukkonen
On 27 June 2017 at 00:51, Maxime Roussin-Belanger < maxime.roussinbelan...@gmail.com> wrote: > On Mon, Jun 26, 2017 at 04:41:34PM -0300, Otavio Salvador wrote: > > On Mon, Jun 26, 2017 at 3:33 PM, Maxime Roussin-Bélanger > > wrote: > > > CMake does not define the `find_host_program` command we've

Re: [OE-core] Never ending stream of bitbake exceptions when the builder runs out of disk space

2017-06-27 Thread Patrick Ohly
On Thu, 2017-06-15 at 08:48 +0200, Martin Jansa wrote: > This issue exists for very long time. > > > I know that when the builder runs out of disk space there are multiple > things which might go wrong (I've seen bad archives on premirrors, bad > sstate archives caused by this), so this issue isn

Re: [OE-core] Never ending stream of bitbake exceptions when the builder runs out of disk space

2017-06-27 Thread Martin Jansa
Is BB_DISKMON_DIRS enabled by default? Quick grep shows it only in local.conf.sample*: meta/conf/local.conf.sample:BB_DISKMON_DIRS = "\ meta/conf/local.conf.sample.extended:# inode is running low, it is enabled when BB_DISKMON_DIRS is set. meta/conf/local.conf.sample.extended:#BB_DISKMON_DIRS = "S

Re: [OE-core] Never ending stream of bitbake exceptions when the builder runs out of disk space

2017-06-27 Thread Richard Purdie
On Tue, 2017-06-27 at 10:12 +0200, Martin Jansa wrote: > Is BB_DISKMON_DIRS enabled by default? > > Quick grep shows it only in local.conf.sample*: > meta/conf/local.conf.sample:BB_DISKMON_DIRS = "\ > meta/conf/local.conf.sample.extended:# inode is running low, it is > enabled when BB_DISKMON_DIRS

Re: [OE-core] OE-Core/Yocto Project's first CVE (CVE-2017-9731)

2017-06-27 Thread Sona Sarmadi
Hi all, Sorry that the fix/workaround for this vulnerability was not discussed publically. This vulnerability was reported by a user privately/encrypted. Yocto Security team; Sona, Michael Halstead and Richard handled this off-list. We decided that we provide a quick fix/workaround before we

Re: [OE-core] [PATCH 1/2] kernel: add package version in dependencies for kernel packages

2017-06-27 Thread Razvan Heghedus
On 06/26/2017 06:50 PM, Bruce Ashfield wrote: On Wed, Jun 21, 2017 at 8:00 AM, Heghedus Razvan mailto:razvan.heghe...@ni.com>> wrote: Make all dependencies from kernel family packages which depend on another kernel related package to depend on the same version. This creates a c

Re: [OE-core] [PATCH v2] bitbake.conf: Add sdl-config to HOSTTOOLS if using host SDL

2017-06-27 Thread Patrick Ohly
On Thu, 2017-06-01 at 22:15 +1000, Jonathan Liu wrote: > If ASSUME_PROVIDES contains libsdl-native, we need to add sdl-config > to HOSTTOOLS to allow access to the host sdl-config. > > Signed-off-by: Jonathan Liu > --- > meta/conf/bitbake.conf | 3 +++ > 1 file changed, 3 insertions(+) > > diff

Re: [OE-core] [PATCH 2/2] kernel: user defined KERNEL_VERSION_PKG_NAME

2017-06-27 Thread Razvan Heghedus
On 06/26/2017 06:52 PM, Bruce Ashfield wrote: On Wed, Jun 21, 2017 at 8:00 AM, Heghedus Razvan mailto:razvan.heghe...@ni.com>> wrote: Add possibility to set KERNEL_VERSION_PKG_NAME to a user defined value. Signed-off-by: Heghedus Razvan mailto:razvan.heghe...@ni.com>> ---

Re: [OE-core] Never ending stream of bitbake exceptions when the builder runs out of disk space

2017-06-27 Thread Patrick Ohly
On Tue, 2017-06-27 at 09:25 +0100, Richard Purdie wrote: > So if its not default, we should make it default and I'd encourage > people to use it. It's not the default at the moment because it's only in local.conf.sample, which people might not use. So should a default for BB_DISKMON_DIRS be set i

Re: [OE-core] Never ending stream of bitbake exceptions when the builder runs out of disk space

2017-06-27 Thread Richard Purdie
On Tue, 2017-06-27 at 11:21 +0200, Patrick Ohly wrote: > On Tue, 2017-06-27 at 09:25 +0100, Richard Purdie wrote: > > > > So if its not default, we should make it default and I'd encourage > > people to use it. > It's not the default at the moment because it's only in > local.conf.sample, which pe

Re: [OE-core] Never ending stream of bitbake exceptions when the builder runs out of disk space

2017-06-27 Thread Richard Purdie
On Tue, 2017-06-27 at 10:08 +0200, Patrick Ohly wrote: > On Thu, 2017-06-15 at 08:48 +0200, Martin Jansa wrote: > > > > This issue exists for very long time. > > > > > > I know that when the builder runs out of disk space there are > > multiple > > things which might go wrong (I've seen bad arch

Re: [OE-core] [PATCH v2] bitbake.conf: Add sdl-config to HOSTTOOLS if using host SDL

2017-06-27 Thread Jonathan Liu
Hi Patrick, Something is really strange. HOSTTOOLS doesn't appear to be working anymore in pyro branch If I do "bitbake -c devshell qemu-native", I can run the following commands successfully which should have been filtered out by HOSTTOOLS: $ which sdl-config /usr/bin/sdl-config $ which ncdu /us

[OE-core] [PATCH 0/7] #11662 - wic should mount /boot

2017-06-27 Thread Ed Bartosh
Hi, This patchset adds /boot to the /etc/fstab of root partition, making it mounted on boot. It also fixes reporting and testing issues caused by this change. The patchset also fixes long standing bug: wic updated fstab inplace in rootfs directory. This causes other tasks working with rootfs dire

[OE-core] [PATCH 1/7] wic: copy rootfs directory before changing fstab

2017-06-27 Thread Ed Bartosh
wic updates /etc/fstab on root partition if there are valid mount points in .wks When wic runs from bitbake this can cause incorrect results or even breakage of other tasks working with rootfs directory in parallel with do_image_wic. Implemented copying rootfs directory to a temporary location us

[OE-core] [PATCH 4/7] wic: rootfs: fix rootfs path reporting

2017-06-27 Thread Ed Bartosh
wic gets rootfs paths from partition object property 'rootfs_dir' and shows them in final report. rootfs plugin sets this property to the temporary path, which causes temporary paths appearing in the report. Changed the code to prevent storing temporary rootfs path in part.rootfs_dir. This should

[OE-core] [PATCH 5/7] wic: rootfs: make copied rootfs unique

2017-06-27 Thread Ed Bartosh
Used unique suffix (line number from .wks file) for the copied rootfs directory to avoid possible conflicts. Signed-off-by: Ed Bartosh --- scripts/lib/wic/plugins/source/rootfs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lib/wic/plugins/source/rootfs.py b/scri

[OE-core] [PATCH 2/7] wic: use correct rootfs in the report

2017-06-27 Thread Ed Bartosh
wic includs rootfs path in the final report. When fstab needs to be updated wic copies rootfs to a temporary location. This causes path to the copy of rootfs to appear in the final report. Saved original rootfs path when rootfs is copied to include original path to the report. Signed-off-by: Ed B

[OE-core] [PATCH 6/7] wic: add /boot mount point to fstab by default

2017-06-27 Thread Ed Bartosh
wic avoided adding /boot to fstab for no reason. This exception was hardcoded in the wic code. There is no need for this as mountpoint in .wks file is an optional field. It can be used only if user wants to have partitions automatically mounted on system boot. [YOCTO #11662] Signed-off-by: Ed Ba

[OE-core] [PATCH 3/7] wic: use absolute paths in rootfs plugin

2017-06-27 Thread Ed Bartosh
Using relative paths can cause copyhardlinktree API to fail as it changes current directory when working. Converted all paths to absolute paths using os.path.realpath. Signed-off-by: Ed Bartosh --- scripts/lib/wic/plugins/source/rootfs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

[OE-core] [PATCH 7/7] oe-selftest: wic: fix test_quemu

2017-06-27 Thread Ed Bartosh
This test case boots the image in qemu and checks for mounted partitions. As /boot is mounted automatically the test case fails. Fixed this by adding /boot to the list of mounted partitions. Signed-off-by: Ed Bartosh --- meta/lib/oeqa/selftest/cases/wic.py | 2 +- 1 file changed, 1 insertion(+),

Re: [OE-core] [PATCH v2] bitbake.conf: Add sdl-config to HOSTTOOLS if using host SDL

2017-06-27 Thread Patrick Ohly
On Tue, 2017-06-27 at 19:53 +1000, Jonathan Liu wrote: > Hi Patrick, > > Something is really strange. HOSTTOOLS doesn't appear to be working > anymore in pyro branch > If I do "bitbake -c devshell qemu-native", I can run the following > commands successfully which should have been filtered out by

Re: [OE-core] [PATCH v2] bitbake.conf: Add sdl-config to HOSTTOOLS if using host SDL

2017-06-27 Thread Burton, Ross
On 27 June 2017 at 10:05, Patrick Ohly wrote: > Sorry for the late reply, going through my backlog... I see that this > has been merged. Probably needs to be reverted or fixed. > The typo fix is in ross/mut already. Ross -- ___ Openembedded-core mail

Re: [OE-core] [poky][Patch] bluez: Correct the timer count for bcm43xx firmware download

2017-06-27 Thread Burton, Ross
On 27 June 2017 at 04:39, Jun Zhu wrote: > +From 3b341fb421ef61db7782bf1314ec693828467de9 Mon Sep 17 00:00:00 2001 > +From: Andy Duan > +Date: Wed, 23 Nov 2016 17:12:12 +0800 > +Subject: [PATCH] hciattach: bcm43xx: fix the delay timer for firmware > download > + > +From the log in .bcm43xx_load_

Re: [OE-core] [PATCH v2] bitbake.conf: Add sdl-config to HOSTTOOLS if using host SDL

2017-06-27 Thread Patrick Ohly
On Tue, 2017-06-27 at 11:05 +0200, Patrick Ohly wrote: > Even if you had checked the right variable, is that really necessary? > I'm building qemu with ASSUME_PROVIDED += "libsdl-native" just fine on > Debian Jessie, without sdl-config in HOSTTOOLS. I'm still interested in learning what problem it

Re: [OE-core] [PATCH v2] bitbake.conf: Add sdl-config to HOSTTOOLS if using host SDL

2017-06-27 Thread Jonathan Liu
Hi Patrick, The original problem was that bitbake would print out the error: "libsdl-native is set to be ASSUME_PROVIDED but sdl-config can't be found in PATH. Please either install it, or configure qemu not to require sdl.", if "libsdl-native" was in ASSUME_PROVIDED even if the host has sdl-confi

Re: [OE-core] [PATCH v2] bitbake.conf: Add sdl-config to HOSTTOOLS if using host SDL

2017-06-27 Thread Patrick Ohly
On Tue, 2017-06-27 at 20:24 +1000, Jonathan Liu wrote: > Hi Patrick, > > The original problem was that bitbake would print out the error: > "libsdl-native is set to be ASSUME_PROVIDED but sdl-config can't be > found in PATH. Please either install it, or configure qemu not to > require sdl.", if "l

[OE-core] [PATCH] scripts/oe-find-native-sysroot: fix a incomplete regexp

2017-06-27 Thread liu . ming50
From: Ming Liu A "=" is missing in the regexp, which leads it match multiple results if STAGING_DIR_NATIVE has overrides, for instance: ... STAGING_DIR_NATIVE="" STAGING_DIR_NATIVE_qemux86="" ... it will match both of them without "=". Signed-off-by: Ming Liu --- scripts/oe-find-nativ

[OE-core] [PATCH] scripts/test-reexec: fix several incomplete regexp

2017-06-27 Thread liu . ming50
From: Ming Liu Some "=" are missing in the regexp, which leads it match multiple results if the variables have overrides, for instance: ... SSTATE_DIR="" SSTATE_DIR_qemux86="" ... it will match both of them without "=". Signed-off-by: Ming Liu --- scripts/test-reexec | 6 +++--- 1 fil

[OE-core] [PATCH 0/2] enhance and test runCmd()

2017-06-27 Thread Patrick Ohly
This is mostly motivated by some long-running build tests triggered in refkit where better output handling would be very desirable. I had this idea already before Leonardo proposed to change the runCmd() defaults, but as that's now a hot topic, it seemed like a good time to actually implement it.

[OE-core] [PATCH 1/2] commands.py: live output logging + result.error encoding fix

2017-06-27 Thread Patrick Ohly
Tests that use bitbake("my-test-image") can run for a long time without any indication to the user of oe-selftest about what's going on. The test author has to log the bitbake output explicitly, otherwise it is lost in case of test failures. Now it is possible to use bitbake("my-test-image", outpu

[OE-core] [PATCH 2/2] runcmd.py: unit testing for runCmd()

2017-06-27 Thread Patrick Ohly
This covers the traditional API as well as the new output_log feature. While testing, it was noticed that killing hanging commands does not work when a shell is used to run the command(s). This might be worth fixing. Signed-off-by: Patrick Ohly --- meta/lib/oeqa/selftest/cases/runcmd.py | 117 ++

Re: [OE-core] [PATCH v2] bitbake.conf: Add sdl-config to HOSTTOOLS if using host SDL

2017-06-27 Thread Jonathan Liu
Hi Patrick, On 27 June 2017 at 20:38, Patrick Ohly wrote: > On Tue, 2017-06-27 at 20:24 +1000, Jonathan Liu wrote: >> Hi Patrick, >> >> The original problem was that bitbake would print out the error: >> "libsdl-native is set to be ASSUME_PROVIDED but sdl-config can't be >> found in PATH. Please

Re: [OE-core] [PATCH 1/1] imagefeatures.py: Added testcase to track IMAGE_GEN_DEBUGFS

2017-06-27 Thread Burton, Ross
On 16 June 2017 at 18:37, Ibarra Lopez, Humberto < humberto.ibarra.lo...@intel.com> wrote: > Thought about testing debug packages because the bug comments mentioned > iterating through rpm, deb and ipk. If there is no value to this part I > could drop it and only test for the debug filesystem. In

Re: [OE-core] [PATCH 5/7] wic: rootfs: make copied rootfs unique

2017-06-27 Thread Burton, Ross
Can you squash stuff like this into the first patch, the history doesn't need to see your working. Also, does the hardlink copy get cleaned up? Ross On 27 June 2017 at 10:57, Ed Bartosh wrote: > Used unique suffix (line number from .wks file) for the > copied rootfs directory to avoid possible

Re: [OE-core] [PATCH v2] bitbake.conf: Add sdl-config to HOSTTOOLS if using host SDL

2017-06-27 Thread Richard Purdie
On Tue, 2017-06-27 at 11:05 +0200, Patrick Ohly wrote: > On Thu, 2017-06-01 at 22:15 +1000, Jonathan Liu wrote: > > > > If ASSUME_PROVIDES contains libsdl-native, we need to add sdl- > > config > > to HOSTTOOLS to allow access to the host sdl-config. > > > > Signed-off-by: Jonathan Liu > > --- >

Re: [OE-core] [PATCH v2] bitbake.conf: Add sdl-config to HOSTTOOLS if using host SDL

2017-06-27 Thread Jonathan Liu
Hi Richard, On 27 June 2017 at 22:54, Richard Purdie wrote: > On Tue, 2017-06-27 at 11:05 +0200, Patrick Ohly wrote: >> On Thu, 2017-06-01 at 22:15 +1000, Jonathan Liu wrote: >> > >> > If ASSUME_PROVIDES contains libsdl-native, we need to add sdl- >> > config >> > to HOSTTOOLS to allow access to

Re: [OE-core] Never ending stream of bitbake exceptions when the builder runs out of disk space

2017-06-27 Thread Martin Jansa
OK, I've updated my jenkins job for build setup to enable BB_DISKMON_DIRS to prevent such issues in future https://github.com/shr-project/jenkins-jobs/commit/a8c06243d6296d294d5e79abd7d25d3b8a56d040 once verified that it works as expected I'll update all the builds I maintain. On Tue, Jun 27, 20

Re: [OE-core] [PATCH v2] bitbake.conf: Add sdl-config to HOSTTOOLS if using host SDL

2017-06-27 Thread Jonathan Liu
Hi Richard, On 27 June 2017 at 22:56, Jonathan Liu wrote: > Hi Richard, > > On 27 June 2017 at 22:54, Richard Purdie > wrote: >> On Tue, 2017-06-27 at 11:05 +0200, Patrick Ohly wrote: >>> On Thu, 2017-06-01 at 22:15 +1000, Jonathan Liu wrote: >>> > >>> > If ASSUME_PROVIDES contains libsdl-native

Re: [OE-core] [PATCH 5/7] wic: rootfs: make copied rootfs unique

2017-06-27 Thread Ed Bartosh
On Tue, Jun 27, 2017 at 01:21:41PM +0100, Burton, Ross wrote: > Can you squash stuff like this into the first patch, the history doesn't > need to see your working. > This commit doesn't fit to any other from my point of view. It's just a fix for rootfs plugin. I'll try to squash other commits.

[OE-core] [PATCH 0/3] Minor Gtk+3 and libepoxy upgrades

2017-06-27 Thread Jussi Kukkonen
Small upgrades and tweak to Gtk upstream version regex Thanks, Jussi The following changes since commit a5bf271c7c4cf5d3bfdf8d1b05eec70ca43726b8: meta: Add/fix missing Upstream-Status to patches (2017-06-27 10:38:43 +0100) are available in the git repository at: git://git.yoctoproject.or

[OE-core] [PATCH 2/3] gtk+3: Upgrade 3.22.15 -> 3.22.16

2017-06-27 Thread Jussi Kukkonen
A fair amount of bug fixes and improvements. Signed-off-by: Jussi Kukkonen --- .../gtk+/gtk+3/0003-Add-disable-opengl-configure-option.patch | 4 ++-- meta/recipes-gnome/gtk+/{gtk+3_3.22.15.bb => gtk+3_3.22.16.bb}| 4 ++-- ...-icon-utils-native_3.22.15.bb => gtk-icon-utils-native

[OE-core] [PATCH 3/3] libepoxy: Upgrade 1.4.2 -> 1.4.3

2017-06-27 Thread Jussi Kukkonen
Imports the current EGL API registry from Khronos. Makes EGL support optional: this is reflected in the recipe but egl is enabled by default as before. Signed-off-by: Jussi Kukkonen --- .../libepoxy/{libepoxy_1.4.2.bb => libepoxy_1.4.3.bb}| 9 + 1 file changed, 5 insertions(

[OE-core] [PATCH 1/3] gtk+3: Update UPSTREAM_CHECK_REGEX

2017-06-27 Thread Jussi Kukkonen
Avoid versions >= 3.90 (development versions for 4.0). Signed-off-by: Jussi Kukkonen --- meta/recipes-gnome/gtk+/gtk+3.inc| 6 +- meta/recipes-gnome/gtk+/gtk-icon-utils-native_3.22.15.bb | 5 - 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/meta/re

[OE-core] [PATCH v2 0/5] #11662 - wic should mount /boot

2017-06-27 Thread Ed Bartosh
Hi, This patchset adds /boot to the /etc/fstab of root partition, making it mounted on boot. It also fixes reporting and testing issues caused by this change. The patchset also fixes long standing bug: wic updated fstab inplace in rootfs directory. This causes other tasks working with rootfs dire

[OE-core] [PATCH v2 1/5] wic: copy rootfs directory before changing fstab

2017-06-27 Thread Ed Bartosh
wic updates /etc/fstab on root partition if there are valid mount points in .wks When wic runs from bitbake this can cause incorrect results or even breakage of other tasks working with rootfs directory in parallel with do_image_wic. Implemented copying rootfs directory to a temporary location us

[OE-core] [PATCH v2 3/5] wic: rootfs: fix rootfs path reporting

2017-06-27 Thread Ed Bartosh
wic gets rootfs paths from partition object property 'rootfs_dir' and shows them in final report. rootfs plugin sets this property to the temporary path, which causes temporary paths appearing in the report. wic includes rootfs path in the final report. When fstab needs to be updated wic copies r

[OE-core] [PATCH v2 2/5] wic: use absolute paths in rootfs plugin

2017-06-27 Thread Ed Bartosh
Using relative paths can cause copyhardlinktree API to fail as it changes current directory when working. Converted all paths to absolute paths using os.path.realpath. Signed-off-by: Ed Bartosh --- scripts/lib/wic/plugins/source/rootfs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

[OE-core] [PATCH v2 4/5] wic: rootfs: make copied rootfs unique

2017-06-27 Thread Ed Bartosh
Used unique suffix (line number from .wks file) for the copied rootfs directory to avoid possible conflicts. Signed-off-by: Ed Bartosh --- scripts/lib/wic/plugins/source/rootfs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lib/wic/plugins/source/rootfs.py b/scri

[OE-core] [PATCH v2 5/5] wic: add /boot mount point to fstab by default

2017-06-27 Thread Ed Bartosh
wic avoided adding /boot to fstab for no reason. This exception was hardcoded in the wic code. There is no need for this as mountpoint in .wks file is an optional field. It can be used only if user wants to have partitions automatically mounted on system boot. Fixed test_quemu test case failure c

[OE-core] [PATCH v2 0/1] cmake: Use find_program if find_host_program is not available

2017-06-27 Thread Maxime Roussin-Bélanger
When building an application with android toolchain there is no problem, but using another toolchain that doesn't define the macro, cmake exit with en error. The following changes since commit b8358bc61435ec996ecd6931fb6d6d41bb4f710b: bitbake: bitbake-selftest: add bb.tests.event to bitbake-sel

[OE-core] [PATCH v2 1/1] cmake: Use find_program if find_host_program is not available

2017-06-27 Thread Maxime Roussin-Bélanger
CMake does not define the `find_host_program` command we've been using in the cross-compiling code path. It was provided by a widely used Android toolchain file. For compatibility, continue to use `find_host_program` if available, but otherwise use just `find_program`. Upstream-Status: Accepted

[OE-core] ✗ patchtest: failure for cmake: Use find_program if find_host_program is not available (rev2)

2017-06-27 Thread Patchwork
== Series Details == Series: cmake: Use find_program if find_host_program is not available (rev2) Revision: 2 URL : https://patchwork.openembedded.org/series/7466/ State : failure == Summary == Thank you for submitting this patch series to OpenEmbedded Core. This is an automated response. Sev

Re: [OE-core] [PATCH v2 1/1] cmake: Use find_program if find_host_program is not available

2017-06-27 Thread Jussi Kukkonen
On 27 June 2017 at 17:14, Maxime Roussin-Bélanger < maxime.roussinbelan...@gmail.com> wrote: > CMake does not define the `find_host_program` command we've > been using in the cross-compiling code path. It was > provided by a widely used Android toolchain file. For > compatibility, continue to us

[OE-core] [PATCH v3] cmake: Use find_program if find_host_program is not available

2017-06-27 Thread Maxime Roussin-Bélanger
CMake does not define the `find_host_program` command we've been using in the cross-compiling code path. It was provided by a widely used Android toolchain file. For compatibility, continue to use `find_host_program` if available, but otherwise use just `find_program`. Signed-off-by: Maxime Rous

Re: [OE-core] [PATCH v3] cmake: Use find_program if find_host_program is not available

2017-06-27 Thread Otavio Salvador
On Tue, Jun 27, 2017 at 11:47 AM, Maxime Roussin-Bélanger wrote: > CMake does not define the `find_host_program` command we've > been using in the cross-compiling code path. It was > provided by a widely used Android toolchain file. For > compatibility, continue to use `find_host_program` if > a

[OE-core] [PATCH v2 0/6] yocto-compat-layer.py: various enhancements

2017-06-27 Thread Patrick Ohly
While enhancing the layer structure in intel-iot-refkit I ran into various cases where enhancements to the tool were necessary. intel-iot-refkit now has oe-selftests that check all layers using this tool. In addition, the signature checking utility code is imported into a custom test that also cove

[OE-core] [PATCH v2 2/6] yocto-compat-layer.py: tolerate broken world builds during signature diff

2017-06-27 Thread Patrick Ohly
The "test_signatures" test ignored a broken world build when getting signatures, but the code which then tried to analyze a difference found by the test didn't, which prevented printing the difference. Signed-off-by: Patrick Ohly --- scripts/lib/compatlayer/__init__.py | 7 ++- scripts/l

[OE-core] [PATCH v2 3/6] yocto-compat-layer.py: apply test_signatures to all layers

2017-06-27 Thread Patrick Ohly
Software layers were previously allowed to change signatures, but that's not desired for those layers either. The rule that a layer which is "Yocto Compatible 2.0" must not change signatures unless explicitly requested holds for all kinds of layers. However, as this is something that software laye

[OE-core] [PATCH v2 1/6] yocto-compat-layer.py: avoid adding layers more than once

2017-06-27 Thread Patrick Ohly
add_layer_dependencies() might get called more than once, or one of the layer dependencies might already be present. The function should not add layers again because doing so can cause warnings like: WARNING: Duplicate inclusion for .../meta-openembedded/meta-oe/conf/distro/include/meta_oe_secu

[OE-core] [PATCH v2 4/6] yocto-compat-layer.py: add test_world

2017-06-27 Thread Patrick Ohly
"test_signatures" ignores wold build breakage for the sake of reporting differences also when a world build is broken. Therefore we need a dedicated test that a world build at least theoretically can proceed without obvious parse time problems (dependencies, parse errors, dangling .bbappends, etc.)

[OE-core] [PATCH v2 5/6] yocto-compat-layer.py: allow README with suffix

2017-06-27 Thread Patrick Ohly
It may be useful to append a suffix denoting the file format. For example, README.rst is rendered differently when viewed on Github, and also helps editors to switch to a mode more suitable for the format. The tests uses a file pattern to find the README file(s) and treats the one with the shortes

[OE-core] [PATCH v2 6/6] yocto-compat-layer.py: make signature check code reusable

2017-06-27 Thread Patrick Ohly
This moves the main content of test_signature into a helper function. It can be reused by arbitrary tests that need to do a before/after signature comparison. Long-term this might even be useful in oeqa itself. Signed-off-by: Patrick Ohly --- scripts/lib/compatlayer/__init__.py | 66

Re: [OE-core] [PATCH 1/2] oeqa/selftest/{context, case}: Add signal handlers SIG{INT, TERM}

2017-06-27 Thread Aníbal Limón
On 06/27/2017 01:53 AM, Patrick Ohly wrote: > On Mon, 2017-06-26 at 15:42 -0500, Aníbal Limón wrote: >> def run(self, logger, args): >> self._process_args(logger, args) >> + >> +signal.signal(signal.SIGTERM, self._signal_clean_handler) >> +signal.signal(signal.SIGINT

Re: [OE-core] [PATCH v2] bitbake.conf: Add sdl-config to HOSTTOOLS if using host SDL

2017-06-27 Thread Patrick Ohly
On Tue, 2017-06-27 at 21:11 +1000, Jonathan Liu wrote: > Hi Patrick, > > On 27 June 2017 at 20:38, Patrick Ohly wrote: > > On Tue, 2017-06-27 at 20:24 +1000, Jonathan Liu wrote: > >> Hi Patrick, > >> > >> The original problem was that bitbake would print out the error: > >> "libsdl-native is set

Re: [OE-core] [morty][PATCH] archiver: Escape recipe name in regex

2017-06-27 Thread Joshua Watt
On Mon, 2017-06-05 at 21:30 -0500, Joshua Watt wrote: > From: Joshua Watt > > The recipe name needs to be escaped when using it in a regular > expression so > that and special characters are treated literally > > (From OE-Core rev: 53c8cceb744adda1bf899d62071d11b20a5dea98) > > Signed-off-by: Jo

[OE-core] [PATCHv2 1/2] oeqa/selftest/{context, case}: Handle KeyboardInterrupt/SIGINT and SIGTERM

2017-06-27 Thread Aníbal Limón
In order to avoid corrupt local.conf and bblayers.conf adds signal handler for SIGTERM and use try/finally (KeyboardIntrrupt) block to restore previously backuped configuration. [YOCTO #11650] Signed-off-by: Aníbal Limón --- meta/lib/oeqa/selftest/case.py| 36 +++-- meta/lib/oeqa/s

[OE-core] [PATCHv2 2/2] selftest/cases/package: Call parent setUpClass method

2017-06-27 Thread Aníbal Limón
Since config paths are now passed in Test context the setUpClass method is expected to be call. Signed-off-by: Aníbal Limón --- meta/lib/oeqa/selftest/cases/package.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/lib/oeqa/selftest/cases/package.py b/meta/lib/oeqa/selftest/cases/pa

[OE-core] [PATCH] python*-git: Upgrade to version 2.1.5

2017-06-27 Thread Jose Lamego
Both python-git and python3-git need to be upgraded to latest upstream version. Two RDEPENDS are added: "git" and "python-unittest" to python-git recipe and "git" to python3-git recipe. These changes were tested using qemux86 with core-image-minimal. Signed-off-by: Jose Lamego --- meta/recipes

Re: [OE-core] [PATCHv2 1/2] oeqa/selftest/{context, case}: Handle KeyboardInterrupt/SIGINT and SIGTERM

2017-06-27 Thread Patrick Ohly
On Tue, 2017-06-27 at 11:30 -0500, Aníbal Limón wrote: > In order to avoid corrupt local.conf and bblayers.conf adds > signal handler for SIGTERM and use try/finally (KeyboardIntrrupt) block > to restore previously backuped configuration. Thanks for pointing out that SIGTERM isn't going through th

[OE-core] [PATCH] python*-setuptools: upgrade to 36.0.1

2017-06-27 Thread Jose Lamego
Both python-setuptools and python3-setuptools need to be upgraded to latest upstream version. license checksum is now targeted to be performed over the actual license text at license file. These changes were tested using qemux86 with core-image-minimal. Signed-off-by: Jose Lamego --- meta/reci

[OE-core] [PATCHv3 1/2] oeqa/selftest/{context, case}: Handle KeyboardInterrupt/SIGINT and SIGTERM

2017-06-27 Thread Aníbal Limón
In order to avoid corrupt local.conf and bblayers.conf adds signal handler for SIGTERM and use try/finally (KeyboardIntrrupt) block to restore previously backuped configuration. [YOCTO #11650] Signed-off-by: Aníbal Limón --- meta/lib/oeqa/selftest/case.py| 36 +++-- meta/lib/oeqa/s

[OE-core] [PATCHv3 2/2] selftest/cases/package: Call parent setUpClass method

2017-06-27 Thread Aníbal Limón
Since config paths are now passed in Test context the setUpClass method is expected to be call. Signed-off-by: Aníbal Limón --- meta/lib/oeqa/selftest/cases/package.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/lib/oeqa/selftest/cases/package.py b/meta/lib/oeqa/selftest/cases/pa

Re: [OE-core] [PATCH v2 0/5] #11662 - wic should mount /boot

2017-06-27 Thread Otavio Salvador
On Tue, Jun 27, 2017 at 10:28 AM, Ed Bartosh wrote: > The patchset also fixes long standing bug: wic updated fstab > inplace in rootfs directory. This causes other tasks working with > rootfs directory to produce incorrect results or crash. This is > fixed by copying rootfs to the temporary direct

Re: [OE-core] [PATCH v2 0/5] #11662 - wic should mount /boot

2017-06-27 Thread Fabio Berton
The last patch I sent is here: https://patchwork.openembedded.org/patch/139252/ We're using this patch internally with Pyro branch. I can rework to apply on master. On 06/27/2017 05:35 PM, Otavio Salvador wrote: On Tue, Jun 27, 2017 at 10:28 AM, Ed Bartosh wrote: The patchset also fixes lo

Re: [OE-core] [PATCHv3 1/2] oeqa/selftest/{context, case}: Handle KeyboardInterrupt/SIGINT and SIGTERM

2017-06-27 Thread Patrick Ohly
On Tue, 2017-06-27 at 15:25 -0500, Aníbal Limón wrote: > In order to avoid corrupt local.conf and bblayers.conf adds > signal handler for SIGTERM and use try/finally (KeyboardIntrrupt) block > to restore previously backuped configuration. Looks good to me now, with one minor nitpick which I should

[OE-core] [PATCH] gtk-doc: Handle floating gtk-doc dependency

2017-06-27 Thread Richard Purdie
Allow the tests to be explicitly disabled to avoid floating dependnecy issues. This is not really an issue with RSS but is on previous releases. Currently the tests are enabled/disabled depending on the presence of glib-2.0. Signed-off-by: Richard Purdie --- .../gtk-doc/files/conditionaltests.pa

[OE-core] ✗ patchtest: failure for gtk-doc: Handle floating gtk-doc dependency

2017-06-27 Thread Patchwork
== Series Details == Series: gtk-doc: Handle floating gtk-doc dependency Revision: 1 URL : https://patchwork.openembedded.org/series/7489/ State : failure == Summary == Thank you for submitting this patch series to OpenEmbedded Core. This is an automated response. Several tests have been exec

[OE-core] [PATCH] gnupg: fix floating dependancy on gnutls

2017-06-27 Thread Saul Wold
gunpg added TLS support to the dirmngr for 2.1.0, mostly we linked with gnutls and had the RDEPENDS for gnutls. Since we had TLS support continue enabling it by default. Signed-off-by: Saul Wold --- meta/recipes-support/gnupg/gnupg_2.1.20.bb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletion

Re: [OE-core] [PATCH v2 1/6] yocto-compat-layer.py: avoid adding layers more than once

2017-06-27 Thread Christopher Larson
On Tue, Jun 27, 2017 at 8:33 AM, Patrick Ohly wrote: > add_layer_dependencies() might get called more than once, or one of > the layer dependencies might already be present. The function should > not add layers again because doing so can cause warnings like: > > WARNING: Duplicate inclusion for

[OE-core] [PATCH v3] pkg-config-native: allow kernel to be build with esdk

2017-06-27 Thread Saul Wold
When the kernel's menuconfig target is called while using the esdk or an esdk-based container, the pkg-config info that is found is not correct. The pkg-config info is for the target, but we need the eSDK's information in order to build the host based menuconfig. The new pkg-config-native script c

Re: [OE-core] [PATCH 1/2] kernel: add package version in dependencies for kernel packages

2017-06-27 Thread Bruce Ashfield
On Tue, Jun 27, 2017 at 4:51 AM, Razvan Heghedus wrote: > > > On 06/26/2017 06:50 PM, Bruce Ashfield wrote: > > > > On Wed, Jun 21, 2017 at 8:00 AM, Heghedus Razvan > wrote: > >> Make all dependencies from kernel family packages which depend >> on another kernel related package to depend on the

Re: [OE-core] [PATCH 2/2] kernel: user defined KERNEL_VERSION_PKG_NAME

2017-06-27 Thread Bruce Ashfield
On Tue, Jun 27, 2017 at 5:15 AM, Razvan Heghedus wrote: > > > On 06/26/2017 06:52 PM, Bruce Ashfield wrote: > > > > On Wed, Jun 21, 2017 at 8:00 AM, Heghedus Razvan > wrote: > >> Add possibility to set KERNEL_VERSION_PKG_NAME to a user >> defined value. >> >> Signed-off-by: Heghedus Razvan >> -

[OE-core] [PATCH] binutils: update SRCREV to fix powerpc gold link bug

2017-06-27 Thread Randy MacLeod
Update to the latest commit on the 2.28 branch to pick up: a3e00a8 [GOLD] Avoid duplicate PLT stub symbols on ppc32 along with several backported bug fixes for arm*, etc. This resolves the systemd link error for qemuppc with the error message: .../powerpc-oe-linux-ld.gold: error: invalid

[OE-core] [PATCH 0/3] Enhancement on devtool edit-recipe

2017-06-27 Thread Chang Rebecca Swee Fun
Hi, The patches in this series are to enhance devtool edit-recipe as a request from Bugzilla #11434. This first enhancement I did was to ensure devtool edit-recipe not to print out ugly tracebacks that is not informative by catching the exception. However, this has introduced new tracebacks wher

[OE-core] [PATCH 2/3] scriptutils: pass in logger as parameter

2017-06-27 Thread Chang Rebecca Swee Fun
logger was not defined in scriptutils.py based on the observation in python traceback. Traceback (most recent call last): File "/workdir/poky/scripts/devtool", line 351, in ret = main() File "/workdir/poky/scripts/devtool", line 338, in main ret = args.func(args, config, basepath, wor

[OE-core] [PATCH 3/3] devtool: find-recipe: enable new subcommand for devtool

2017-06-27 Thread Chang Rebecca Swee Fun
devtool find-recipe will prints out the path to the recipe in a workspace. This subcommand can also help to find recipe outside of current workspace using "-a" or "--any-recipe" option. This enhancement helps developer to get the recipe path when working with devtool. [YOCTO #11434] Signed-off-

[OE-core] [PATCH 1/3] scriptutils: exit politely when no text editor available

2017-06-27 Thread Chang Rebecca Swee Fun
devtool edit-recipe now has ugly tracebacks if executed without an editor available. This happens in the build containers whenever no text editor is available. subprocess.check_call will run text editing command with recipe path provided. It will wait for command to complete. If the return code wa