[OE-core] [PATCH 2/2] cve-report.bbclass: add class

2018-08-03 Thread Grygorii Tertychnyi (gtertych) via Openembedded-core
Implements "report_cve" and "report_patched" tasks. "report_patched" prepares image manifest with patched CVE info. "report_cve" runs cvert-* scripts to generate kernel and package CVE reports. You can configure it to set report filenames, reuse NVD feeds, stop after manifest generation and

[OE-core] [PATCH 1/2] cve-report: add scripts to generate CVE reports

2018-08-03 Thread Grygorii Tertychnyi (gtertych) via Openembedded-core
cvert-kernel - generate CVE report for the Linux kernel. NVD entries for the Linux kernel is almost always outdated. For example, https://nvd.nist.gov/vuln/detail/CVE-2018-1065 is shown as matched for "versions up to (including) 4.15.7", however the patch 57ebd808a97d has been back ported

Re: [OE-core] [PATCH] package: skip strip on signed kernel modules

2018-08-03 Thread Victor Kamensky via Openembedded-core
On Fri, 3 Aug 2018, Ocampo Coronado, Omar wrote: Yes, we would like to keep the symbols on a signed kernel module. Andre shared this link: https://www.kernel.org/doc/html/v4.17/admin-guide/module-signing.html#signed-modules-and-stripping , from conversation topic: Re: [OE-core] Strip

[OE-core] [PATCHv3] package: skip strip on signed kernel modules

2018-08-03 Thread omar . ocampo . coronado
From: foocampo Executing strip action on kernel modules removes the signature. Is not possible to strip and keep the signature, therefore avoid strip signed kernel modules. Signed-off-by: Omar Ocampo --- meta/lib/oe/package.py | 20 1 file changed, 16 insertions(+), 4

[OE-core] [PATCHv2] package: skip strip on signed kernel modules

2018-08-03 Thread omar . ocampo . coronado
From: foocampo Executing strip action on kernel modules removes the signature. Is not possible to strip and keep the signature, therefore avoid strip signed kernel modules. Signed-off-by: foocampo Signed-off-by: Omar Ocmapo --- meta/lib/oe/package.py | 20 1 file

Re: [OE-core] [PATCH 1/2] remove allarch from recipes which rdepends on TUNE_PKGARCH packages

2018-08-03 Thread richard . purdie
On Fri, 2018-08-03 at 09:49 +0800, kai.k...@windriver.com wrote: > From: Kai Kang > > The following allarch packages rdepends on TUNE_PKGARCH packages. So > remove allarch from these recipes. > > ca-certificates -> openssl Should we reverse this, i.e. have openssl RRECOMMENDS ca-certificates?

Re: [OE-core] [PATCH] package: skip strip on signed kernel modules

2018-08-03 Thread Ocampo Coronado, Omar
Yes, we would like to keep the symbols on a signed kernel module. Andre shared this link: https://www.kernel.org/doc/html/v4.17/admin-guide/module-signing.html#signed-modules-and-stripping , from conversation topic: Re: [OE-core] Strip kernel modules and signatures -28 are the last 28 bytes

Re: [OE-core] [PATCH] package: skip strip on signed kernel modules

2018-08-03 Thread Victor Kamensky via Openembedded-core
On Fri, 3 Aug 2018, omar.ocampo.coron...@intel.com wrote: From: foocampo Executing strip action on kernel modules removes the signature. Is not possible to strip and keep the signature, therefore avoid strip signed kernel modules. Signed-off-by: foocampo --- meta/lib/oe/package.py | 10

[OE-core] [PATCH] package: skip strip on signed kernel modules

2018-08-03 Thread omar . ocampo . coronado
From: foocampo Executing strip action on kernel modules removes the signature. Is not possible to strip and keep the signature, therefore avoid strip signed kernel modules. Signed-off-by: foocampo --- meta/lib/oe/package.py | 10 ++ 1 file changed, 10 insertions(+) diff --git

Re: [OE-core] ✗ patchtest: failure for glibc: Upgrade to 2.28 (rev2)

2018-08-03 Thread Khem Raj
it seems patch scanner is confused here On Fri, Aug 3, 2018 at 11:34 AM Patchwork wrote: > > == Series Details == > > Series: glibc: Upgrade to 2.28 (rev2) > Revision: 2 > URL : https://patchwork.openembedded.org/series/13377/ > State : failure > > == Summary == > > > Thank you for submitting

