Re: [OE-core] [PATCHv3 3/3] insane.bbclass: Add a check for directories that are expected to be empty

2021-10-31 Thread Khem Raj
On Sun, Oct 31, 2021 at 8:54 AM Richard Purdie wrote: > > On Fri, 2021-10-29 at 23:29 +0200, Peter Kjellerstedt wrote: > > The empty-dirs QA check verifies that all directories specified in > > QA_EMPTY_DIRS are empty. It is possible to specify why a directory is > > expected to be empty by defini

[OE-core] [PATCHv4 3/4] apt: Do not install /var/log/apt

2021-10-31 Thread Peter Kjellerstedt
/var/log is normally a link to /var/volatile/log and /var/volatile is a tmpfs mount. So anything created in /var/log will not be available when the tmpfs is mounted. Also some whitespace clean up. Signed-off-by: Peter Kjellerstedt --- meta/recipes-devtools/apt/apt_2.2.4.bb | 30 ++--

[OE-core] [PATCHv4 1/4] systemd: Do not install anything in /var/volatile

2021-10-31 Thread Peter Kjellerstedt
/var/log is typically a symbolic link to inside /var/volatile, which is expected to be empty. Check ${VOLATILE_LOG_DIR} to see if it is ok to install /var/log. Signed-off-by: Peter Kjellerstedt --- PATCHv2: Added check for ${VOLATILE_LOG_DIR} before removing /var/log. PATCHv3: No changes. PATCHv

[OE-core] [PATCHv4 4/4] insane.bbclass: Add a check for directories that are expected to be empty

2021-10-31 Thread Peter Kjellerstedt
The empty-dirs QA check verifies that all directories specified in QA_EMPTY_DIRS are empty. It is possible to specify why a directory is expected to be empty by defining QA_EMPTY_DIRS_RECOMMENDATION:, which will then be included in the error message if the directory is not empty. If it is not speci

[OE-core] [PATCHv4 2/4] base-files: Ignore the empty-dirs QA error due to files in /var/volatile

2021-10-31 Thread Peter Kjellerstedt
Signed-off-by: Peter Kjellerstedt --- PATCHv3: An alternative to skipping the empty-dirs QA test for base-files would be to remove /var/volatile/tmp and /var/volatile/log, but I do not know if there are any consequences of doing that, e.g., due to them not existing before the tmpfs has been mount

Re: [OE-core] [PATCH] sstate: Consider .lock suffix for when loading sstate file from mirror

2021-10-31 Thread Richard Purdie
On Sun, 2021-10-31 at 21:08 +0100, Manuel Leonhardt wrote: > When using an sstate mirror over HTTP/S, a lockfile is created during > download. Previously, this resulted in an OSError (ENAMETOOLONG) in the > bb.utils.lockfile function because the lockfile has the filename of the > sstate file plus "

Re: [OE-core] [PATCH] sstate: Consider .lock suffix for when loading sstate file from mirror

2021-10-31 Thread Manuel Leonhardt
See also https://lists.openembedded.org/g/bitbake-devel/topic/86724965 , where bb.utils.lockfile is fixed to raise when the filename of a lockfile is too long. -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#157692): https://lists.openembedded.org/

[OE-core] [PATCH] sstate: Consider .lock suffix for when loading sstate file from mirror

2021-10-31 Thread Manuel Leonhardt
When using an sstate mirror over HTTP/S, a lockfile is created during download. Previously, this resulted in an OSError (ENAMETOOLONG) in the bb.utils.lockfile function because the lockfile has the filename of the sstate file plus ".lock". Since this case is also not handled properly in bb.utils.lo

Re: [OE-core] [PATCH] libgfortran: Set GFORTRAN

2021-10-31 Thread Richard Purdie
On Sun, 2021-10-31 at 10:38 -0700, Khem Raj wrote: > > > On Sun, Oct 31, 2021 at 10:29 AM Richard Purdie > wrote: > > The libgfortran configure sets FC to be $GFORTRAN. We did used to patch > > that out but rather than carry a patch to gcc, just set GFORTRAN as > > needed. > > > > Signed-off-by

