Re: [OE-core] [PATCH V2] weston-init: Add possibility to run weston as non-root user

2019-09-10 Thread Otavio Salvador
On Tue, Sep 10, 2019 at 7:57 PM Khem Raj wrote: ... > @@ -28,4 +38,10 @@ RDEPENDS_${PN} = "weston kbd" > INITSCRIPT_NAME = "weston" > INITSCRIPT_PARAMS = "start 9 5 2 . stop 20 0 1 6 ." > > -SYSTEMD_SERVICE_${PN} = "weston.service" > +FILES_${PN} += "${sysconfdir}/xdg/weston/weston.ini >

[OE-core] [PATCH V3] weston-init: Add possibility to run weston as non-root user

2019-09-10 Thread Khem Raj
These changes are from meta-96boards primarily Launch the session via a udev rule based on what kind of display device is available Signed-off-by: Khem Raj Cc: Otavio Salvador --- v2: Drop duplicate isntall rule and use systemd_system_unitdir v3: Use systemd_system_unitdir in FILES section too

[OE-core] [PATCH] python-numpy: fix build for libn32

2019-09-10 Thread Chen Qi
Fix do_compile failure for libn32. To reproduce, use the following config. MACHINE = "qemumips64" require conf/multilib.conf MULTILIB_GLOBAL_VARIANTS_append = " libn32" MULTILIBS ?= "multilib:lib32 multilib:libn32" DEFAULTTUNE_virtclass-multilib-lib32 ?= "mips"

[OE-core] [PATCH 2/4] valgrind: make a few more ptests pass

2019-09-10 Thread Randy MacLeod
Adjust two memcheck vgtest files to deal with relative paths that are in test executables when cross-compiling. Add libgomp to enable OpenMP tests. Add the bz2 executable for memcheck/tests/vcpu_bz2. Signed-off-by: Randy MacLeod --- ...ust-path-filter-for-2-memcheck-tests.patch | 40

[OE-core] [PATCH 1/4] valgrind: enable ~500 more ptests

2019-09-10 Thread Randy MacLeod
Add valgrind's top level config.h to the ptest package since it is used by several scripts to determine which tests to run. Drop the removal of: none/tests/shell, the content was already moved to: none/tests/scripts/shell so the filter useless and the files no longer cause a problem. Add a

[OE-core] ✗ patchtest: failure for "valgrind: enable ~500 more pte..." and 3 more

2019-09-10 Thread Patchwork
== Series Details == Series: "valgrind: enable ~500 more pte..." and 3 more Revision: 1 URL : https://patchwork.openembedded.org/series/19821/ State : failure == Summary == Thank you for submitting this patch series to OpenEmbedded Core. This is an automated response. Several tests have been

[OE-core] [PATCH 4/4] valgrind: disable 256 ptests for aarch64

2019-09-10 Thread Randy MacLeod
On qemuarm64 systems, about half of the valgrind tests fail and often result in defunct processes, eg: root 819 818 25 00:12 pts/000:01:52 /usr/bin/valgrind --command-line-only=yes --memcheck:leak-check=no --tool=memcheck -q --track-origins= root 861 420 0 00:13 pts/0

[OE-core] [PATCH 3/4] valgrind: ptest improvements to run-ptest and more

2019-09-10 Thread Randy MacLeod
Make some changes to the run-ptest script: - after main tests run integrity check like the pkg Makefile. - aesthetic and ordering changes Add the .in_place directory and its contents which allows valgrind to be run in-place thereby enabling the gdbserver_tests to complete rather than hang.

Re: [OE-core] [PATCH] rpm: make rpm work in toolchain.

2019-09-10 Thread Alexander Kanavin
On Tue, 10 Sep 2019 at 10:07, Zheng, Ruoqin wrote: > In last patch, I put the config file in meta-environment as its do_install > task is in the target environment which means the value of ${PACKAGE_ARCHS} > is right. > > And it finally produce a nativesdk package. > > > > If I put the config

[OE-core] [PATCH v2] libevent: don't treat test stats line as pass/fail in ptest

2019-09-10 Thread Trevor Gamblin
From: Trevor Gamblin Supplemental to commit fb17b46e2. The libevent "regress" test outputs its own pass/fail results, e.g. "2/300 TESTS FAILED. (31 skipped)", which will be miscounted as an extra test fail in the ptest log. Fixed this to ignore the libevent results line when counting actual