Re: [OE-core] [PATCH] libidn2: Fix charset.alias issue with musl

2018-08-03 Thread Khem Raj
On Fri, Aug 3, 2018 at 11:17 AM Burton, Ross wrote: > > Has that actually been fixed in gnulib yet? > haven't check lately but few months back it is not fixed yet. > Ross > > On 3 August 2018 at 18:30, Khem Raj wrote: > > Fixes > > ERROR: libidn2-2.0.5-r0 do_package: QA Issue: libidn2:

[OE-core] ✗ patchtest: failure for glibc: Upgrade to 2.28 (rev2)

2018-08-03 Thread Patchwork
== Series Details == Series: glibc: Upgrade to 2.28 (rev2) Revision: 2 URL : https://patchwork.openembedded.org/series/13377/ 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

[OE-core] [RFT][PATCH v2] glibc: Upgrade to 2.28

2018-08-03 Thread Khem Raj
License-Update: libidn is dropped from glibc and a testcase that was a particular contributor copyrighted see

Re: [OE-core] [PATCH] libidn2: Fix charset.alias issue with musl

2018-08-03 Thread Burton, Ross
Has that actually been fixed in gnulib yet? Ross On 3 August 2018 at 18:30, Khem Raj wrote: > Fixes > ERROR: libidn2-2.0.5-r0 do_package: QA Issue: libidn2: Files/directories were > installed but not shipped in any packag > e: > /usr/lib/charset.alias > Please set FILES such that these items

[OE-core] ✗ patchtest: failure for glibc: Upgrade to 2.28

2018-08-03 Thread Patchwork
== Series Details == Series: glibc: Upgrade to 2.28 Revision: 1 URL : https://patchwork.openembedded.org/series/13377/ 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

[OE-core] [PATCH] libidn2: Fix charset.alias issue with musl

2018-08-03 Thread Khem Raj
Fixes ERROR: libidn2-2.0.5-r0 do_package: QA Issue: libidn2: Files/directories were installed but not shipped in any packag e: /usr/lib/charset.alias Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or del ete them within

[OE-core] [RFT][PATCH] glibc: Upgrade to 2.28

2018-08-03 Thread Khem Raj
Drop upstreamed and backported patches Signed-off-by: Khem Raj --- meta/conf/distro/include/tcmode-default.inc | 2 +- ...2.27.bb => cross-localedef-native_2.28.bb} | 2 +- ...-initial_2.27.bb => glibc-initial_2.28.bb} | 0 ...bc-locale_2.27.bb => glibc-locale_2.28.bb} | 0

Re: [OE-core] [PATCH 1/1] oe_syslog.py: fix for syslog-ng

2018-08-03 Thread Richard Purdie
On Fri, 2018-08-03 at 16:27 +0800, Chen Qi wrote: > When using syslog-ng as the syslog provider, oe_syslog test case > fails > because it cannot find the syslog daemon. This is because it greps > for > 'syslogd' but syslog-ng's daemon is 'syslog-ng'. So fix the grep > command > to also consider

Re: [OE-core] [PATCH] Revert "gnutls: rationalise libunistring arguments"

2018-08-03 Thread richard . purdie
On Fri, 2018-08-03 at 08:49 -0700, Khem Raj wrote: > Yes, will do. I explained it in original thread as well I know, but we need it in the commit message so we record why we did it... Cheers, Richard -- ___ Openembedded-core mailing list

[OE-core] [PATCH] packagegroup-core-lsb: use new name for libasound

2018-08-03 Thread Ross Burton
Signed-off-by: Ross Burton --- meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb b/meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb index

[OE-core] [PATCH V2] Revert "gnutls: rationalise libunistring arguments"

2018-08-03 Thread Khem Raj
This causes regression on build machines where libunistring is installed on host. It is also because gnuts is using non standard AC macro called AC_LIB_HAVE_LINKFLAGS to detect this library and it confusing cross builds. This reverts commit 60fef4940de7f0440f1216eb2ea0ea683b3e8fdd.

Re: [OE-core] [PATCH] Revert "gnutls: rationalise libunistring arguments"