Re: [OE-core] [PATCH] libgfortran: Set GFORTRAN

2021-10-31 Thread Khem Raj
On Sun, Oct 31, 2021 at 10:29 AM Richard Purdie < richard.pur...@linuxfoundation.org> wrote: > The libgfortran configure sets FC to be $GFORTRAN. We did used to patch > that out but rather than carry a patch to gcc, just set GFORTRAN as > needed. > > Signed-off-by: Richard Purdie > --- > meta/re

[OE-core] [PATCH] libgfortran: Set GFORTRAN

2021-10-31 Thread Richard Purdie
The libgfortran configure sets FC to be $GFORTRAN. We did used to patch that out but rather than carry a patch to gcc, just set GFORTRAN as needed. Signed-off-by: Richard Purdie --- meta/recipes-devtools/gcc/libgfortran.inc | 5 + 1 file changed, 5 insertions(+) diff --git a/meta/recipes-de

[OE-core][dunfell 29/29] tzdata: update 2021d -> 2021e

2021-10-31 Thread Steve Sakoman
From: Alexander Kanavin Signed-off-by: Alexander Kanavin Signed-off-by: Alexandre Belloni (cherry picked from commit 660f932c21fed410ad092ec610749e7090b6a324) Signed-off-by: Steve Sakoman --- meta/recipes-extended/timezone/timezone.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(

[OE-core][dunfell 28/29] tzdata: upgrade 2021a -> 2021d

2021-10-31 Thread Steve Sakoman
From: Alexander Kanavin Signed-off-by: Alexander Kanavin Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie (cherry picked from commit f171f4f528090fc108624de6049274aa4d4880eb) Signed-off-by: Steve Sakoman --- meta/recipes-extended/timezone/timezone.inc | 7 --- 1 file change

[OE-core][dunfell 27/29] ca-certificates: update 20210119 -> 20211016

2021-10-31 Thread Steve Sakoman
From: Alexander Kanavin Signed-off-by: Alexander Kanavin Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie (cherry picked from commit c479b8a810d966d7267af1b4dac38a46f55fc547) Signed-off-by: Steve Sakoman --- ...ertdata2pem.py-print-a-warning-for-e.patch | 80 +++

[OE-core][dunfell 26/29] wireless-regdb: upgrade 2021.07.14 -> 2021.08.28

2021-10-31 Thread Steve Sakoman
From: Alexander Kanavin Signed-off-by: Alexander Kanavin Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie (cherry picked from commit 00c590f50d6894089ff7ce8ad6e263431d9cc550) Signed-off-by: Steve Sakoman --- ...ireless-regdb_2021.07.14.bb => wireless-regdb_2021.08.28.bb} | 2 +-

[OE-core][dunfell 25/29] wireless-regdb: upgrade 2021.04.21 -> 2021.07.14

2021-10-31 Thread Steve Sakoman
From: Alexander Kanavin Signed-off-by: Alexander Kanavin Signed-off-by: Richard Purdie (cherry picked from commit 7f4d11e8da6bb79232535c42ad41798a56162ac7) Signed-off-by: Steve Sakoman --- ...ireless-regdb_2021.04.21.bb => wireless-regdb_2021.07.14.bb} | 2 +- 1 file changed, 1 insertion(+),

[OE-core][dunfell 23/29] linux-firmware: upgrade 20210511 -> 20210818

2021-10-31 Thread Steve Sakoman
From: Alexander Kanavin License-Update: new firmware files, copyright years, file names Signed-off-by: Alexander Kanavin Signed-off-by: Richard Purdie (cherry picked from commit bfceaba4f38771047dfdfdfdbf16b794006dfd78) Signed-off-by: Steve Sakoman --- ...inux-firmware_20210511.bb => linux-fi

[OE-core][dunfell 24/29] linux-firmware: upgrade 20210818 -> 20210919