Re: [OE-core] [PATCH] mesa: Upgrade 19.1.1 -> 19.1.6

2019-09-10 Thread Alexander Kanavin
On Tue, 10 Sep 2019 at 11:50, Ross Burton wrote: > On 09/09/2019 19:41, Alexander Kanavin wrote: > > and find_installation() method of meson does not merely look for the > > native python binary, it runs the binary with a meson-supplied python > > script designed to obtain all sorts of

Re: [OE-core] [PATCH] mesa: Upgrade 19.1.1 -> 19.1.6

2019-09-10 Thread Ross Burton
On 09/09/2019 19:41, Alexander Kanavin wrote: and find_installation() method of meson does not merely look for the native python binary, it runs the binary with a meson-supplied python script designed to obtain all sorts of information, including target-specific things that we patch native

Re: [OE-core] [PATCH] rpm: make rpm work in toolchain.

2019-09-10 Thread Zheng, Ruoqin
Hi Alex ->You probably need to use the post-relocate-setup.d/ facility, like the nativesdk-meson recipe does. I am not sure if ->PACKAGE_ARCHS is accessible from it, but it does seem like the right mechanism for tweaking settings that are ->specific to nativesdk packages. 1. About

Re: [OE-core] [PATCH] mesa: Upgrade 19.1.1 -> 19.1.6

2019-09-10 Thread Fabio Berton
Adding python3-native doesn't work. Hmm... it seems that adding "export STAGING_LIBDIR = "${STAGING_LIBDIR_NATIVE}"" and removing python3 from DEPENDS worked. Alexander, I don't know what is the best way to do this, maybe you can help here. Thanks! On Tue, Sep 10, 2019 at 7:40 AM Alexander

Re: [OE-core] [PATCH] mesa: Upgrade 19.1.1 -> 19.1.6

2019-09-10 Thread Alexander Kanavin
The best way is like in your latest patch - inherit python3native and DEPENDS = "python3". No need for further tweaks, why did you try them? Alex On Tue, 10 Sep 2019 at 15:59, Fabio Berton wrote: > Adding python3-native doesn't work. > > Hmm... it seems that adding "export STAGING_LIBDIR = >

Re: [OE-core] [PATCH] rpm: make rpm work in toolchain.