2018-08-03 Thread Khem Raj
Yes, will do. I explained it in original thread as well On Fri, Aug 3, 2018 at 8:47 AM Richard Purdie wrote: > > On Fri, 2018-08-03 at 08:40 -0700, Khem Raj wrote: > > ping^1 > > Could you put something about why in the commit message please? > > Cheers, > > Richard --

Re: [OE-core] [PATCH] Revert "gnutls: rationalise libunistring arguments"

2018-08-03 Thread Richard Purdie
On Fri, 2018-08-03 at 08:40 -0700, Khem Raj wrote: > ping^1 Could you put something about why in the commit message please? Cheers, Richard -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org

Re: [OE-core] [PATCH] Revert "gnutls: rationalise libunistring arguments"

2018-08-03 Thread Khem Raj
ping^1 On Fri, Jul 27, 2018 at 2:04 PM Khem Raj wrote: > > This reverts commit 60fef4940de7f0440f1216eb2ea0ea683b3e8fdd. > --- > meta/recipes-support/gnutls/gnutls.inc | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/meta/recipes-support/gnutls/gnutls.inc >

[OE-core] [PATCH v3] alsa-lib: Cleanup packaging

2018-08-03 Thread Joshua Watt
Cleans up the packaging by moving libasound.so.2 back into the alsa-lib package which was previously empty. Previously, it was difficult to create an image that had libasound.so.2, then create an SDK from that image that had the proper development files, because the only way to get libasound.so.2

Re: [OE-core] [PATCH v2] alsa-lib: Cleanup packaging

2018-08-03 Thread Joshua Watt
On Fri, 2018-08-03 at 15:02 +0100, Burton, Ross wrote: > On 3 August 2018 at 14:48, Joshua Watt wrote: > > # upgrade path > > +RPROVIDES_${PN}-dev = "libasound" > > +RREPLACES_${PN}-dev = "libasound" > > +RCONFLICTS_${PN}-dev = "libasound" > > Shouldn't this just be PN? Indeed! Good catch.

Re: [OE-core] [PATCH v2] alsa-lib: Cleanup packaging

2018-08-03 Thread Burton, Ross
On 3 August 2018 at 14:48, Joshua Watt wrote: > # upgrade path > +RPROVIDES_${PN}-dev = "libasound" > +RREPLACES_${PN}-dev = "libasound" > +RCONFLICTS_${PN}-dev = "libasound" Shouldn't this just be PN? Ross -- ___ Openembedded-core mailing list

[OE-core] [PATCH 4/4] desktop-file-utils: allow target/nativesdk build, not just native

2018-08-03 Thread Ross Burton
Also fix the license, as this is GPLv2+ not just v2. Signed-off-by: Ross Burton --- ...le-utils-native_0.23.bb => desktop-file-utils_0.23.bb} | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) rename

[OE-core] [PATCH 3/4] oeqa/sdk: add test that CMake works

2018-08-03 Thread Ross Burton
Add a new SDK testcase that builds assimp, a project that uses cmake. Using TARGET_ARCH and TARGET_OS which is now exported into the environment, check that the generated binaries match the ELF headers we expect. Signed-off-by: Ross Burton --- meta/lib/oeqa/sdk/cases/assimp.py | 68

[OE-core] [PATCH 2/4] toolchain-scripts: put TARGET_ARCH and TARGET_OS into environment

2018-08-03 Thread Ross Burton
It's useful for the SDK to know exactly what TARGET_ARCH and TARGET_OS are, specifically for SDK QA. Signed-off-by: Ross Burton --- meta/classes/toolchain-scripts.bbclass | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta/classes/toolchain-scripts.bbclass

[OE-core] [PATCH 1/4] cmake: fix linking in multilib SDKs

2018-08-03 Thread Ross Burton
CMake, in it's infinite wisdom, when searching for libraries (using find_library) will look inside the libraries PREFIX/lib, PREFIX/lib32, and PREFIX/lib64. In a multilib SDK more than one of these will exist (potentially all three) and obviously for a given build configuration only one of those

Re: [OE-core] [PATCH] alsa-lib: Allow empty alsa-lib package for SDK

2018-08-03 Thread Joshua Watt
On Fri, 2018-08-03 at 14:21 +0100, Burton, Ross wrote: > I agree with Tanu, the packaging in this recipe is non-standard and > instead of making it more non-standard, let's just fix it. > > Remove the libasound recipe, the contents of that can go into $PN. > Either way with Debian renaming it