2021-10-31 Thread Steve Sakoman
From: Alexander Kanavin License-Update: additional files Signed-off-by: Alexander Kanavin Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie (cherry picked from commit 8dac57dfed45a0d8a049473f2efc1711b56273a4) Signed-off-by: Steve Sakoman --- ...{linux-firmware_20210818.bb => lin

[OE-core][dunfell 22/29] git: Fix determinism issue

2021-10-31 Thread Steve Sakoman
From: Richard Purdie Signed-off-by: Richard Purdie (cherry picked from commit 9ae740939f8315c64fe7571f912404127a29dc89) Signed-off-by: Steve Sakoman --- meta/recipes-devtools/git/git.inc | 2 +- meta/recipes-devtools/git/git/fixsort.patch | 36 + 2 files changed,

[OE-core][dunfell 21/29] stress-ng: improve reproducibility

2021-10-31 Thread Steve Sakoman
Signed-off-by: Steve Sakoman --- ...write-the-timestamp-into-compressed-.patch | 26 +++ .../stress-ng/stress-ng_0.11.17.bb| 1 + 2 files changed, 27 insertions(+) create mode 100644 meta/recipes-extended/stress-ng/stress-ng/0001-Makefile-do-not-write-the-timestamp-

[OE-core][dunfell 20/29] stress-ng: convert to git, website is down

2021-10-31 Thread Steve Sakoman
Signed-off-by: Steve Sakoman --- meta/recipes-extended/stress-ng/stress-ng_0.11.17.bb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/meta/recipes-extended/stress-ng/stress-ng_0.11.17.bb b/meta/recipes-extended/stress-ng/stress-ng_0.11.17.bb index 9b987c7bde..af8e77ece2

[OE-core][dunfell 19/29] waffle: old website is down, update to new project URLs

2021-10-31 Thread Steve Sakoman
Signed-off-by: Steve Sakoman --- meta/recipes-graphics/waffle/waffle_1.6.0.bb | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/meta/recipes-graphics/waffle/waffle_1.6.0.bb b/meta/recipes-graphics/waffle/waffle_1.6.0.bb index 14d6a61525..f0dc780ca1 100644 --- a/met

[OE-core][dunfell 18/29] mirrors.bbclass: remove dead infozip mirrors

2021-10-31 Thread Steve Sakoman
From: Oleksandr Kravchuk Signed-off-by: Oleksandr Kravchuk Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie (cherry picked from commit 0140df8724a1c73f7b62fbbbaee58c3eb119eeba) Signed-off-by: Steve Sakoman --- meta/classes/mirrors.bbclass | 1 - 1 file changed, 1 deletion(-) d

[OE-core][dunfell 17/29] oeqa/runtime/parselogs: modified drm error in common errors list

2021-10-31 Thread Steve Sakoman
From: Teoh Jay Shen Changed the following line from: [drm] Cannot find any crtc or sizes - going 1024x768 > [drm] Cannot find any crtc or sizes This will expand the coverage of the failure to also cover the case when fallback size is not set. Signed-off-by: Teoh Jay Shen Signed-off-by:

[OE-core][dunfell 16/29] oeqa/runtime: search sys.path explicitly for modules

2021-10-31 Thread Steve Sakoman
From: Ross Burton The controller module loading code needs to be told what directories to search for modules via the target_modules_path keyword argument, which is set to BBPATH. However, as the actual module loading is done via importlib this relies on the paths being on sys.path, which it is a

[OE-core][dunfell 15/29] oeqa/runtime: load modules using importlib

2021-10-31 Thread Steve Sakoman
From: Ross Burton Instead of using __import__() which is low-level and discouraged, use importlib. Signed-off-by: Ross Burton Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie (cherry picked from commit 9f501d22eab5dbd565f3f5783f4f484a6d1f70a2) Signed-off-by: Steve Sakoman ---

[OE-core][dunfell 14/29] testimage: fix unclosed testdata file

2021-10-31 Thread Steve Sakoman
From: Ross Burton Signed-off-by: Ross Burton Signed-off-by: Richard Purdie (cherry picked from commit 0c192a97e3e1c015a48667d6903cc07a8b2620e4) Signed-off-by: Steve Sakoman --- meta/classes/testimage.bbclass | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/meta/class

[OE-core][dunfell 13/29] patch: Use repr() with exceptions instead of str()

2021-10-31 Thread Steve Sakoman
From: Richard Purdie This gives more meaningful errors. Signed-off-by: Richard Purdie (cherry picked from commit 5b285796b618623289992faea1282f1822335239) Signed-off-by: Steve Sakoman --- meta/classes/patch.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/c

[OE-core][dunfell 12/29] reproducible_build: Drop obsolete sstate workaround

2021-10-31 Thread Steve Sakoman
From: Richard Purdie sstate has been sufficiently invalidated since this change was made, drop the workaround now. Signed-off-by: Richard Purdie (cherry picked from commit 7a497d8f30f21bafc78d0f22f3442a9cc99544cb) Signed-off-by: Steve Sakoman --- meta/classes/reproducible_build.bbclass | 4 --

[OE-core][dunfell 11/29] oe/utils: log exceptions in ThreadedWorker functions

2021-10-31 Thread Steve Sakoman
From: Ross Burton If the function a ThreadedWorker is executing raises an exception, don't use print() as that mostly disappears. Instead, output it to the logger. This is done using bb.mainlogger.debug directly instead of bb.debug() as this allows us to pass the exception instance directly, wh

[OE-core][dunfell 10/29] license.bbclass: implement ast.NodeVisitor.visit_Constant

2021-10-31 Thread Steve Sakoman
From: Ross Burton Since Python 3.8 visit_Num(), visit_Str() and so on are all deprecated and replaced with visit_Constant. We can't yet remove the deprecated functions until we require 3.8, but we can implement visit_Constant to silence the deprecation warnings. Signed-off-by: Ross Burton Sign

[OE-core][dunfell 09/29] oe/license: implement ast.NodeVisitor.visit_Constant

2021-10-31 Thread Steve Sakoman
From: Ross Burton Since Python 3.8 visit_Num(), visit_Str() and so on are all deprecated and replaced with visit_Constant. We can't yet remove the deprecated functions until we require 3.8, but we can implement visit_Constant to silence the deprecation warnings. Signed-off-by: Ross Burton Sign

[OE-core][dunfell 08/29] bitbake.conf: Add gpg-agent as a host tool

2021-10-31 Thread Steve Sakoman
From: Daniel McGregor If gpg is used, it will find the first gpg agent in the path, this may lead to issues where gpg comes from the host, and the agent comes from a gnupg-native due to package signing. The versions being out of sync causes gpg to fail. Signed-off-by: Daniel McGregor Signed-off

[OE-core][dunfell 07/29] base: Use repr() for printing exceptions

2021-10-31 Thread Steve Sakoman
From: Richard Purdie Exceptions print more clearly using repr() instead of str(), fix in fetch and unpack tasks. Drop part of the test which no longer makes sense after this change. Signed-off-by: Richard Purdie (cherry picked from commit c94816259cc1c09746353ad26ca0c811e0c962c2) Signed-off-by

[OE-core][dunfell 06/29] base: Clean up unneeded len() calls

2021-10-31 Thread Steve Sakoman
From: Richard Purdie This code pattern isn't very pythonic, improve it to drop the unneeded len() calls. Signed-off-by: Richard Purdie (cherry picked from commit 69376ac1a6147b26fe1abaa4cf68414024814d63) Signed-off-by: Steve Sakoman --- meta/classes/base.bbclass | 8 1 file changed,

[OE-core][dunfell 05/29] sstate: don't silently handle all exceptions in sstate_checkhashes

2021-10-31 Thread Steve Sakoman
From: Ross Burton If checkstatus returns an exception we should silently handle FetchError, as this means the fetch failed for 'normal' reasons such as file not found. However, other exceptions may be raised, and these should be made visible. Signed-off-by: Ross Burton Signed-off-by: Richard P

[OE-core][dunfell 04/29] devtool: fix modify with patches in override directories

2021-10-31 Thread Steve Sakoman
From: Ross Burton If a recipe applies patches which are in machine-specific override directories, devtool will fail to fetch the patches that don't match the default configuration. For example where there are patches at qemux86/x86.patch and qemuarm/arm.patch: SRC_URI = "file://source" SRC_URI_

[OE-core][dunfell 03/29] sstate: fix touching files inside pseudo

2021-10-31 Thread Steve Sakoman
From: Jose Quaresma running the 'id' command inside the sstate_create_package function shows that this funcion run inside the pseudo: uid=0(root) gid=0(root) groups=0(root) The check for touch files [ ! -w ${SSTATE_PKG} ] will always return true and the touch can fail when the real user don't

[OE-core][dunfell 02/29] vim: fix 2021-3796

2021-10-31 Thread Steve Sakoman
From: Minjae Kim vim is vulnerable to Use After Free Problem: Checking first character of url twice. reference: https://github.com/vim/vim/commit/35a9a00afcb20897d462a766793ff45534810dc3 Signed-off-by: Minjae Kim Signed-off-by: Steve Sakoman --- .../vim/files/CVE-2021-3796.patch

[OE-core][dunfell 01/29] curl: Whitelist CVE-2021-22897

2021-10-31 Thread Steve Sakoman
From: Ranjitsinh Rathod CVE-2021-22897 is affecting only Windows, hence whitelisting this CVE. Link: https://security-tracker.debian.org/tracker/CVE-2021-22897 Link: https://ubuntu.com/security/CVE-2021-22897 Signed-off-by: Ranjitsinh Rathod Signed-off-by: Ranjitsinh Rathod Signed-off-by: Stev

[OE-core][dunfell 00/29] Patch review

2021-10-31 Thread Steve Sakoman
Please review this set of patches for dunfell and have comments back by end of day Tuesday. Passed a-full on autobuilder: https://autobuilder.yoctoproject.org/typhoon/#/builders/83/builds/2833 The following changes since commit a7520c47573cd166d441e504737492b86f5aa42e: selftest/reproducible:

Re: [OE-core] [PATCHv3 3/3] insane.bbclass: Add a check for directories that are expected to be empty

2021-10-31 Thread Richard Purdie
On Fri, 2021-10-29 at 23:29 +0200, Peter Kjellerstedt wrote: > The empty-dirs QA check verifies that all directories specified in > QA_EMPTY_DIRS are empty. It is possible to specify why a directory is > expected to be empty by defining QA_EMPTY_DIRS_RECOMMENDATION:, > which will then be included i

[OE-core] OE-core CVE metrics for honister on Sun 31 Oct 2021 05:30:01 AM HST

2021-10-31 Thread Steve Sakoman
Branch: honister New this week: 0 CVEs Removed this week: 0 CVEs Full list: Found 16 unpatched CVEs CVE-2016-20012: openssh https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-20012 * CVE-2019-12067: qemu:qemu-native:qemu-system-native https://web.nvd.nist.gov/view/vuln/detail?vulnId=CV

[OE-core] OE-core CVE metrics for hardknott on Sun 31 Oct 2021 05:00:01 AM HST

2021-10-31 Thread Steve Sakoman
Branch: hardknott New this week: 4 CVEs CVE-2021-27645: glibc https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-27645 * CVE-2021-33574: glibc https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-33574 * CVE-2021-38604: glibc https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021

[OE-core] OE-core CVE metrics for dunfell on Sun 31 Oct 2021 04:30:01 AM HST

2021-10-31 Thread Steve Sakoman
Branch: dunfell New this week: 1 CVEs CVE-2021-42762: webkitgtk https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-42762 * Removed this week: 0 CVEs Full list: Found 78 unpatched CVEs CVE-2016-20012: openssh https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-20012 * CVE-2018-212

[OE-core] OE-core CVE metrics for master on Sun 31 Oct 2021 04:00:01 AM HST

2021-10-31 Thread Steve Sakoman
Branch: master New this week: 0 CVEs Removed this week: 1 CVEs CVE-2021-39537: ncurses:ncurses-native https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-39537 * Full list: Found 11 unpatched CVEs CVE-2019-12067: qemu:qemu-native:qemu-system-native https://web.nvd.nist.gov/view/vuln/det