2019-09-10 Thread Alexander Kanavin
On Tue, 10 Sep 2019 at 13:56, Zheng, Ruoqin wrote: > 3. Actually, my first plan is to write ${MACHINE_ARCH} in toolchain, but > it was rejected > > +++ b/meta/classes/toolchain-scripts.bbclass > > @@ -101,6 +101,7 @@ toolchain_shared_env_script () { > > echo 'export

[OE-core] [PATCH 3/6] chrpath.bbclass: Add break_hardlinks kwarg to allow breaking hardlinks

2019-09-10 Thread Nathan Rossi
Add the break_hardlinks kwarg to break hardlinks when modifying files. This uses the bb.utils.break_hardlinks function to break hardlinks. The default is to maintain existing behaviour and leave hardlinks in place. Signed-off-by: Nathan Rossi --- meta/classes/chrpath.bbclass | 19

[OE-core] [PATCH 4/6] gcc-cross.inc: Process binaries in build dir to be relocatable

2019-09-10 Thread Nathan Rossi
Process binaries within the build directory before stashing to be relocatable with ORIGIN relative rpaths. This corrects issues with rpaths being invalid when trying to use the binaries from an unstashed build directory (e.g. gcc-runtime). Signed-off-by: Nathan Rossi ---

[OE-core] [PATCH 5/6] oeqa/core/case.py: Add OEPTestResultTestCase for ptestresult helpers

2019-09-10 Thread Nathan Rossi
Add the OEPTestResultTestCase class as a mix-in class to provide helper functions for interacting with ptestresults within the extraresults object generated by the test case. This class also provides default compression of log text and log files. Also add support to resulttool for

[OE-core] [PATCH 6/6] oeqa/selftest: Rework toolchain tests to use OEPTestResultTestCase

2019-09-10 Thread Nathan Rossi
Use OEPTestResultTestCase to collect results and add logfile collection and compression. Signed-off-by: Nathan Rossi --- meta/lib/oeqa/selftest/cases/binutils.py | 11 ++- meta/lib/oeqa/selftest/cases/gcc.py | 8 meta/lib/oeqa/selftest/cases/glibc.py| 7 --- 3

[OE-core] [PATCH 1/6] resulttool: Handle multiple series containing ptestresults

2019-09-10 Thread Nathan Rossi
Handle multiple results series having ptestresults content. The contents are merged on a per-result basis where duplicates are ignored (with a warning message printed). The 'ptestresults.sections' collection is also merged on a per-suite basis. Signed-off-by: Nathan Rossi ---

[OE-core] [PATCH 2/6] oeqa/selftest/context.py: For -t/-T use append argparse action

2019-09-10 Thread Nathan Rossi
Use the 'append' action of argparse instead of nargs. This changes the behaviour of the option from "-t foo bar -r" to "-t foo -t bar -r". Additionally rename the long form options to be consistent with behaviour, such that they specifying a single tag at a time. Signed-off-by: Nathan Rossi ---

Re: [OE-core] [PATCH] weston-init: Add possibility to run weston as non-root user

2019-09-10 Thread Otavio Salvador
On Tue, Sep 10, 2019 at 6:38 PM Khem Raj wrote: ... > do_install() { > install -Dm755 ${WORKDIR}/init ${D}/${sysconfdir}/init.d/weston > - install -Dm0644 ${WORKDIR}/weston.service > ${D}${systemd_system_unitdir}/weston.service > - > + install -Dm0644

Re: [OE-core] ✗ patchtest: failure for "valgrind: enable ~500 more pte..." and 3 more

2019-09-10 Thread Randy MacLeod
On 9/10/19 5:01 PM, Patchwork wrote: == Series Details == Series: "valgrind: enable ~500 more pte..." and 3 more Revision: 1 URL : https://patchwork.openembedded.org/series/19821/ State : failure == Summary == Thank you for submitting this patch series to OpenEmbedded Core. This is an

[OE-core] [PATCH] weston-init: Add possibility to run weston as non-root user

2019-09-10 Thread Khem Raj
These changes are from meta-96boards primarily Launch the session via a udev rule based on what kind of display device is available Signed-off-by: Khem Raj Cc: Otavio Salvador --- meta/recipes-graphics/wayland/weston-init.bb | 25 ++- .../wayland/weston-init/71-weston-drm.rules | 2 +

[OE-core] [thud][PATCH] python3: Fix CVEs

2019-09-10 Thread msft . dantran
From: Dan Tran Fixes CVE-2018-14647, CVE-2018-20406, CVE-2018-20852, CVE-2019-9636, CVE-2019-9740, and CVE-2019-9747. --- .../python/python3/CVE-2018-14647.patch| 95 + .../python/python3/CVE-2018-20406.patch| 217 +

[OE-core] [v2 4/4] valgrind: disable 256 ptests for aarch64

2019-09-10 Thread Randy MacLeod
On qemuarm64 systems, about half of the valgrind tests fail and often result in defunct processes, eg: root 819 818 25 00:12 pts/000:01:52 /usr/bin/valgrind --command-line-only=yes --memcheck:leak-check=no --tool=memcheck -q --track-origins= root 861 420 0 00:13 pts/0

[OE-core] [v2 3/4] valgrind: ptest improvements to run-ptest and more

2019-09-10 Thread Randy MacLeod
Make some changes to the run-ptest script: - after main tests run integrity check like the pkg Makefile. - aesthetic and ordering changes Add the .in_place directory and its contents which allows valgrind to be run in-place thereby enabling the gdbserver_tests to complete rather than hang.

[OE-core] [v2 2/4] valgrind: make a few more ptests pass

2019-09-10 Thread Randy MacLeod
Adjust two memcheck vgtest files to deal with relative paths that are in test executables when cross-compiling. Add libgomp to enable OpenMP tests. Add the bz2 executable for memcheck/tests/vcpu_bz2. Signed-off-by: Randy MacLeod --- ...ust-path-filter-for-2-memcheck-tests.patch | 40

[OE-core] [PATCH V2] weston-init: Add possibility to run weston as non-root user

2019-09-10 Thread Khem Raj
These changes are from meta-96boards primarily Launch the session via a udev rule based on what kind of display device is available Signed-off-by: Khem Raj Cc: Otavio Salvador --- v2: Drop duplicate isntall rule and use systemd_system_unitdir meta/recipes-graphics/wayland/weston-init.bb | 24

[OE-core] [PATCH] python3-pygobject: update to 3.34.0

2019-09-10 Thread Oleksandr Kravchuk
Signed-off-by: Oleksandr Kravchuk --- ...ython3-pygobject_3.32.2.bb => python3-pygobject_3.34.0.bb} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename meta/recipes-devtools/python/{python3-pygobject_3.32.2.bb => python3-pygobject_3.34.0.bb} (87%) diff --git

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

2019-09-10 Thread Patchwork
== Series Details == Series: python3: Fix CVEs Revision: 1 URL : https://patchwork.openembedded.org/series/19826/ 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

[OE-core] [PATCH] cogl: Do not depend PN-dev on empty PN

2019-09-10 Thread Khem Raj
Fixes image build error e.g. - nothing provides cogl-1.0 = 1.22.4-r0.2 needed by cogl-1.0-dev-1.22.4-r0.2.core2-64 Signed-off-by: Khem Raj --- meta/recipes-graphics/cogl/cogl-1.0.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/recipes-graphics/cogl/cogl-1.0.inc

[OE-core] [v2 1/4] valgrind: enable ~500 more ptests

2019-09-10 Thread Randy MacLeod
Add valgrind's top level config.h to the ptest package since it is used by several scripts to determine which tests to run. Drop the removal of: none/tests/shell, the content was already moved to: none/tests/scripts/shell so the filter useless and the files no longer cause a problem. Add a

Re: [OE-core] [thud][PATCH] python3: Fix CVEs

2019-09-10 Thread akuster808
Dan, On 9/10/19 4:45 PM, msft.dant...@gmail.com wrote: > From: Dan Tran > > Fixes CVE-2018-14647, CVE-2018-20406, CVE-2018-20852, CVE-2019-9636, > CVE-2019-9740, and CVE-2019-9747. > --- > .../python/python3/CVE-2018-14647.patch| 95 + >

Re: [OE-core] [PATCH] mesa: Upgrade 19.1.1 -> 19.1.6

2019-09-10 Thread Fabio Berton
Because I was a little confused about find_installation() function, but your comment above clarifies. Thanks! On Tue, Sep 10, 2019 at 11:24 AM Alexander Kanavin wrote: > > The best way is like in your latest patch - inherit python3native and DEPENDS > = "python3". No need for further tweaks,

[OE-core] Fwd: [yocto] Yocto Project Summit 2019 - CFP Open

2019-09-10 Thread Philip Balister
Just a reminder we are looking for talks for the Yocto Project Summit after ELCE. On Day 2 there is a parallel track with one session being dedicated to an OpenEmbedded Developer Meeeting. Please sign up here if you plan to attend and we are also collecting topics for discussion.

[OE-core] Yocto Project Status WW37'19

2019-09-10 Thread sjolley.yp.pm
Current Dev Position: YP 2.8 M4 Feature Freeze Next Deadline: YP 3.0 Final Release 25th Oct SWAT Team Rotation: * SWAT lead is currently: Paul * SWAT team rotation: Paul -> Ross on Sept. 13, 2019 * SWAT team rotation: Ross -> Amanda on Sept. 20, 2019 *

[OE-core] [PATCH v2] ghostscript: CVE-2019-14811, CVE-2019-14817

2019-09-10 Thread Stefan Ghinea
A flaw was found in, ghostscript versions prior to 9.28, in the .pdf_hook_DSC_Creator procedure where it did not properly secure its privileged calls, enabling scripts to bypass `-dSAFER` restrictions. A specially crafted PostScript file could disable security protection and then have access to

[OE-core] [PATCH] ghostscript: CVE-2019-14811, CVE-2019-14817

2019-09-10 Thread Stefan Ghinea
Issue: LIN1018-4833, LIN1018-4832 A flaw was found in, ghostscript versions prior to 9.28, in the .pdf_hook_DSC_Creator procedure where it did not properly secure its privileged calls, enabling scripts to bypass `-dSAFER` restrictions. A specially crafted PostScript file could disable security

Re: [OE-core] [PATCH] rpm: make rpm work in toolchain.

2019-09-10 Thread Zheng, Ruoqin
Hi Alex Now I have a question after a test. In last patch, I put the config file in meta-environment as its do_install task is in the target environment which means the value of ${PACKAGE_ARCHS} is right. And it finally produce a nativesdk package. If I put the config file in nativesdk-rpm,