[OE-core] [PATCH 0/3] 11372: allow to set varflags in image_* classes

2017-06-14 Thread Ed Bartosh
Hi, This patchset fixes Bug 11372 - image.bbclass forces some flags for do_image_X tasks by replacing setVarFlag calls with appendVarFlag for prefuncs, postfuncs and subimages flags. This should allow to modify these flags in image_* classes. The patchset contains a little bit of code cleanup a

[OE-core] [PATCH 1/3] image.bbclass: cleanup: add new variable "task"

2017-06-14 Thread Ed Bartosh
Replaced repeated expression "do_image_%s" % t with a variable 'task' to simplify the code and increase readability. Signed-off-by: Ed Bartosh --- meta/classes/image.bbclass | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/meta/classes/image.bbclas

[OE-core] [PATCH 3/3] image.bbclass: fix setting of vardeps flag

2017-06-14 Thread Ed Bartosh
Added leading space to vardeps to avoid flag value to be added to the existing value without a separator. Signed-off-by: Ed Bartosh --- meta/classes/image.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index e18

[OE-core] [PATCH 2/3] image.bbclass: improve setup of flags

2017-06-14 Thread Ed Bartosh
Replaced setVarFlag calls to appendVarFlag to allow modification of prefuncs, postfuncs and subimages flags in inherited image classes. [YOCTO #11372] Signed-off-by: Ed Bartosh --- meta/classes/image.bbclass | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/meta/classes

Re: [OE-core] [PATCH] devtool: deploy-target: Support stripped libs and execs

2017-06-14 Thread Richard Purdie
On Wed, 2017-06-14 at 08:24 +0200, Tobias Hagelborn wrote: > New devtool deploy-target option --strip which enables deploying > stripped binaries, saving some space on target. > > * Copies the files of ${D} into a new directory and strips them in > place > * Based on sysroot_strip from staging.bbc

Re: [OE-core] [PATCH v3] python3: make readline and gdbm support conditional.

2017-06-14 Thread Puustinen, Ismo
On Tue, 2017-06-13 at 20:36 +0100, Burton, Ross wrote: > If gdbm isn't present then the gdbm package isn't generated at all, > which is as expected.  python3-readline just contains the rlcompleter > package which is basically an implementation detail and could > arguably be deleted in a do_install_

[OE-core] [PATCHv2] python-3.5: Move bz2.py, lzma.py and _compression.py from python3-misc to python3-compression

2017-06-14 Thread Martin Jansa
* the /usr/lib/python3.5/_compression.py file is possibly incorrectly included in python3-misc. This runtime dependency is needed in order to use e.g. gzip.py in runtime: >>> import tarfile, zlib, gzip Traceback (most recent call last): File "", line 1, in File "/usr/lib/python3.5/

[OE-core] ✗ patchtest: failure for python-3.5: add runtime dependency from python3-compression on python3-misc (rev2)

2017-06-14 Thread Patchwork
== Series Details == Series: python-3.5: add runtime dependency from python3-compression on python3-misc (rev2) Revision: 2 URL : https://patchwork.openembedded.org/series/6758/ State : failure == Summary == Thank you for submitting this patch series to OpenEmbedded Core. This is an automate

Re: [OE-core] [PATCH v2 1/2] bitbake.conf: DISTRO_FEATURES as overrides

2017-06-14 Thread Patrick Ohly
On Tue, 2017-06-13 at 09:14 +0200, Patrick Ohly wrote: > On Mon, 2017-06-12 at 19:23 -0400, Denys Dmytriyenko wrote: > > On Mon, Jun 12, 2017 at 11:05:19PM +0200, Patrick Ohly wrote: > > > On Mon, 2017-06-12 at 15:46 -0400, Denys Dmytriyenko wrote: > > > > This now breaks parsing my distro config o

[OE-core] [PATCH 1/2] Revert "bitbake.conf: DISTRO_FEATURES as overrides"

2017-06-14 Thread Patrick Ohly
This reverts commit 3b3ae91a22d6f685e804df4f32cdeebe1bd6bd88. It turned out that the code which expands DISTRO_FEATURES early during base config parsing can fail because some entries in DISTRO_FEATURES might call Python functions like base_conditional() from base.bbclass which aren't defined yet.

[OE-core] [PATCH 2/2] distrooverrides.bbclass: DISTRO_FEATURES as overrides

2017-06-14 Thread Patrick Ohly
This achieves the same goal as the same change to bitbake.conf itself, but because the class gets added later as part expanding INHERIT, this new approach is less likely to run into problems when DISTRO_FEATURES contains complex code. Another difference is that the class currently does not get inh

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

2017-06-14 Thread Jonathan Liu
On 6 June 2017 at 09:59, 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. > > (From OE-Core rev: eeb248c1a017e07e36b6fbaafe45006e3869f41a) > > Signed-off-by: Jonathan Liu > Signed-off-by: Ross Burton

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

2017-06-14 Thread Richard Purdie
On Wed, 2017-06-14 at 20:42 +1000, Jonathan Liu wrote: > On 6 June 2017 at 09:59, 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. > > > > (From OE-Core rev: eeb248c1a017e07e36b6fbaafe45

Re: [OE-core] [PATCH 4/5] sstatetests: Use higher parallelism value

2017-06-14 Thread Richard Purdie
On Tue, 2017-06-13 at 08:55 -0700, Andre McCurdy wrote: > On Tue, Jun 13, 2017 at 2:49 AM, Richard Purdie > wrote: > > > > Since the processing code for signature generation is now threaded, > > use higher thread values as examples in this code for better > > performance. > > > > Signed-off-by:

[OE-core] ✗ patchtest: failure for "[v2] bitbake.conf: DISTRO_FEAT..." and 1 more (rev3)

2017-06-14 Thread Patchwork
== Series Details == Series: "[v2] bitbake.conf: DISTRO_FEAT..." and 1 more (rev3) Revision: 3 URL : https://patchwork.openembedded.org/series/7163/ State : failure == Summary == Thank you for submitting this patch series to OpenEmbedded Core. This is an automated response. Several tests have

[OE-core] ✗ patchtest: failure for "[v2] bitbake.conf: DISTRO_FEAT..." and 1 more (rev2)

2017-06-14 Thread Patchwork
== Series Details == Series: "[v2] bitbake.conf: DISTRO_FEAT..." and 1 more (rev2) Revision: 2 URL : https://patchwork.openembedded.org/series/7163/ State : failure == Summary == Thank you for submitting this patch series to OpenEmbedded Core. This is an automated response. Several tests have

[OE-core] list

2017-06-14 Thread Akselin Pekka
List -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core

[OE-core] [PATCH v4 0/7] Fix for #7040 - Support for /usr merge

2017-06-14 Thread Amarnath Valluri
Changes in v4: - root symlinks creation for nativesdk images. - added PACKAGECONFIG option for 'usrmerge' in systemd Amarnath Valluri (7): bitbake.conf: support for merged usr with DISTRO_FEATURE usrmerge cross.bbclass: merged /usr support systemd: changes to support merged /usr im

[OE-core] [PATCH v4 1/7] bitbake.conf: support for merged usr with DISTRO_FEATURE usrmerge

2017-06-14 Thread Amarnath Valluri
A new configuration variable ${root_prefix} added, which shall be used by all base_{lib,bin,sbin}dir variables. When usrmerge DISTRO_FEATURE is enabled ${root_prefix} points to ${exec_prefix} otherwise to ${base_prefix} Signed-off-by: Amarnath Valluri --- meta/conf/bitbake.conf | 10 ++

[OE-core] [PATCH v4 2/7] cross.bbclass: merged /usr support

2017-06-14 Thread Amarnath Valluri
Use ${root_prefix} instead of ${base_prefix} while setting ${target_base_prefix}, otherwise we might loose the root prefix configuration change in case of 'usrmerge' distro feature is enabled. Signed-off-by: Amarnath Valluri --- meta/classes/cross.bbclass | 2 +- 1 file changed, 1 insertion(+),

[OE-core] [PATCH v4 6/7] meta/lib/oe/sdk.py: support added for executing pre-target commands

2017-06-14 Thread Amarnath Valluri
Added a new POPULATE_SDK_PRE_TARTET_COMMAND variable, which can contain functions need to be executed at pre traget sysroot creation phase. classes/populate_sdk_base.bbclass: Added POPULATE_SDK_PRE_TARTET_COMMAND to sdk command variables list. Signed-off-by: Amarnath Valluri --- meta/classes/po

[OE-core] [PATCH v4 3/7] systemd: changes to support merged /usr

2017-06-14 Thread Amarnath Valluri
- Enable/disable the split-usr support in systemd based on 'usrmerge' DISTRO_FEATURE. - Modify rootprefix to point to ${root_prefix}, rather than ${base_prefix}. - And fixed firmware path to use ${nonarch_base_libdir} instead of hard-coded '/lib', because when 'usrmege' distro feature enabled t

[OE-core] [PATCH v4 5/7] insane.bbclass: Add package QA check for merged /usr.

2017-06-14 Thread Amarnath Valluri
This check makes sure that, when usrmerge distro feature enabled, no package installs files to root (/bin, /sbin, /lib, /lib64) folders. Signed-off-by: Amarnath Valluri --- meta/classes/insane.bbclass | 16 1 file changed, 16 insertions(+) diff --git a/meta/classes/insane.bbcla

[OE-core] [PATCH v4 4/7] image: create symlinks needed for merged /usr

2017-06-14 Thread Amarnath Valluri
Prepare the symlinks required for merged /usr at the time of rootfs creation. The links created in rootfs are: /bin --> /usr/sbin /sbin --> /usr/sbin /lib --> /usr/lib /lib64 --> /usr/lib64 We cannot make these symlinks as part of 'base-files' or some other package. Because at rootfs creation, in

[OE-core] [PATCH v4 7/7] image.bbclass: create root symlinks in nativesdk target sysroot

2017-06-14 Thread Amarnath Valluri
To match with the target image, the generated nativesdk's target sysroot also should have the root symlinks(/lib*, /bin/, /sbin). So, extended the 'create_merged_usr_symlinks' to reuse symlink creation part even for nativesdk using POPULATE_SDK_PRE_TARGET_COMMAND. Signed-off-by: Amarnath Valluri

Re: [OE-core] [PATCH] devtool: deploy-target: Support stripped libs and execs

2017-06-14 Thread Tobias Hagelborn
On 06/14/2017 11:28 AM, Richard Purdie wrote: On Wed, 2017-06-14 at 08:24 +0200, Tobias Hagelborn wrote: New devtool deploy-target option --strip which enables deploying stripped binaries, saving some space on target. * Copies the files of ${D} into a new directory and strips them in place * Ba

Re: [OE-core] [PATCH v4 1/7] bitbake.conf: support for merged usr with DISTRO_FEATURE usrmerge

2017-06-14 Thread Richard Purdie
On Wed, 2017-06-14 at 14:30 +0300, Amarnath Valluri wrote: > A new configuration variable ${root_prefix} added, which shall be used by all > base_{lib,bin,sbin}dir variables. When usrmerge DISTRO_FEATURE is enabled > ${root_prefix} points to ${exec_prefix} otherwise to ${base_prefix} > > Signed-of

Re: [OE-core] [PATCH v4] runtime/dnf: Add new dnf test cases

2017-06-14 Thread Alexander Kanavin
On 06/13/2017 10:56 PM, jose.perez.carra...@linux.intel.com wrote: From: Jose Perez Carranza Add test cases to test “exclude” and “installroot“ options, also modify the logic of filtering packages on the feed to have all the packages needed by the tests. Looks good. Hopefully this is the last

Re: [OE-core] [PATCH v4] runtime/dnf: Add new dnf test cases

2017-06-14 Thread Jose Perez Carranza
On 06/14/2017 07:00 AM, Alexander Kanavin wrote: On 06/13/2017 10:56 PM, jose.perez.carra...@linux.intel.com wrote: From: Jose Perez Carranza Add test cases to test “exclude” and “installroot“ options, also modify the logic of filtering packages on the feed to have all the packages needed by

[OE-core] State of bitbake world, Failed tasks 2017-06-12

2017-06-14 Thread Martin Jansa
http://www.openembedded.org/wiki/Bitbake_World_Status == Number of issues - stats == {| class='wikitable' !|Date !!colspan='3'|Failed tasks !!|Signatures !!colspan='14'|QA !!Comment |- || ||qemuarm ||qemux86 ||qemux86_64

[OE-core] Patchwork git hooks for meta-oe repository

2017-06-14 Thread Martin Jansa
I don't know if they are supposed to work now, but the output from git remote indicates that they probably don't work: remote: /usr/local/patchwork/tools/post-receive_standalone.hook: line 65: $4: unbound variable remote: ++ git -C Next rev-parse remote: ++ git -C Next rev-list --stdin --no-merge

Re: [OE-core] [PATCH v4 1/7] bitbake.conf: support for merged usr with DISTRO_FEATURE usrmerge

2017-06-14 Thread Valluri, Amarnath
On Wed, 2017-06-14 at 12:48 +0100, Richard Purdie wrote: > On Wed, 2017-06-14 at 14:30 +0300, Amarnath Valluri wrote: > > > > A new configuration variable ${root_prefix} added, which shall be > > used by all > > base_{lib,bin,sbin}dir variables. When usrmerge DISTRO_FEATURE is > > enabled > > ${ro

[OE-core] [PATCH v5] bitbake.conf: support for merged usr with DISTRO_FEATURE usrmerge

2017-06-14 Thread Amarnath Valluri
A new configuration variable ${root_prefix} added, which shall be used by all base_{lib,bin,sbin}dir variables. When usrmerge DISTRO_FEATURE is enabled ${root_prefix} points to ${exec_prefix} otherwise to ${base_prefix} Signed-off-by: Amarnath Valluri --- meta/conf/bitbake.conf | 10 ++

Re: [OE-core] [PATCH v4 7/7] image.bbclass: create root symlinks in nativesdk target sysroot

2017-06-14 Thread Peter Kjellerstedt
> -Original Message- > From: openembedded-core-boun...@lists.openembedded.org > [mailto:openembedded-core-boun...@lists.openembedded.org] On Behalf Of > Amarnath Valluri > Sent: den 14 juni 2017 13:31 > To: openembedded-core@lists.openembedded.org > Subject: [OE-core] [PATCH v4 7/7] image.b

[OE-core] [PATCH 3/3] package_ipk: Parallelise ipk creation

2017-06-14 Thread Richard Purdie
Allow the creation of ipks to happen in parallel, making best use of resources on multiprocessor systems. Signed-off-by: Richard Purdie --- meta/classes/package_ipk.bbclass | 19 +-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/meta/classes/package_ipk.bbclass b

[OE-core] [PATCH 1/3] pseudo: Handle too many files deadlock

2017-06-14 Thread Richard Purdie
If we have large amounts of parallelism, pseudo can end up with too many open connections and will no longer accept further connections, hanging. This patch works around that by closing some clients, allowing turnover of connections and unblocking the system. The downside is a small but theoretical

[OE-core] [PATCH 2/3] package_deb: Enable multithreaded package creation

2017-06-14 Thread Richard Purdie
Allow the creation of debs to happen in parallel, making best use of resources on multiprocessor systems. Signed-off-by: Richard Purdie --- meta/classes/package_deb.bbclass | 19 +-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/meta/classes/package_deb.bbclass b

Re: [OE-core] [PATCH 1/3] pseudo: Handle too many files deadlock

2017-06-14 Thread Gary Thomas
On 2017-06-14 15:42, Richard Purdie wrote: If we have large amounts of parallelism, pseudo can end up with too many open connections and will no longer accept further connections, hanging. This patch works around that by closing some clients, allowing turnover of connections and unblocking the sy

[OE-core] ✗ patchtest: failure for "pseudo: Handle too many files ..." and 2 more

2017-06-14 Thread Patchwork
== Series Details == Series: "pseudo: Handle too many files ..." and 2 more Revision: 1 URL : https://patchwork.openembedded.org/series/7239/ State : failure == Summary == Thank you for submitting this patch series to OpenEmbedded Core. This is an automated response. Several tests have been e

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

2017-06-14 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 script checks b

Re: [OE-core] [PATCH 3/3] package_ipk: Parallelise ipk creation

2017-06-14 Thread Denys Dmytriyenko
On Wed, Jun 14, 2017 at 02:42:37PM +0100, Richard Purdie wrote: > Allow the creation of ipks to happen in parallel, making best use of resources > on multiprocessor systems. This is nice! Thanks for looking into the issue of not optimal utilization of all the available processors and cores. > S

[OE-core] [PATCH 01/10] gcc: Introduce a knob to configure gcc to default to PIE

2017-06-14 Thread Khem Raj
GCCPIE flag which is empty by default adds "--enable-default-pie" configure option for harderned distros We do not require to add -fpie -pie flag externally anymore Signed-off-by: Khem Raj --- meta/conf/distro/include/security_flags.inc| 4 +++- meta/recipes-devtools/gcc/gcc-configure-c

[OE-core] [PATCH 00/10] Add GCCPIE knob to configure gcc with --enable-default-pie

2017-06-14 Thread Khem Raj
* This patchset add a switch to configure gcc driver with PIE defaults * Add support for generating static PIE in gcc * Gets rid of lot of bandaids from distro security flags file * Adjust recipes for new way of specifying pie * Upgrade and Fix mips build for ffmpeg along the way The following cha

[OE-core] [PATCH 02/10] security_flags.inc: Delete pinnings for SECURITY_NO_PIE_CFLAGS

2017-06-14 Thread Khem Raj
GCC is configured correctly to pass PIE cflags/ldflags Signed-off-by: Khem Raj --- meta/conf/distro/include/security_flags.inc | 83 - 1 file changed, 22 insertions(+), 61 deletions(-) diff --git a/meta/conf/distro/include/security_flags.inc b/meta/conf/distro/inclu

[OE-core] [PATCH 03/10] distutils, setuptools: Delete use of SECURITY_NO_PIE_CFLAGS

2017-06-14 Thread Khem Raj
gcc can handle PIE in gcc driver Signed-off-by: Khem Raj --- meta/classes/distutils-common-base.bbclass | 2 -- meta/classes/setuptools.bbclass| 2 -- 2 files changed, 4 deletions(-) diff --git a/meta/classes/distutils-common-base.bbclass b/meta/classes/distutils-common-base.bbclas

[OE-core] [PATCH 04/10] ffmpeg: Upgrade to 3.3.2 stable

2017-06-14 Thread Khem Raj
* Fix mips/mips64 along the way, it was broken in 3.3 as well Signed-off-by: Khem Raj --- .../ffmpeg/ffmpeg/0001-build-fix-for-mips.patch| 44 ++ .../ffmpeg/{ffmpeg_3.3.bb => ffmpeg_3.3.2.bb} | 5 ++- 2 files changed, 47 insertions(+), 2 deletions(-) create mode 10

[OE-core] [PATCH 10/10] valgrind: Remove -no-pie from cflags

2017-06-14 Thread Khem Raj
It has been moved to distro security include file Signed-off-by: Khem Raj --- meta/recipes-devtools/valgrind/valgrind_3.12.0.bb | 1 - 1 file changed, 1 deletion(-) diff --git a/meta/recipes-devtools/valgrind/valgrind_3.12.0.bb b/meta/recipes-devtools/valgrind/valgrind_3.12.0.bb index d7b6d770

[OE-core] [PATCH 06/10] zlib: Pass pre-calculate uname enable re-entrant flags

2017-06-14 Thread Khem Raj
Fix ptest generation Signed-off-by: Khem Raj --- meta/recipes-core/zlib/zlib_1.2.11.bb | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/meta/recipes-core/zlib/zlib_1.2.11.bb b/meta/recipes-core/zlib/zlib_1.2.11.bb index d4a81820df..ba216f679a 100644 --- a/meta/re

[OE-core] [PATCH 09/10] libunwind: We set -fPIE in security flags now if gcc is not configured for default PIE

2017-06-14 Thread Khem Raj
Signed-off-by: Khem Raj --- meta/recipes-support/libunwind/libunwind_1.2.bb | 4 1 file changed, 4 deletions(-) diff --git a/meta/recipes-support/libunwind/libunwind_1.2.bb b/meta/recipes-support/libunwind/libunwind_1.2.bb index e598e40c6f..c6312f24fd 100644 --- a/meta/recipes-support/libu

[OE-core] [PATCH 07/10] gcc-sanitizer: Fix build with glibc 2.26

2017-06-14 Thread Khem Raj
sigaltstack is no more exposed by glibc see (bug 21517) therefore adjust to use stack_t instead Use res_state typedef instead of referring to __res_state struct Signed-off-by: Khem Raj --- meta/recipes-devtools/gcc/gcc-7.1.inc | 1 + ...r-Use-stack_t-instead-of-struct-sigaltsta.p

[OE-core] [PATCH 05/10] gobject-introspection: Disable generating static lbraries

2017-06-14 Thread Khem Raj
Signed-off-by: Khem Raj --- meta/recipes-gnome/gobject-introspection/gobject-introspection_1.50.0.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/recipes-gnome/gobject-introspection/gobject-introspection_1.50.0.bb b/meta/recipes-gnome/gobject-introspection/gobject-introspection_1.50

[OE-core] [PATCH 08/10] gcc7: Enable static PIE

2017-06-14 Thread Khem Raj
Signed-off-by: Khem Raj --- meta/recipes-devtools/gcc/gcc-7.1.inc | 1 + .../gcc/gcc-7.1/0049-gcc-Enable-static-PIE.patch | 37 ++ 2 files changed, 38 insertions(+) create mode 100644 meta/recipes-devtools/gcc/gcc-7.1/0049-gcc-Enable-static-PIE.patch diff --

[OE-core] [PATCH 3/7] libxml2: Fix CVE-2017-9047 and CVE-2017-9048

2017-06-14 Thread Andrej Valek
xmlSnprintfElementContent failed to correctly check the available buffer space in two locations. Fixes bug 781333 and bug 781701 CVE: CVE-2017-9047 CVE-2017-9048 Signed-off-by: Andrej Valek --- .../libxml2-CVE-2017-9047_CVE-2017-9048.patch | 103 + meta/recipes-core/lib

[OE-core] [PATCH 0/7] Fix multiple CVEs

2017-06-14 Thread Andrej Valek
Fix CVE: - CVE-2017-0663 - CVE-2017-9047 - CVE-2017-9048 - CVE-2017-9049 - CVE-2017-9050 - CVE-2017-5969 - Sync necessary changes for CVE fixing from master. Andrej Valek (7): libxml2-2.9.4: Disable LeakSanitizer when running API testsFix CVE-2016-4658 libxml2-2.9.4: Avoid reparsing

[OE-core] [PATCH 7/7] libxml2: Revert "Add an XML_PARSE_NOXXE flag to block all entities loading even local"

2017-06-14 Thread Andrej Valek
The new flag doesn't work and the change even broke the XML_PARSE_NONET option. Signed-off-by: Andrej Valek --- .../libxml/libxml2/CVE-2016-9318.patch | 207 - meta/recipes-core/libxml/libxml2_2.9.4.bb | 1 - 2 files changed, 208 deletions(-) delete mo

[OE-core] [PATCH 2/7] libxml2-2.9.4: Avoid reparsing and simplify control flow in xmlParseStartTag2

2017-06-14 Thread Andrej Valek
Signed-off-by: Andrej Valek --- ...ibxml2-fix_and_simplify_xmlParseStartTag2.patch | 591 + meta/recipes-core/libxml/libxml2_2.9.4.bb | 1 + 2 files changed, 592 insertions(+) create mode 100644 meta/recipes-core/libxml/libxml2/libxml2-fix_and_simplify_xmlParseSta

[OE-core] [PATCH 4/7] libxml2: Fix CVE-2017-9049 and CVE-2017-9050

2017-06-14 Thread Andrej Valek
Fix handling of parameter-entity references There were two bugs where parameter-entity references could lead to an unexpected change of the input buffer in xmlParseNameComplex and xmlDictLookup being called with an invalid pointer. Fixes bug 781205 and bug 781361 CVE: CVE-2017-9049 CVE-2017-9050

[OE-core] [PATCH 5/7] libxml2-2.9.4: Fix CVE-2017-5969

2017-06-14 Thread Andrej Valek
Fix NULL pointer deref in xmlDumpElementContent Can only be triggered in recovery mode. Fixes bug 758422 CVE: CVE-2017-5969 Signed-off-by: Andrej Valek --- .../libxml/libxml2/libxml2-CVE-2017-5969.patch | 62 ++ meta/recipes-core/libxml/libxml2_2.9.4.bb | 1 +

[OE-core] [PATCH 1/7] libxml2-2.9.4: Disable LeakSanitizer when running API testsFix CVE-2016-4658

2017-06-14 Thread Andrej Valek
Makefile.am: Disable LeakSanitizer when running API tests The autogenerated API tests leak memory. Upstream-Status: Backported - [https://git.gnome.org/browse/libxml2/commit/?id=ac9a4560ee85b18811ff8ab7791ddfff7b144b0a] CVE: - Signed-off-by: Andrej Valek --- meta/recipes-core/libxml/libxml2/ru

[OE-core] [PATCH 6/7] libxml2: Fix CVE-2017-0663

2017-06-14 Thread Andrej Valek
Fix type confusion in xmlValidateOneNamespace Comment out code that casts xmlNsPtr to xmlAttrPtr. ID types on namespace declarations make no practical sense anyway. Fixes bug 780228 CVE: CVE-2017-0663 Signed-off-by: Andrej Valek --- .../libxml/libxml2/libxml2-CVE-2017-0663.patch | 40 +

[OE-core] ✗ patchtest: failure for Fix multiple CVEs

2017-06-14 Thread Patchwork
== Series Details == Series: Fix multiple CVEs Revision: 1 URL : https://patchwork.openembedded.org/series/7243/ State : failure == Summary == Thank you for submitting this patch series to OpenEmbedded Core. This is an automated response. Several tests have been executed on the proposed serie

Re: [OE-core] [PATCH 1/7] libxml2-2.9.4: Disable LeakSanitizer when running API testsFix CVE-2016-4658

2017-06-14 Thread Burton, Ross
On 14 June 2017 at 16:26, Andrej Valek wrote: > CVE: - > If there's no CVE, please don't set the tag. Also: Applying: libxml2-2.9.4: Disable LeakSanitizer when running API testsFix CVE-2016-4658 error: cannot convert from y to UTF-8 fatal: could not parse patch When it asked you what encoding

Re: [OE-core] [PATCH] devtool: deploy-target: Support stripped libs and execs

2017-06-14 Thread Leonardo Sandoval
> > def register_commands(subparsers, context): > """Register devtool subcommands from the deploy plugin""" > + > parser_deploy = subparsers.add_parser('deploy-target', >help='Deploy recipe output files > to live target machine', >

Re: [OE-core] [PATCH 3/3] package_ipk: Parallelise ipk creation

2017-06-14 Thread Leonardo Sandoval
On Wed, 2017-06-14 at 14:42 +0100, Richard Purdie wrote: > Allow the creation of ipks to happen in parallel, making best use of resources > on multiprocessor systems. > > Signed-off-by: Richard Purdie > --- > meta/classes/package_ipk.bbclass | 19 +-- > 1 file changed, 17 inserti

Re: [OE-core] Patchwork git hooks for meta-oe repository

2017-06-14 Thread Jose Lamego
On 06/14/2017 07:57 AM, Martin Jansa wrote: > I don't know if they are supposed to work now, but the output from git > remote indicates that they probably don't work: > Yes, we found this issue when enabling the hook for automated updates for all the Patchwork projects. I've disabled the hook wh

[OE-core] [PATCH 11/11] webkitgtk: Upgrade to 2.16.3

2017-06-14 Thread Khem Raj
Use bfd linker on ppc, this is because gold fails to link webkit libraries when PIE is enabled Signed-off-by: Khem Raj --- meta/recipes-sato/webkit/webkitgtk/ppc-musl-fix.patch| 12 ++-- .../webkit/{webkitgtk_2.16.1.bb => webkitgtk_2.16.3.bb} | 5 +++-- 2 files changed, 9 i

Re: [OE-core] [PATCH v2 2/6] base.bbclass: initial support for binary reproducibility

2017-06-14 Thread Martin Jansa
For some recipes (llvm, chromium, chromium-wayland) I've noticed this function to fail with: ERROR: llvm3.3-3.3-r0 do_unpack: Error executing a python function in exec_python_func() autogenerated: The stack trace of python calls that resulted in this exception/failure was: File: 'exec_python_func

[OE-core] [PATCH] depmodwrapper-cross: conditionally inherit nopackages

2017-06-14 Thread leonardo . sandoval . gonzalez
From: Leonardo Sandoval The class nopackages deletes tasks needed by the archiver, so in case the latter is globally inherited, do not inherit nopackages. Without this patch, the following error occurs: ERROR: Task do_deploy_archives in .../meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.b

Re: [OE-core] [PATCH v2 2/6] base.bbclass: initial support for binary reproducibility

2017-06-14 Thread Bystricky, Juro
Thanks, it seems there is not-too-great error checking implemented. There is an assumption if there is a git folder there is also a git repo (and "git" binary in PATH). Seems the assumption is wrong. I'll add some error checking/improved error message. The problem with git repos is they modify t

Re: [OE-core] [PATCH 07/10] gcc-sanitizer: Fix build with glibc 2.26

2017-06-14 Thread Burton, Ross
On 14 June 2017 at 16:23, Khem Raj wrote: > sigaltstack is no more exposed by glibc see (bug 21517) > therefore adjust to use stack_t instead > > Use res_state typedef instead of referring to __res_state struct > Doesn't work against master: | In file included from ../../../../../../../../../wo

Re: [OE-core] [PATCH 07/10] gcc-sanitizer: Fix build with glibc 2.26

2017-06-14 Thread Khem Raj
On Wed, Jun 14, 2017 at 3:47 PM Burton, Ross wrote: > > On 14 June 2017 at 16:23, Khem Raj wrote: > >> sigaltstack is no more exposed by glibc see (bug 21517) >> therefore adjust to use stack_t instead >> >> Use res_state typedef instead of referring to __res_state struct >> > > Doesn't work aga

Re: [OE-core] [PATCH][morty] linux-yocto/4.8: update to 4.8.24

2017-06-14 Thread akuster808
On 06/08/2017 11:39 AM, Bruce Ashfield wrote: Integration the -stable updates to 4.8, which comprise the following commits: merged to staging. thanks, armin ae51b3b4efe6 Linux 4.8.24 accb950219c0 nvme/pci: Disable on removal when disconnected 995be68699ef padata: avoid race in

[OE-core] [PATCH] image_types.bbclass: Added default argument for ubi and ubifs image creation

2017-06-14 Thread yin . thong . choong
From: Choong YinThong Added default argument for ubi and ubifs image creation. MKUBIFS_ARGS and UBINIZE_ARGS both argument still able to edit in local.conf [YOCTO #11589] Signed-off-by: Choong YinThong --- meta/classes/image_types.bbclass | 9 + 1 file changed, 9 insertions(+) diff -

[OE-core] [PATCH] ubi and ubifs image compression failed

2017-06-14 Thread yin . thong . choong
From: Choong YinThong Default argument added into bbclass for ubi and ubifs image creation Choong YinThong (1): image_types.bbclass: Added default argument for ubi and ubifs image creation meta/classes/image_types.bbclass | 9 + 1 file changed, 9 insertions(+) -- 2.7.4 --

Re: [OE-core] [PATCH] image_types.bbclass: Added default argument for ubi and ubifs image creation

2017-06-14 Thread Denys Dmytriyenko
On Wed, Jun 14, 2017 at 10:31:17AM -0700, yin.thong.cho...@intel.com wrote: > From: Choong YinThong > > Added default argument for ubi and ubifs image creation. > MKUBIFS_ARGS and UBINIZE_ARGS both argument still able to > edit in local.conf > > [YOCTO #11589] > > Signed-off-by: Choong YinThong

[OE-core] [PATCH] selftest/devtool: replace file assertTrue/False with assertExists/NotExists

2017-06-14 Thread Yeoh Ee Peng
Current osselftest print confusing assertion message when using self.assertTrue(os.path.exists(filepath)) to test file path, example of confusing assertion message: AssertionError: False is not true Replce assertTrue/assertFalse with assertExists/assertNotExists to test file path, this wil

[OE-core] [PATCH] *** Selftest/devtool: replace file assertTrue/False with assertExists/NotExists ***

2017-06-14 Thread Yeoh Ee Peng
*** replace file assertTrue/False with assertExists/NotExists to improve assert message and simplify codes *** Yeoh Ee Peng (1): selftest/devtool: replace file assertTrue/False with assertExists/NotExists meta/lib/oeqa/selftest/devtool.py | 128 +++--- 1 file c

Re: [OE-core] [PATCH 0/2] siteinfo: fix siteinfo_get_files to work with RSS

2017-06-14 Thread Huang, Jie (Jackie)
Ping. > -Original Message- > From: openembedded-core-boun...@lists.openembedded.org > [mailto:openembedded-core-boun...@lists.openembedded.org] On Behalf Of > jackie.hu...@windriver.com > Sent: Wednesday, May 31, 2017 16:27 > To: openembedded-core@lists.openembedded.org > Subject: [OE-core

[OE-core] [PATCH v2] ubi and ubifs image compression failed

2017-06-14 Thread yin . thong . choong
From: Choong YinThong Default argument added into bbclass for ubi and ubifs image creation Choong YinThong (1): image_types.bbclass: Added default argument for ubi and ubifs image creation meta/classes/image_types.bbclass | 9 + 1 file changed, 9 insertions(+) -- 2.7.4 --

[OE-core] [PATCH] image_types.bbclass: Added default argument for ubi and ubifs image creation

2017-06-14 Thread yin . thong . choong
From: Choong YinThong Added default argument for ubi and ubifs image creation. MKUBIFS_ARGS and UBINIZE_ARGS both argument still able to edit in local.conf [YOCTO #11589] Signed-off-by: Choong YinThong --- meta/classes/image_types.bbclass | 9 + 1 file changed, 9 insertions(+) diff -

[OE-core] [PATCH v2] image_types.bbclass: Added default argument for ubi and ubifs image creation

2017-06-14 Thread yin . thong . choong
From: Choong YinThong Added default argument for ubi and ubifs image creation. MKUBIFS_ARGS and UBINIZE_ARGS both argument still able to edit in local.conf [YOCTO #11589] Signed-off-by: Choong YinThong --- meta/classes/image_types.bbclass | 9 + 1 file changed, 9 insertions(+) diff -

[OE-core] [PATCH v2] ubi and ubifs image compression failed

2017-06-14 Thread yin . thong . choong
From: Choong YinThong Default argument added into bbclass for ubi and ubifs image creation Choong YinThong (1): image_types.bbclass: Added default argument for ubi and ubifs image creation meta/classes/image_types.bbclass | 9 + 1 file changed, 9 insertions(+) -- 2.7.4 --

[OE-core] [PATCH v2 4/7] libxml2: Fix CVE-2017-9049 and CVE-2017-9050

2017-06-14 Thread Andrej Valek
Fix handling of parameter-entity references There were two bugs where parameter-entity references could lead to an unexpected change of the input buffer in xmlParseNameComplex and xmlDictLookup being called with an invalid pointer. Fixes bug 781205 and bug 781361 CVE: CVE-2017-9049 CVE-2017-9050

[OE-core] [PATCH v2 1/7] libxml2: Disable LeakSanitizer when running API tests

2017-06-14 Thread Andrej Valek
Makefile.am: Disable LeakSanitizer when running API tests The autogenerated API tests leak memory. Upstream-Status: Backported - [https://git.gnome.org/browse/libxml2/commit/?id=ac9a4560ee85b18811ff8ab7791ddfff7b144b0a] Signed-off-by: Andrej Valek --- meta/recipes-core/libxml/libxml2/runtest.p

[OE-core] [PATCH v2 2/7] libxml2: Avoid reparsing and simplify control flow in xmlParseStartTag2

2017-06-14 Thread Andrej Valek
Signed-off-by: Andrej Valek --- ...ibxml2-fix_and_simplify_xmlParseStartTag2.patch | 590 + meta/recipes-core/libxml/libxml2_2.9.4.bb | 1 + 2 files changed, 591 insertions(+) create mode 100644 meta/recipes-core/libxml/libxml2/libxml2-fix_and_simplify_xmlParseSta

[OE-core] [PATCH v2 0/7] libxml2: Fix multiple CVEs

2017-06-14 Thread Andrej Valek
Fix CVE: - CVE-2017-0663 - CVE-2017-9047 - CVE-2017-9048 - CVE-2017-9049 - CVE-2017-9050 - CVE-2017-5969 - Sync necessary changes for CVE fixing from master. Andrej Valek (7): libxml2: Disable LeakSanitizer when running API tests libxml2: Avoid reparsing and simplify control flow in

[OE-core] [PATCH v2 3/7] libxml2: Fix CVE-2017-9047 and CVE-2017-9048

2017-06-14 Thread Andrej Valek
xmlSnprintfElementContent failed to correctly check the available buffer space in two locations. Fixes bug 781333 and bug 781701 CVE: CVE-2017-9047 CVE-2017-9048 Signed-off-by: Andrej Valek --- .../libxml2-CVE-2017-9047_CVE-2017-9048.patch | 103 + meta/recipes-core/lib

[OE-core] [PATCH v2 5/7] libxml2: Fix CVE-2017-5969

2017-06-14 Thread Andrej Valek
Fix NULL pointer deref in xmlDumpElementContent Can only be triggered in recovery mode. Fixes bug 758422 CVE: CVE-2017-5969 Signed-off-by: Andrej Valek --- .../libxml/libxml2/libxml2-CVE-2017-5969.patch | 62 ++ meta/recipes-core/libxml/libxml2_2.9.4.bb | 1 +

[OE-core] [PATCH v2 7/7] libxml2: Revert "Add an XML_PARSE_NOXXE flag to block all entities loading even local"

2017-06-14 Thread Andrej Valek
The new flag doesn't work and the change even broke the XML_PARSE_NONET option. Signed-off-by: Andrej Valek --- .../libxml/libxml2/CVE-2016-9318.patch | 207 - meta/recipes-core/libxml/libxml2_2.9.4.bb | 1 - 2 files changed, 208 deletions(-) delete mo

[OE-core] [PATCH v2 6/7] libxml2: Fix CVE-2017-0663

2017-06-14 Thread Andrej Valek
Fix type confusion in xmlValidateOneNamespace Comment out code that casts xmlNsPtr to xmlAttrPtr. ID types on namespace declarations make no practical sense anyway. Fixes bug 780228 CVE: CVE-2017-0663 Signed-off-by: Andrej Valek --- .../libxml/libxml2/libxml2-CVE-2017-0663.patch | 40 +

Re: [OE-core] [PATCH 1/2] gcc: Add recipes for gcc-7

2017-06-14 Thread Martin Jansa
On Mon, Jun 12, 2017 at 4:38 PM, Khem Raj wrote: > Switch default compiler to gcc 7 > I'll try to switch back to gcc 6 to confirm this, but something in latest oe-core upgrade made WORKDIR to be significantly bigger (even when using rm_work and building in smaller steps) so now it doesn't fit in

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

2017-06-14 Thread Martin Jansa
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't the main problem, but still would be nice to fail faster. In las