[OE-core] [PATCH v2] alsa-lib: Cleanup packaging

2018-08-03 Thread Joshua Watt
Cleans up the packaging by moving libasound.so.2 back into the alsa-lib package which was previously empty. Previously, it was difficult to create an image that had libasound.so.2, then create an SDK from that image that had the proper development files, because the only way to get libasound.so.2

Re: [OE-core] [PATCH] alsa-lib: Allow empty alsa-lib package for SDK

2018-08-03 Thread Burton, Ross
I agree with Tanu, the packaging in this recipe is non-standard and instead of making it more non-standard, let's just fix it. Remove the libasound recipe, the contents of that can go into $PN. Either way with Debian renaming it gets renamed to libasound2, and without renaming it's still a

Re: [OE-core] [PATCH] alsa-lib: Allow empty alsa-lib package for SDK

2018-08-03 Thread Tanu Kaskinen
On Thu, 2018-08-02 at 16:22 -0500, Joshua Watt wrote: > Without ALLOW_EMPTY, the empty alsa-lib package (which gets culled) > makes it fairly difficult to create an image that has libasound, then > create an SDK from that image that has the proper development files. > > If there is no alsa-lib

[OE-core] [oe-core][PATCH v3 2/2] runtime selftest: remove the case of hw breakpoint

2018-08-03 Thread Hongzhi.Song
Hw breakpoint is based on hardware. Signed-off-by: Hongzhi.Song --- meta/lib/oeqa/runtime/cases/ksample.py | 16 1 file changed, 16 deletions(-) diff --git a/meta/lib/oeqa/runtime/cases/ksample.py b/meta/lib/oeqa/runtime/cases/ksample.py index 26fbe9d8cb..5e8699a2e2 100644

[OE-core] [oe-core][PATCH v3 0/2] remove the case of hw breakpoint

2018-08-03 Thread Hongzhi.Song
v3: remove the case of hw breakpoint v2: test_trace_events_sample of ksample.py Hongzhi.Song (2): runtime selftest: test_trace_events_sample of ksample.py runtime selftest: remove the case of hw breakpoint meta/lib/oeqa/runtime/cases/ksample.py | 30 -- 1

[OE-core] [oe-core][PATCH v2 1/2] runtime selftest: test_trace_events_sample of ksample.py

2018-08-03 Thread Hongzhi.Song
The debug info can not be written to trace buffer immediately by thread. So we should sleep some seconds. Signed-off-by: Hongzhi.Song --- meta/lib/oeqa/runtime/cases/ksample.py | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git

[OE-core] [PATCH 0/1] oe_syslog.py: fix for syslog-ng

2018-08-03 Thread Chen Qi
*** BLURB HERE *** The following changes since commit da24071e92071ecbefe51314d82bf40f85172485: bitbake: toaster/orm/management/commands/lsupdates.py: Use new layerindexlib module (2018-08-02 10:18:27 +0100) are available in the git repository at: git://git.pokylinux.org/poky-contrib

[OE-core] [PATCH 1/1] oe_syslog.py: fix for syslog-ng

2018-08-03 Thread Chen Qi
When using syslog-ng as the syslog provider, oe_syslog test case fails because it cannot find the syslog daemon. This is because it greps for 'syslogd' but syslog-ng's daemon is 'syslog-ng'. So fix the grep command to also consider syslog-ng. Also, when the test case fails, what I get is: |

Re: [OE-core] Strip kernel modules and signatures

2018-08-03 Thread Andre McCurdy
On Thu, Aug 2, 2018 at 9:54 AM, Ocampo Coronado, Omar wrote: > Neither 'nm' or 'readelf' provide a symbol that we can use to strip. > I'm having a hard time reading kernel-source/scripts/sign-file.c and how > exactly how the sign works and what bytes are being added, so we can avoid > stripping

Re: [OE-core] [oe-core][PATCH v4 1/3] udev-extraconf/mount.sh: add support to systemd

2018-08-03 Thread Hongzhi, Song
On 2018年08月03日 00:15, Martin Hundebøll wrote: Hi Hongzhi, I think duplicating all of 'automount' when the only difference is the call to 'mount' is unnecessary. Hi, The patch is compatible with both systemd and sysvinit. And generally speaking, there will be no systemd-mount command when