]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
3 years agoquilt: Disable external sendmail for deterministic build
Robert Yang [Wed, 2 Mar 2022 07:12:56 +0000 (23:12 -0800)]
quilt: Disable external sendmail for deterministic build

Otherwise, the build results would be different w/o host's /usr/sbin/sendmail:
1) The /usr/share/quilt/compat/sendmail will be genrated if no
   /usr/sbin/sendmail on host
2) No /usr/share/quilt/compat/sendmail if host's has /usr/sbin/sendmail

Use --without-sendmail to make it always generate /usr/share/quilt/compat/sendmail.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoperl: Makefile.PL: Fix _PATH_LOG for deterministic
Robert Yang [Wed, 2 Mar 2022 06:34:50 +0000 (22:34 -0800)]
perl: Makefile.PL: Fix _PATH_LOG for deterministic

It checks host's path such as /dev/log and uses it, this doesn't make sense for
cross build, and it causes undeterministic, for example, the contianer os
usually doesn't have /dev/log which leads to a different build result since
other host usually has /dev/log, so make it always use the default value to fix
the issue.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoflit_core: export do_configure and do_compile
Tim Orling [Tue, 1 Mar 2022 16:11:24 +0000 (08:11 -0800)]
flit_core: export do_configure and do_compile

The class should export the tasks so they can be extended or overriden
elsewhere (like what setuptools3.bbclass has).

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoOELAYOUT_ABI: bump, avoid tmp/ breakage by removing old cross manifests
Alexander Kanavin [Sat, 26 Feb 2022 15:02:17 +0000 (16:02 +0100)]
OELAYOUT_ABI: bump, avoid tmp/ breakage by removing old cross manifests

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agosstate: do not add TARGET_ARCH to pkgarch for cross recipes.
Alexander Kanavin [Sat, 26 Feb 2022 15:02:16 +0000 (16:02 +0100)]
sstate: do not add TARGET_ARCH to pkgarch for cross recipes.

This is redundant (target arch is already in PN), and breaks
compiling a cross-canadian toolchain, as that needs populating the
sysroot with two different native-hosted toolchains built from
cross recipes. Inserting TARGET_ARCH allows only one or the other.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoscripts: Various typo/grammar/punctuation fixes
Robert P. J. Day [Sun, 27 Feb 2022 10:53:05 +0000 (05:53 -0500)]
scripts: Various typo/grammar/punctuation fixes

Among other things, fix misspellings of:

  - absolute
  - deprecated
  - suitable
  - handle

and a bunch of other things.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agocoreutils: Disable statx for native build
Robert Yang [Tue, 1 Mar 2022 09:13:47 +0000 (01:13 -0800)]
coreutils: Disable statx for native build

The statx requires glibc >= 2.28 and linux kernel >= 4.11, but coreutils's
configure only checks glibc compatibility for statx syscall but fail to check
kernel support, e.g.:

RedHat Enterprise Linux Server 7.6 (Maipo)
Host kernel: 3.10.0-1127.8.2.el7.x86_64
Docker OS: Ubuntu 20.04.1 LTS

$ bitbake coreutils-native
find the binary ls and run it as "ls -l ."
The result is something like: "?????????. ? ? ? ? ? foo"

This is because glibc is 2.31 (Ubunut 20.04 in docker) which has statx,
but host's kernel is 3.10.0 (CentOS 7) which doesn't support statx.

Disable statx for native build to fix the problem.

Original from: Davi Poyastro <davi.poyastro@nokia.com>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoicecc.bbclass: enable networking in all tasks
Jose Quaresma [Wed, 16 Feb 2022 23:26:54 +0000 (23:26 +0000)]
icecc.bbclass: enable networking in all tasks

The icecc.bbclass needs network access to work properly.

Currently I build with icecc inside a container with network isolation and
my icecc daemon runs outside of the build container in my host.
The only thing I need to do for using the icecc inside my build container is
mounting the unix socket /var/run/icecc/iceccd.socket inside the container.

I think we need something like this mount functionality to have access to
some sockets connections inside the tasks that runs on the new namespace
created with unshare system call.

This patch is not a the real solution for the problem and is more like
an hack so we can use the icecc.bbclass again.

Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolibarchive: upgrade 3.5.3 -> 3.6.0
Randy MacLeod [Tue, 1 Mar 2022 22:44:16 +0000 (14:44 -0800)]
libarchive: upgrade 3.5.3 -> 3.6.0

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agosysstat: upgrade 12.4.4 -> 12.4.5
wangmy [Tue, 1 Mar 2022 13:07:54 +0000 (21:07 +0800)]
sysstat: upgrade 12.4.4 -> 12.4.5

Changelog:
=========
* sar/sadf: Make sure that datafiles with unknown activities can
  be read by sar and sadf.
* sar/sadf: Don't reallocate buffers for activities not present
  in file.
* sar: Make sure that all buffers are copied in copy_structures()
  function.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agosqlite3: upgrade 3.37.2 -> 3.38.0
wangmy [Tue, 1 Mar 2022 13:07:53 +0000 (21:07 +0800)]
sqlite3: upgrade 3.37.2 -> 3.38.0

Remove invalid PACKAGECONFIG : json1

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agowget: upgrade 1.21.2 -> 1.21.3
wangmy [Tue, 1 Mar 2022 13:07:55 +0000 (21:07 +0800)]
wget: upgrade 1.21.2 -> 1.21.3

Changelog:
=========
** Fix computation of total bytes downloaded during FTP trasnfers (#61277)
** Add option to select TLS 1.3 on the command line
** Fix HSTS build issues on some 64-bit big-endian systems
** Hide password during status report in --no-verbose
** Remove a sprurious print statement that showed up even during --quiet
** Some more cleanups and bug-fixes

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoovmf: upgrade 202111 -> 202202
wangmy [Tue, 1 Mar 2022 13:07:52 +0000 (21:07 +0800)]
ovmf: upgrade 202111 -> 202202

0001-Fix-VLA-parameter-warning.patch
removed since it's included in 202202

Changelog:
=========
OvmfPkg Add new target for Cloud Hypervisor
Add TDVF to OvmfPkg
Add new APIs to UefiCpuPkg/UefiCpuLib
Add AMD Secure Nested Paging Support
Add SSDT PCI generator in DynamicTablesPkg
Support ACPI 6.4 PPTT changes
Add FdtHwInfoParser library
Add DynamicPlatRepo library
Make package and platform builds reproducible across source format changes
Add Uncrustify CI Plugin
Apply uncrustify changes to all package C and H files

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agomesa: upgrade 21.3.6 -> 21.3.7
wangmy [Tue, 1 Mar 2022 11:59:09 +0000 (19:59 +0800)]
mesa: upgrade 21.3.6 -> 21.3.7

Changelog:
=========
Bug fixes
---------
lavapipe: dEQP-VK.spirv_assembly.instruction.compute.float16.arithmetic_3.step fails
ANV: Bad output from TransformFeedback . Regression from Mesa 21. Something to do with VB+XFB -> VB+XFB dependency?

Changes
-------
pan/bi: Avoid *FADD.v2f16 hazard in optimizer
pan/bi: Avoid *FADD.v2f16 hazard in scheduler
pan/bi: Lower swizzles on CSEL.i32/MUX.i32
panvk: Use more reliable assert for UBO pushing
radv: Fix preamble argument order.
ir3/spill: Fix simplify_phi_nodes with multiple loop nesting
lavapipe: fix sampler + sampler view leaks.
lavapipe: reference gallium fences correctly.
crocus: fix leak on gen4/5 stencil fallback blit path.
i915g: Initialize the rest of the "from_nir" temporary VS struct.
pick_status.json: Update to dabba7d7263be6ffb6f3676465e92c65952fa824
pick_status.json: Mark b07372312d7053f2ef5c858ceb1fbf9ade5e7c52 as denominated
gallivm/nir: Call nir_lower_bool_to_int32 after nir_opt_algebraic_late
nir: All set-on-comparison opcodes can take all float types
intel/fs: Don't optimize out 1.0*x and -1.0*x
spriv: Produce correct result for GLSLstd450Step with NaN
spirv: Produce correct result for GLSLstd450Modf with Inf
spirv: Produce correct result for GLSLstd450Tanh with NaN
nir: Properly handle various exceptional values in frexp
nir: Produce correct results for atan with NaN
nir: Add missing dependency on nir_opcodes.py
anv: Call vk_command_buffer_finish if create fails
dri: avoid NULL deref of DrawBuffer on flush
nir: fix lower_memcpy
anv/genxml/intel/fs: fix binding shader record entry
anv: don't set color state when input state was requested
ac/surface: add more elements to meta equations because HTILE can use them
lavapipe: use util_pack_color_union() for generating clear colors
aux/draw: fix llvm tcs lane vec generation
zink: always set VkPipelineMultisampleStateCreateInfo::pSampleMask
zink: always invalidate streamout counter buffer if not resuming
iris: Don't fast clear with the view format
r300: fix transformation of abs modifiers with negate
radeonsi: workaround Specviewperf13 Catia hang on GFX9
radeonsi: fix depth stencil multi sample texture blit
glx: fix pbuffer refcount init
radv/winsys: fix initializing debug/perftest options if multiple instances
intel/genxml: add PIPE_CONTROL field for L3 read only cache invalidation
anv: invalidate L3 read only cache when VF cache is invalidated
iris: invalidate L3 read only cache when VF cache is invalidated
iris: fix a leak on surface states
mesa/st: always use DXT5 when transcoding ASTC format
tegra: Use private reference count for sampler views
tegra: Use private reference count for resources
radv: Disable IB2 on compute queues.
venus: properly destroy deferred ahb image before real image creation

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolibva: upgrade 2.13.0 -> 2.14.0
wangmy [Tue, 1 Mar 2022 11:53:53 +0000 (19:53 +0800)]
libva: upgrade 2.13.0 -> 2.14.0

Changelog:
=========
* add: Add av1 encode interfaces
* add: VA/X11 VAAPI driver mapping for crocus DRI driver
* doc: Add description of the fd management for surface importing
* ci: fix freebsd build
* meson: Copy public headers to build directory to support subproject

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolibsolv: upgrade 0.7.20 -> 0.7.21
wangmy [Tue, 1 Mar 2022 11:53:52 +0000 (19:53 +0800)]
libsolv: upgrade 0.7.20 -> 0.7.21

Changelog:
=========
- selected bug fixes:
  * fix segfault on conflict resolution when using bindings
  * fix split provides not working if the update includes a forbidden
    vendor change
- new features:
  * support strict repository priorities
    new solver flag: SOLVER_FLAG_STRICT_REPO_PRIORITY
  * support zstd compressed control files in debian packages
  * add an ifdef allowing to rename Solvable dependency members
    ("requires" is a keyword in C++20)
  * support setting/reading userdata in solv files
    new functions: repowriter_set_userdata, solv_read_userdata
  * support queying of the custom vendor check function
    new function: pool_get_custom_vendorcheck
  * support solv files with an idarray block
  * allow accessing the toolversion at runtime

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolibjpeg-turbo: upgrade 2.1.2 -> 2.1.3
wangmy [Tue, 1 Mar 2022 11:53:51 +0000 (19:53 +0800)]
libjpeg-turbo: upgrade 2.1.2 -> 2.1.3

License-Update: year updated to 2022

Changelog:
==========
1. Fixed a regression introduced by 2.0 beta1[7] whereby cjpeg compressed PGM
input files into full-color JPEG images unless the '-grayscale' option was
used.

2. cjpeg now automatically compresses GIF and 8-bit BMP input files into
grayscale JPEG images if the input files contain only shades of gray.

3. The build system now enables the intrinsics implementation of the AArch64
(Arm 64-bit) Neon SIMD extensions by default when using GCC 12 or later.

4. Fixed a segfault that occurred while decompressing a 4:2:0 JPEG image using
the merged (non-fancy) upsampling algorithms (that is, with
'cinfo.do_fancy_upsampling' set to 'FALSE') along with 'jpeg_crop_scanline()'.
Specifically, the segfault occurred if the number of bytes remaining in the
output buffer was less than the number of bytes required to represent one
uncropped scanline of the output image.  For that reason, the issue could only
be reproduced using the libjpeg API, not using djpeg.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoccache: upgrade 4.5.1 -> 4.6
wangmy [Tue, 1 Mar 2022 11:52:50 +0000 (19:52 +0800)]
ccache: upgrade 4.5.1 -> 4.6

License-Update:
 year updated to 2022
 version of library updated

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agodbus: upgrade 1.12.20 -> 1.12.22
wangmy [Tue, 1 Mar 2022 11:52:51 +0000 (19:52 +0800)]
dbus: upgrade 1.12.20 -> 1.12.22

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoat: upgrade 3.2.4 -> 3.2.5
wangmy [Tue, 1 Mar 2022 11:52:49 +0000 (19:52 +0800)]
at: upgrade 3.2.4 -> 3.2.5

Changelog:
=========
Fix: atd forgets to run a job in the queue
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1004972

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-hypothesis: upgrade 6.37.2 -> 6.39.0
wangmy [Tue, 1 Mar 2022 09:41:44 +0000 (17:41 +0800)]
python3-hypothesis: upgrade 6.37.2 -> 6.39.0

Changelog:
=========
This release improves Hypothesis' handling of positional-only arguments,
which are now allowed @st.composite strategies.

On Python 3.8 and later, the first arguments to builds() and from_model()
are now natively positional-only. In cases which were already errors, the
TypeError from incorrect usage will therefore be raises immediately when
the function is called, rather than when the strategy object is used.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-dbusmock: upgrade 0.25.0 -> 0.26.1
wangmy [Tue, 1 Mar 2022 09:41:43 +0000 (17:41 +0800)]
python3-dbusmock: upgrade 0.25.0 -> 0.26.1

Changelog from 0.25.0 to 0.26.1:
==========
- logind template: Add locking API
- bluez5 template: Add RemoveDevice() and RemoveAdapterWithDevices() methods,
  fix properties
- Documentation improvements, particularly wrt. raising errors
- Fix README content type to Markdown, to fix releasing to PyPi

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agorepo: upgrade 2.21 -> 2.22
Changhyeok Bae [Mon, 28 Feb 2022 23:56:42 +0000 (23:56 +0000)]
repo: upgrade 2.21 -> 2.22

Signed-off-by: Changhyeok Bae <changhyeok.bae@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agonghttp2: upgrade 1.46.0 -> 1.47.0
wangmy [Mon, 28 Feb 2022 14:05:12 +0000 (22:05 +0800)]
nghttp2: upgrade 1.46.0 -> 1.47.0

Changelog:
=========
lib: Fix decoder table size update (GH-1667)
lib: chore: fix -Wunreachable-code-return (GH-1625)
build: Make Docker speak HTTP/3 (GH-1657)
build: Remove SPDY option for CMake (GH-1665)
build: cmake: Disable libbpf build by default
doc: Fix typos (GH-1668)
doc: Update nghttp2.pyx (GH-1666)
h2load: Handle EAGAIN/EWOULDBLOCK from sendmsg
h2load: allow setting max frame size for h2load (GH-1640)
nghttpx: Add --require-http-scheme option
nghttpx: Add support QUIC BBR2
nghttpx: Bump libbpf to v0.7.0 and turn on all strict features
nghttpx: Change qlog file extension to .sqlog
nghttpx: Fix bug that h3 stream ends prematurely
nghttpx: Fix the issue that forwarded h3 GET request always has chunked TE
nghttpx: Handle EAGAIN/EWOULDBLOCK from sendmsg
nghttpx: Send and receive ECN in QUIC packets
nghttpx: Set IP_PMTUDISC_DO explicitly
nghttpx: Support h3 trailer fields
nghttpx: fix quotes in --altsvc example (GH-1643)
nghttpx: shrpx: make nghttpx -v show ngtcp2 and nghttp3 version as well (GH-1636)
third-party: Bump llhttp to v6.0.6

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolibgit2: upgrade 1.4.1 -> 1.4.2
wangmy [Mon, 28 Feb 2022 14:05:11 +0000 (22:05 +0800)]
libgit2: upgrade 1.4.1 -> 1.4.2

This is a bugfix release with the following changes:
====================================================
remote: do store the update_tips callback error value
win32: find_system_dirs does not return GIT_ENOTFOUND

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoell: upgrade 0.48 -> 0.49
wangmy [Mon, 28 Feb 2022 14:05:10 +0000 (22:05 +0800)]
ell: upgrade 0.48 -> 0.49

Changelog:
==========
 Fix issue with multiple offers from the same DHCP server.
 Fix issue with Base64 decoding and bytes consumed validation.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoinsane.bbclass: Update insane.bbclass to work on FIPS enabled hosts
Mark Hatle [Tue, 1 Mar 2022 01:37:26 +0000 (19:37 -0600)]
insane.bbclass: Update insane.bbclass to work on FIPS enabled hosts

hashlib.md5() is not permitted on a FIPS enabled host system.  This is due
to md5 not being an approved hash algorithm.

Instead use:
 hashlib.new('MD5', usedforsecurity=False)

This is allowed, as it's clear the hash is used for a non-security purpose.

Using an md5 to identify when a license has changed is permitted, as we're
not using it for file integrity.

Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agometa, meta-selftest: Replace more non-SPDX license identifiers
Peter Kjellerstedt [Sun, 27 Feb 2022 18:21:36 +0000 (19:21 +0100)]
meta, meta-selftest: Replace more non-SPDX license identifiers

In commit ceda3238 (meta/meta-selftest/meta-skeleton: Update LICENSE
variable to use SPDX license identifiers) all LICENSE variables were
updated to only use SPDX license identifiers.

This does the same for comments and other variables where it is
appropriate to use the official SPDX license identifiers. There are
still references to, e.g., "GPLv3", but they are then typically in
descriptive text where they refer to the license in a generic sense.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agorecipetool: Use SPDX license identifiers
Peter Kjellerstedt [Sun, 27 Feb 2022 18:21:35 +0000 (19:21 +0100)]
recipetool: Use SPDX license identifiers

There are still a couple of cases where the license may be set as, e.g.,
"GPL" or "GPL-2.0" since there is not enough information to decide the
actual SPDX license. It is then assumed that the developer will have to
correct the information.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agorecipetool/create_buildsys_python: Add support for more known licenses
Peter Kjellerstedt [Sun, 27 Feb 2022 18:21:34 +0000 (19:21 +0100)]
recipetool/create_buildsys_python: Add support for more known licenses

Add all OSI approved licenses from https://pypi.org/classifiers/. Also
add support for Other/Proprietary (Proprietary) and Public Domain (PD).

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoselftest: recipetool: Correct the URI for socat
Peter Kjellerstedt [Sun, 27 Feb 2022 18:21:33 +0000 (19:21 +0100)]
selftest: recipetool: Correct the URI for socat

The URI to the socat tarball used in the
recipetool.RecipetoolCreateTests.test_recipetool_create_simple test has
been moved to an "Archive" directory.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agodefault-distrovars.inc: Remove the empty default for WHITELIST_GPL-3.0
Peter Kjellerstedt [Sun, 27 Feb 2022 18:21:32 +0000 (19:21 +0100)]
default-distrovars.inc: Remove the empty default for WHITELIST_GPL-3.0

There is no reason to set an empty default for it, while not doing it
for all other potential WHITELIST_* variables. The reason it was set
here is a leftover from before when it was actually set to a value.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agomutlilib: Handle WHITELIST_GPL-3.0 being unset
Richard Purdie [Mon, 28 Feb 2022 15:45:43 +0000 (15:45 +0000)]
mutlilib: Handle WHITELIST_GPL-3.0 being unset

The code doesn't work if the variable is unset, fix that.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoinitramfs-framework: Add overlayroot module
Alejandro Hernandez Samaniego [Sat, 29 Jan 2022 19:48:39 +0000 (12:48 -0700)]
initramfs-framework: Add overlayroot module

When installed, this module mounts a read-write (RW) overlay on
top of a root filesystem, which is kept read-only (RO), free
from modifications by the user, this might prove to be useful
if we want to access or restore the original unmodified rootfs.

The existing overlay-etc.bbclass does something similar, it
mounts an overlay on top of the /etc directory, however doing
the same for root causes the original root to be inaccessible
once the system is booted, hence why this module is added to
the initramfs boot flow, allowing us to mount the RW overlay,
while keeping the original rootfs mounted at /rofs once the
system finishes booting. This script is loosely based on that
class.

This module requires rootrw=<foo> to be passed as a kernel
parameter to specify the device/partition to be used as RW by the
overlay and has a dependency on overlayfs support being present
in the running kernel.

It does not require the read-only IMAGE_FEATURE to be enabled.

The module needs to be executed after the initramfs-module-rootfs
since it relies on it to mount the filesystem at initramfs startup
but before the finish module which normally switches root.
After overlayroot is executed the usual boot flow continues from
the real init process.

If something goes wrong while running this module, the rootfs
is still mounted RO (with no overlay) and the finish module is
executed to continue booting normally.

Its worth noting that, on purpose, this isnt installed by default
on any images that use initramfs-framework to keep the boot flow
unmodified, only when a user manually requests to install it,
then it becomes functional.

Signed-off-by: Alejandro Enedino Hernandez Samaniego <alhe@linux.microsoft.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoflit_core: inherit setuptools3-base
Tim Orling [Fri, 25 Feb 2022 23:58:34 +0000 (15:58 -0800)]
flit_core: inherit setuptools3-base

This helps bridge the old setuptools3 behavior.

FILES:${PN} has sane defaults in setuptools3-base

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agomusl: Update to latest master
Khem Raj [Fri, 25 Feb 2022 18:09:17 +0000 (10:09 -0800)]
musl: Update to latest master

brings in these fixes

  * f8bdc304 fix spurious failures by fgetws when buffer ends with partial character
  * 5690668a add missing strerror text for key management
  * 3b7b4155 fix out-of-bound read processing time zone data with distant-past dates
  * 75b3412f fix potentially wrong-sign zero in cproj functions at infinity
  * 52f0deb9 make fseek detect and produce an error for invalid whence arguments
  * cbacd638 add SEEK_DATA and SEEK_HOLE to unistd.h

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolicense.py: Correct a comment
Peter Kjellerstedt [Fri, 25 Feb 2022 17:03:49 +0000 (18:03 +0100)]
license.py: Correct a comment

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agosystemd: move systemd shared library into its own package
Stefan Herbrechtsmeier [Fri, 25 Feb 2022 15:54:59 +0000 (16:54 +0100)]
systemd: move systemd shared library into its own package

Move the systemd shared library (libsystemd-shared.so) into its own
package to prevent a runtime dependency from udev package to systemd
package and thereby to a second init manager.

Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agozip: modify when match.S is built
Joe Slater [Fri, 25 Feb 2022 15:48:08 +0000 (07:48 -0800)]
zip: modify when match.S is built

Use the correct $CPP to test if *.S are buildable,
but do not build match.S because it is not PIC code.

Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-git: upgrade 3.1.26 -> 3.1.27
wangmy [Wed, 23 Feb 2022 07:44:55 +0000 (15:44 +0800)]
python3-git: upgrade 3.1.26 -> 3.1.27

Changelog:
=========
-Reduced startup time due to optimized imports.
-Fix a vulenerability that could cause great slowdowns when encountering long
 remote path names when pulling/fetching.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoRevert "cve-check: add lockfile to task"
Ross Burton [Wed, 23 Feb 2022 12:54:32 +0000 (12:54 +0000)]
Revert "cve-check: add lockfile to task"

Now that all of the functions in cve-check open the database read-only,
we can remove this lockfile.

This means cve-check can run in parallal again, improving runtimes
massively.

This reverts commit d55fbf4779483d2cfd71df78d0f733b599fef739.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agokernel-devsrc: do not copy Module.symvers file during install
Oleksandr Ocheretnyi [Fri, 25 Feb 2022 15:17:15 +0000 (07:17 -0800)]
kernel-devsrc: do not copy Module.symvers file during install

When CONFIG_MODULES is not enabled in kernel config - Module.symvers
generation is not done, which causes the file not to be created.

This fails later in do_install() due to the fact that copy
command in executed for non-existing Module.symvers file.

Check for Module.symvers existence before copy command in executed.

Signed-off-by: Oleksandr Ocheretnyi <oocheret@cisco.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopip_install_wheel: Use BPN instead of PN to construct PYPI_PACKAGE default
Richard Purdie [Sat, 26 Feb 2022 08:20:25 +0000 (08:20 +0000)]
pip_install_wheel: Use BPN instead of PN to construct PYPI_PACKAGE default

This fixes the name for native and nativesdk recipes.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopip_install_wheel: improved wheel filename guess
Tim Orling [Fri, 25 Feb 2022 04:03:31 +0000 (20:03 -0800)]
pip_install_wheel: improved wheel filename guess

Rather than only use PYPI_PACKAGE as a guess, fall back on PN for cases
where a recipe does not inherit pypi.

Wheels can only have alphanumeric characters in the 'distribution'
name [1]. Any other characters are replaced with an underscore. Provide a
function to replace dash with underscore.

[1] https://www.python.org/dev/peps/pep-0491/#escaping-and-unicode

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoinsane: use HOST_ variables, not TARGET_ to determine the cross system
Alexander Kanavin [Thu, 24 Feb 2022 15:03:02 +0000 (16:03 +0100)]
insane: use HOST_ variables, not TARGET_ to determine the cross system

Almost everywhere those are the same, except when making a cross toolchain
where HOST_ is where it's going to run, and TARGET_ is what it's going to
produce.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agobase/staging: use HOST_PREFIX, not TARGET_PREFIX
Alexander Kanavin [Thu, 24 Feb 2022 15:03:00 +0000 (16:03 +0100)]
base/staging: use HOST_PREFIX, not TARGET_PREFIX

This matters when cross-compiling a cross-toolchain:
we need to specify the system where the toolchain
will run, not the system it will produce output for.

For everything else, HOST and TARGET are the same.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoselftest: drop distutils3 test from recipetool
Tim Orling [Fri, 25 Feb 2022 05:30:51 +0000 (21:30 -0800)]
selftest: drop distutils3 test from recipetool

The distutils*.bbclasses have been moved from oe-core to
meta-python, so drop test_recipetool_create_python3_distutils
test case.

[YOCTO #14610]

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agodisutils*.bbclasses: move to meta-python
Tim Orling [Fri, 25 Feb 2022 05:30:50 +0000 (21:30 -0800)]
disutils*.bbclasses: move to meta-python

distutils has been deprecated in Python 3.10 and will be removed in
Python 3.12 (predicted release date October 2023). For now, move these
classes from oe-core to meta-python to allow users to migrate.

[YOCTO #14610]

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoasciidoc: upgrade 10.1.1 -> 10.1.3
wangmy [Wed, 23 Feb 2022 09:08:13 +0000 (17:08 +0800)]
asciidoc: upgrade 10.1.1 -> 10.1.3

Bugfix:
========
Add missing py files to dist archives
Fix setup.py including packages outside of asciidoc

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-markupsafe: upgrade 2.0.1 -> 2.1.0
wangmy [Wed, 23 Feb 2022 07:44:57 +0000 (15:44 +0800)]
python3-markupsafe: upgrade 2.0.1 -> 2.1.0

Changelog:
==========
Drop support for Python 3.6. :pr:'262'
Remove soft_unicode, which was previously deprecated. Use soft_str instead. :pr:'261'
Raise error on missing single placeholder during string interpolation. :issue:'225'
Disable speedups module for GraalPython. :issue:'277'

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-hypothesis: upgrade 6.36.2 -> 6.37.2
wangmy [Wed, 23 Feb 2022 07:44:56 +0000 (15:44 +0800)]
python3-hypothesis: upgrade 6.36.2 -> 6.37.2

This patch fixes a bug in stateful testing, where returning a single value
wrapped in :func:'~hypothesis.stateful.multiple' would be printed such that
the assigned variable was a tuple rather than the single element

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-nose: drop recipe
Tim Orling [Tue, 22 Feb 2022 19:16:58 +0000 (11:16 -0800)]
python3-nose: drop recipe

The code has not been touched since 2016 and numerous files still have
Python2 syntax code in them. This causes do_compile errors when
packaging a wheel (PEP-517 packaging).

Nothing in oe-core depends on python3-nose.

[YOCTO #14638]

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-packaging: inherit setuptools_build_meta
Tim Orling [Tue, 22 Feb 2022 19:16:57 +0000 (11:16 -0800)]
python3-packaging: inherit setuptools_build_meta

Upstream provides a pyproject.toml which declares the
setuptools.build_meta backend for PEP-517 packaging.

[YOCTO #14638]

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-mako: inherit setuptools_build_meta
Tim Orling [Tue, 22 Feb 2022 19:16:56 +0000 (11:16 -0800)]
python3-mako: inherit setuptools_build_meta

Upstream provides a pyproject.toml which declares the
setuptools.build_meta backend for PEP-517 packaging.

[YOCTO #14638]

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-dbusmock: set PIP_INSTALL_PACKAGE
Tim Orling [Tue, 22 Feb 2022 19:16:55 +0000 (11:16 -0800)]
python3-dbusmock: set PIP_INSTALL_PACKAGE

The name of the wheel as built by bdist_wheel is "python_dbusmock", set
PIP_INSTALL_PACKAGE appropriately.

[YOCTO #14638]

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-numpy: Fix pyc determinism issue
Richard Purdie [Thu, 24 Feb 2022 23:27:27 +0000 (23:27 +0000)]
python3-numpy: Fix pyc determinism issue

Using frozenset causes problems for pyc file determinism. For now remove
the problematic pyc file as we do in the main python3 recipe.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-numpy: set PIP_INSTALL_PACKAGE
Tim Orling [Tue, 22 Feb 2022 19:16:54 +0000 (11:16 -0800)]
python3-numpy: set PIP_INSTALL_PACKAGE

The recipe does not inherit pypi so we need to manually set
PIP_INSTALL_PACKAGE appropriately.

[YOCTO #14638]

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agogi-docgen: set PIP_INSTALL_PACKAGE
Tim Orling [Tue, 22 Feb 2022 19:16:53 +0000 (11:16 -0800)]
gi-docgen: set PIP_INSTALL_PACKAGE

The name of the wheel as built by bdist_wheel is "gi_docgen", set
PIP_INSTALL_PACKAGE appropriately.

[YOCTO #14638]

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoasciidoc: set PIP_INSTALL_PACKAGE
Tim Orling [Tue, 22 Feb 2022 19:16:52 +0000 (11:16 -0800)]
asciidoc: set PIP_INSTALL_PACKAGE

This recipe does not inherit pypi and therefor we need to manually set
PIP_INSTALL_PACKAGE to reflect the wheel built by bdist_wheel.

[YOCTO #14638]

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agobmap-tools: set PIP_INSTALL_PACKAGE, BASEVER
Tim Orling [Tue, 22 Feb 2022 19:16:51 +0000 (11:16 -0800)]
bmap-tools: set PIP_INSTALL_PACKAGE, BASEVER

Change filename to _git.bb and use BASEVER to set PV.

The wheel built by bdist_wheel is named "bmap_tool-*.whl" set the
PIP_INSTALL_PACKAGE name accordingly.

Use BASEVER to set PYPA_WHEEL to match the version in the wheel produced
by bdist_wheel.

[YOCTO #14638]

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-magic: set PIP_INSTALL_PACKAGE
Tim Orling [Tue, 22 Feb 2022 19:16:50 +0000 (11:16 -0800)]
python3-magic: set PIP_INSTALL_PACKAGE

The wheel built by bdist_wheel has the name "python_magic-*.whl" so set
PIP_INSTALL_PACKAGE accordingly.

[YOCTO #14638]

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-subunit: merge inc; set PIP_INSTALL_PACKAGE
Tim Orling [Tue, 22 Feb 2022 19:16:49 +0000 (11:16 -0800)]
python3-subunit: merge inc; set PIP_INSTALL_PACKAGE

We have not supported python2 for some time now, so there is no reason
to maintain a separate python-subunit.inc file.

The wheel built by bdist_wheel is named 'python_subunit-*.whl', so set
PIP_INSALL_PACKAGE appropriately.

Add patch to use vendored _distutils from setuptools.

[YOCTO #14638]

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-scons: merge -native recipe
Tim Orling [Tue, 22 Feb 2022 19:16:48 +0000 (11:16 -0800)]
python3-scons: merge -native recipe

The native recipe simply calls create_wrapper to add a host script. Do
this via do_install:append:class-native()

The scons*.1 man pages are being installed in ${prefix}, move them to
${mandir} (previously installed in ${datadir}).

[YOCTO #14638]

Drop from maintainers.inc

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-smartypants: patch hash bang to python3
Tim Orling [Tue, 22 Feb 2022 19:16:47 +0000 (11:16 -0800)]
python3-smartypants: patch hash bang to python3

Change hash bang in smartypants and smartypants.py to be /usr/bin/env
python3

[YOCTO #14638]

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-libarchive-c: set PIP_INSTALL_PACKAGE
Tim Orling [Tue, 22 Feb 2022 19:16:46 +0000 (11:16 -0800)]
python3-libarchive-c: set PIP_INSTALL_PACKAGE

Set PIP_INSTALL_PACKAGE to libarchive_c to match the name of the wheel
built by bdist_wheel.

[YOCTO #14638]

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agomeson: inherit setuptools_build_meta
Tim Orling [Tue, 22 Feb 2022 19:16:45 +0000 (11:16 -0800)]
meson: inherit setuptools_build_meta

Upstream provides a pyproject.toml which declares setuptools.build_meta
to be backend for PEP-517 packaging.

Set PIP_INSTALL_PACKAGE as this recipe does not inherit pypi and
therefor no PYPI_PACKAGE is defined

[YOCTO #14638]

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-more-itertools: set PIP_INSTALL_PACKAGE
Tim Orling [Tue, 22 Feb 2022 19:16:44 +0000 (11:16 -0800)]
python3-more-itertools: set PIP_INSTALL_PACKAGE

Define PIP_INSTALL_PACKAGE as more_itertools to match the name of the
wheel.

[YOCTO #14638]

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agosetuptools3.bbclass: refactor for wheels
Tim Orling [Tue, 22 Feb 2022 19:16:43 +0000 (11:16 -0800)]
setuptools3.bbclass: refactor for wheels

Depend on python3-wheel-native so that we can build with 'setup.py
bdist_wheel'.

Use pip_install_wheel class to install the built wheels with pip, as
intended by upstream Python.

[YOCTO #14638]

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-setuptools: inherit setuptools_base_meta
Tim Orling [Tue, 22 Feb 2022 19:16:42 +0000 (11:16 -0800)]
python3-setuptools: inherit setuptools_base_meta

Upstream provides a pyproject.toml which declares the
setuptools.build_meta backend for PEP-517 packaging.

We need to bootstrap python3-setuptools-native, simply installing by
unzipping the built wheel. This avoids a dependency loop.

[YOCTO #14638]

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-pluggy: inherit setuptools_build_meta
Tim Orling [Tue, 22 Feb 2022 19:16:41 +0000 (11:16 -0800)]
python3-pluggy: inherit setuptools_build_meta

Upstream provides a pyproject.toml which while it does not declare the
setuptools.build_meta backend is compatible with it.

[YOCTO #14638]

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-py: inherit setuptools_build_meta
Tim Orling [Tue, 22 Feb 2022 19:16:40 +0000 (11:16 -0800)]
python3-py: inherit setuptools_build_meta

Upstreama provides a pyproject.toml which declares the
setuptools.build_meta backend for PEP-517 packaging.

[YOCTO #14638]

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-iniconfig: inherit setuptools_build_meta
Tim Orling [Tue, 22 Feb 2022 19:16:39 +0000 (11:16 -0800)]
python3-iniconfig: inherit setuptools_build_meta

Upstream provides a pyproject.toml which decalres the
setuptools.build_meta backend for PEP-517 packaging.

DEPENDS on python3-setuptools-scm-native (as declared in the
pyproject.toml build-system.requires).

[YOCTO #14638]

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-zipp: inherit setuptools_build_meta
Tim Orling [Tue, 22 Feb 2022 19:16:38 +0000 (11:16 -0800)]
python3-zipp: inherit setuptools_build_meta

Upstream provides a pyproject.toml which declares the
setuptools.build_meta backend for PEP-517 packaging.

[YOCTO #14638]

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-setuptools-scm: inherit setuptools_build_meta
Tim Orling [Tue, 22 Feb 2022 19:16:37 +0000 (11:16 -0800)]
python3-setuptools-scm: inherit setuptools_build_meta

Upstream provides a pyproject.toml which declares the
setuptools.build_meta backend for PEP-517 packaging.

[YOCTO #14638]

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-pytest: inherit setuptools_build_meta
Tim Orling [Tue, 22 Feb 2022 19:16:36 +0000 (11:16 -0800)]
python3-pytest: inherit setuptools_build_meta

Upstream provides a pyproject.toml which declares the
setuptools.build_meta backend for PEP-517 packaging.

[YOCTO #14638]

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-git: inherit setuptools_build_meta
Tim Orling [Tue, 22 Feb 2022 19:16:35 +0000 (11:16 -0800)]
python3-git: inherit setuptools_build_meta

Upstream provides a pyproject.toml which declares the
setuptools.build_meta backend for PEP-517 packaging.

[YOCTO #14638]

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-attrs: inherit setuptools_build_meta
Tim Orling [Tue, 22 Feb 2022 19:16:34 +0000 (11:16 -0800)]
python3-attrs: inherit setuptools_build_meta

Upstream provides a pyproject.toml which declares the
setuptools.build_meta backend for PEP-517 packaging.

[YOCTO #14638]

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-pip: Improve reproducibility
Richard Purdie [Thu, 24 Feb 2022 14:49:30 +0000 (14:49 +0000)]
python3-pip: Improve reproducibility

Pip installed wheels are not reproducible currently. The direct_url
files encode an installation path and the installed wheels compile
the python files at their location, not their final install location
which is incorrect.

To fix this, simply disable the direct_urls and pass the "root" to
the python compile function to strip that path out of the compiled
files.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-pip-native: install scripts in ${bindir}
Tim Orling [Wed, 23 Feb 2022 22:09:10 +0000 (14:09 -0800)]
python3-pip-native: install scripts in ${bindir}

The naïve approach of simply unzipping the built wheel is not
sufficient. 'pip install' would normally have created the
[console_scripts] from entry-points.txt in ${D}${bindir}.

For bootstrapping purposes, hardcode the scripts and install them into
${D}${bindir}. Skip the ${bindir}/pip variant.

[YOCTO #14739]

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-pip: Don't change shebang
Richard Purdie [Wed, 23 Feb 2022 12:27:06 +0000 (12:27 +0000)]
python3-pip: Don't change shebang

Patch pip to disable shebang mangling and also force the python executable
to be python3 from the environment when building anything for the target
(or nativesdk).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-pip: inherit setuptools_build_meta
Tim Orling [Tue, 22 Feb 2022 19:16:33 +0000 (11:16 -0800)]
python3-pip: inherit setuptools_build_meta

Upstream provides a pyproject.toml which declares setuptools.build_meta
as the backend for PEP-517 packaging.

We bootstrap the -native installation by simply unzipping the wheel to
PYTHON_SITEPACKAGES_DIR, so that all other recipes can use pip to
install wheels (as intended by upstream).

Check for presence of ${D}${bindir}/pip and remove if found (this was
originally to make sure Python2 pip was the default).

[YOCTO #14638]

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agosetuptools_build_meta.bbclass: add helper class
Tim Orling [Tue, 22 Feb 2022 19:16:32 +0000 (11:16 -0800)]
setuptools_build_meta.bbclass: add helper class

This class uses the PEP 517 compliant setuptools.buil_meta to build
wheels.

[YOCTO #14638]

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-wheel-native: install ${bindir}/wheel
Tim Orling [Wed, 23 Feb 2022 22:09:13 +0000 (14:09 -0800)]
python3-wheel-native: install ${bindir}/wheel

pip install would normally install [project.scripts] to ${D}${bindir}
but our naïve bootstrapping only unzipps the wheel to
${D}${PYTHON_SITEPACKAGES_DIR}. Correct this by creating the equivalent
script in do_install:class-native

[YOCTO #14739]

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopip_install_wheel: Use --ignore-installed for pip
Richard Purdie [Wed, 23 Feb 2022 12:10:05 +0000 (12:10 +0000)]
pip_install_wheel: Use --ignore-installed for pip

Replace the use of --force-reinstall with --ignore-installed when running pip
install. It can detect currently installed modules in the wrong environment and
try to remove them currently which is not what is desired. Ignoring them is the
correct thing to do.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopip_install_wheel: Recompile modified files
Richard Purdie [Thu, 24 Feb 2022 23:41:55 +0000 (23:41 +0000)]
pip_install_wheel: Recompile modified files

If we modify the file, we need to recompile the pyc files since the file
hash has changed. This would otherwise result in reproducibility failrues.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopip_install_wheel.bbclass: add helper class
Tim Orling [Tue, 22 Feb 2022 19:16:31 +0000 (11:16 -0800)]
pip_install_wheel.bbclass: add helper class

Provide a helper class to use pip to install wheels built by either
bdist_wheel or a PEP-517 backend.

Set pip install arguments via PIP_INSTALL_ARGS, which can be overriden
by recipes.

Pass --root and --prefix to ensure that pip installs things into the
proper place in sysroot.

By passing --no-deps and --no-index we avoid finicky dependency
checking (pip expects wheels in its cache) and avoid trying to fetch
wheels from pypi.org. This is basically the same behavior we have now,
the dependencies should be declared in the recipe.

Also pass --force-reinstall to make sure built wheels are always installed
so that FILES gets properly populated.

Pass --no-cache to avoid a (harmless) warning about the pip cache in
$HOME be avoiding use of cache. We do not likely want wheels cached
anyway,

pip install changes the python interpreter in scripts installed in
${bindir}, e.g. to #!/usr/bin/nativepython3, correct the behavior after
install to #!/usr/bin/env python3.

[YOCTO #14638]

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-wheel: inherit flit_core
Tim Orling [Tue, 22 Feb 2022 19:16:30 +0000 (11:16 -0800)]
python3-wheel: inherit flit_core

Backport pyproject.toml from flit-backend branch.
Inherit flit_core class to build
Inherit pip_install_wheel to install wheels for target

We need to bootstrap python3-wheel-native in order to have bdist_wheel
available to python3-setuptools-native and the refactored
setuptools3.bbclass. Simply unzip the wheel into
PYTHON_SITEPACKAGES_DIR for class-native.

[YOCTO #14638]

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoflit_core.bbclass: add helper for newer python packaging
Tim Orling [Tue, 22 Feb 2022 19:16:29 +0000 (11:16 -0800)]
flit_core.bbclass: add helper for newer python packaging

Some python packages now use pyproject.toml and declare
flit_core.buildapi as the build engine

Use pip_install_wheel class to install.

[YOCTO #14638]

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-flit-core: inherit pip_install_wheel
Tim Orling [Thu, 24 Feb 2022 23:45:14 +0000 (15:45 -0800)]
python3-flit-core: inherit pip_install_wheel

Keep the pip install logic, especially --root in one place to ensure
that we fix e.g. reproducible issues in one place.

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-flit-core: SUMMARY DESCRIPTION HOMEPAGE
Tim Orling [Wed, 23 Feb 2022 22:09:12 +0000 (14:09 -0800)]
python3-flit-core: SUMMARY DESCRIPTION HOMEPAGE

Add SUMMARY DESCRIPTION HOMEPAGE and BUGTRACKER definitions.

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-flit-core: add recipe for 3.6.0
Tim Orling [Tue, 22 Feb 2022 19:16:28 +0000 (11:16 -0800)]
python3-flit-core: add recipe for 3.6.0

This is the core of one of the "new build system" tools--hosted
officially as part of the pypa (Python Packaging Authority)
repositories--it is an increasingly common build tool (e.g.
typing_extensions and tomli) as declared in pyproject.toml for
said packages.

This package provides a very simple bootstrapping method that builds
the source tarball (build_sdist) and a wheel (build_wheel).

Bootstrap -native by simply unzipping the wheel to
PYTHON_SITEPACKAGES_DIR.

Use pip to install the wheel for class-target.

Wheels are the official vehicle for delivering Python packages now.
Eggs (egg-info) are deprecated and will increasingly go away.

[YOCTO #14638]

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolicenses: Fix logic error introduced in rename
Richard Purdie [Fri, 25 Feb 2022 08:33:06 +0000 (08:33 +0000)]
licenses: Fix logic error introduced in rename

The previous commit introduced a small logic error. Fix the renaming issue.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agofiles: overlayfs-create-dirs: split ExecStart into two commands
Stefan Herbrechtsmeier [Thu, 24 Feb 2022 17:00:46 +0000 (18:00 +0100)]
files: overlayfs-create-dirs: split ExecStart into two commands

Split ExecStart into two commands because systemd interpret an ExecStart
entry as a single executable with multiple parameters.

systemd[1]: Starting Overlayfs directories setup...
mkdir: cannot create directory '&&': Read-only file system
mkdir: cannot create directory 'mkdir': Read-only file system

Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoclasses: rootfs-postcommands: avoid exception in overlayfs_qa_check
Stefan Herbrechtsmeier [Thu, 24 Feb 2022 17:00:10 +0000 (18:00 +0100)]
classes: rootfs-postcommands: avoid exception in overlayfs_qa_check

The overlayfs_qa_check in the rootfs-postcommands class throws an
exception if the overlayfs distro feature is enabled but no global
OVERLAYFS_MOUNT_POINT is specifived.

File: '/home/stefan/dalos-linutronix/poky/meta/classes/rootfs-postcommands.bbclass', lineno: 389, function: overlayfs_qa_check
     0385:    searchpaths = [oe.path.join(imagepath, d.getVar("sysconfdir"), "systemd", "system"),
     0386:                   oe.path.join(imagepath, d.getVar("systemd_system_unitdir"))]
     0387:
     0388:    allUnitExist = True;
 *** 0389:    for mountPoint in overlayMountPoints:
     0390:        path = d.getVarFlag('OVERLAYFS_MOUNT_POINT', mountPoint)
     0391:        unit = mountUnitName(path)
     0392:
     0393:        if not any(os.path.isfile(oe.path.join(dirpath, unit))
Exception: TypeError: 'NoneType' object is not iterable

Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolibsndfile1: bump to version 1.0.31
Alexandru Ardelean [Thu, 24 Feb 2022 15:30:33 +0000 (17:30 +0200)]
libsndfile1: bump to version 1.0.31

It seems that the homepage has moved (for a while now) from
  http://www.mega-nerd.com/libsndfile/
to
  https://libsndfile.github.io/libsndfile/

On Github, the development group seems to include Erik de Castro Lopo (the
original author of libsndfile1).
Link: https://github.com/orgs/libsndfile/people
All backported CVE patches are in version 1.0.31 (I've checked).

The supported format page [1], mentions that Ogg/Opus is supported since
1.0.29, however that isn't currently added in this patch. And it may
require libopus.
And mp3 is supported at around version 1.1.0, but that version is in beta.

This change focuses solely on updating to 1.0.31 and removing all
backported patches.

[1] https://libsndfile.github.io/libsndfile/formats.html

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolicense.py: rename variables
Saul Wold [Thu, 24 Feb 2022 21:55:33 +0000 (13:55 -0800)]
license.py: rename variables

Update the comment to reflect new variable names

Signed-off-by: Saul Wold <saul.wold@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agosudo: add /etc/sudoers to sudo-lib conffiles
Alex Stewart [Tue, 22 Feb 2022 23:44:57 +0000 (17:44 -0600)]
sudo: add /etc/sudoers to sudo-lib conffiles

When OE-core commit 788c95c3bb8ede0d3d6a8f125743ac47c0b3f00e created the
`sudo-lib` subpackage, /etc/sudoers was moved from `sudo` to `sudo-lib`.
The commit didn't update the `CONFFILES:${PN}` assignment in sudo.inc,
however. So the `sudo` base package continued to advertise conffile
ownership of /etc/sudoers, though it did not contain it.

Move the CONFFILES assignment to the sudo.bb file, since it is
packaging-related. Change the package owner to the `sudo-lib`
subpackage, since it is the rightful file-owner.

Signed-off-by: Alex Stewart <alex.stewart@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolibdrm: upgrade 2.4.109 -> 2.4.110
wangmy [Wed, 23 Feb 2022 11:03:12 +0000 (19:03 +0800)]
libdrm: upgrade 2.4.109 -> 2.4.110

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoinit-system-helpers: upgrade 1.60 -> 1.62
wangmy [Wed, 23 Feb 2022 11:03:11 +0000 (19:03 +0800)]
init-system-helpers: upgrade 1.60 -> 1.62

Changelog:
=========
* use fakechroot instead of unsharing the mount namespace and mounting tmpfs
* deb-systemd-invoke: systemctl --machine @<UID> is now available in
  v249.10. Adjust the version check accordingly
* Skip build-time tests if DEB_BUILD_OPTIONS=nocheck is set
* Fix typos found by Lintian
* Set Rules-Requires-Root: no

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoflac: upgrade 1.3.3 -> 1.3.4
wangmy [Wed, 23 Feb 2022 11:03:10 +0000 (19:03 +0800)]
flac: upgrade 1.3.3 -> 1.3.4

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>