Commit Graph

48341 Commits

Author SHA1 Message Date
Richard Purdie
d891a796cc elfutils/flex: Disable parallel make ptest compile
The recent change enabling parallel make for ptest compile/install caused
autobuilder failures in these two recipes. Disable parallel make here
for now until someone can debug the race and get it fixed (preferably
upstream).

(From OE-Core rev: 12755e3e771eb2f1628e2b3dd7138c8766973d82)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-25 21:13:40 +01:00
Richard Purdie
a3545600be unzip: Port debian fixes for two CVEs
Add two fixes from debian for two CVEs. From:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1010355

I wans't able to get the reproducers to work but the added error
checking isn't probably a bad thing.

(From OE-Core rev: 054be00a632c2918dd1f973e76514e459fc6f017)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-25 21:13:40 +01:00
Richard Purdie
bbdda8321d oeqa/runtime/scp: Disable scp test for dropbear
Fedora is switching to use sftp as the backend for scp. This means the
scp test fails on Fedora 36 hosts with a dropbear target as dropbear
doesn't support sftp. This change is in the upstream openssh code, other
distros have not yet changed the default but probably will follow.

The easiest way to resolve test failures in dropbear images is to stop
testing this against dropbear as it is no longer expected to work and will
likely spread as the change filters through other distros.

(From OE-Core rev: a71fc7d455400f406b0d607be712a1133fe91166)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-25 21:13:40 +01:00
Alexander Kanavin
f23474acfa oeqa/sdk: drop the nativesdk-python 2.x test
Python 2.x has been EOL for a while, and so this test
never runs.

(From OE-Core rev: b687627e9cffb8123c156413f55ea1929f1a7831)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-25 21:13:40 +01:00
David Bagonyi
e339e36d38 sanity.bbclass: Add ftps to accepted URI protocols for mirrors sanity
(From OE-Core rev: 10f3a9d5173ef4bf92ff4a7d8aef0cd2cb23e4d4)

Signed-off-by: David Bagonyi <david.bagonyi@gmail.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-25 00:06:08 +01:00
niko.mauno@vaisala.com
3704b527ee valgrind: Drop redundant oe_runmake parameter
PARALLEL_MAKE is now honored in ptest.bbclass, so drop redundant
parameter from oe_runmake call.

(From OE-Core rev: 1e351aef06acd383bb5a57a6e0b8a23370d22152)

Signed-off-by: Niko Mauno <niko.mauno@vaisala.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-25 00:06:08 +01:00
niko.mauno@vaisala.com
d45aef25c1 ptest.bbclass: Honor PARALLEL_MAKE, PARALLEL_MAKEINST
Since oe_runmake wrapper doesn't by default involve PARALLEL_MAKE
outside do_compile() nor PARALLEL_MAKEINST outside do_install(),
enable parallellized make by default when oe_runmake is invoked from
do_compile_ptest() or do_install_ptest() by declaring wrapper task
specific EXTRA_OEMAKE overrides in fashion similar to do_compile and
do_install overrides in meta/conf/bitbake.conf.

Parallel make can still be disabled by resetting bbclass specific
PTEST_PARALLEL_MAKE and PTEST_PARALLEL_MAKEINST variables in recipe
e.g. if a race issue needs to be avoided without modifying source code.

Tested by issuing following command sequence on a 32-core build host:

  $ bitbake -c clean util-linux && bitbake --skip-setscene -c compile util-linux && time bitbake --skip-setscene -c compile_ptest_base util-linux

and found that before this change the result was

  real	0m34.684s
  user	0m0.753s
  sys	0m0.131s

and after this change

  real	0m9.868s
  user	0m0.749s
  sys	0m0.150s

(From OE-Core rev: 5c09d2a017add8bd34142c6c1543e2d0f9ead286)

Signed-off-by: Niko Mauno <niko.mauno@vaisala.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-25 00:06:08 +01:00
Ahmed Hossam
24e6bbb90f insane.bbclass: host-user-contaminated: Correct per package home path
The current home path that is compared against is incorrect as it is missing the
package name, this patch adds it.

[YOCTO #14553]

(From OE-Core rev: ae8f22d9e2694eea5ede3b31c6f3bca404ea4a5a)

Signed-off-by: Ahmed Hossam <Ahmed.Hossam@opensynergy.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-25 00:06:08 +01:00
Raju Kumar Pothuraju
f7a8e22292 kernel-uboot.bbclass: Use vmlinux.initramfs when INITRAMFS_IMAGE_BUNDLE set
vmlinux file doesnot have the initramfs image when INITRAMFS_IMAGE_BUNDLE was set.
Use vmlinux.initramfs in uboot_prep_kimage when INITRAMFS_IMAGE_BUNDLE set
based on the implementation in kernel.bbclass do_bundle_initramfs function,
https://github.com/openembedded/openembedded-core/blob/master/meta/classes/kernel.bbclass#L316-L317
to be able to use proper linux.bin file in creation of fitImage.

(From OE-Core rev: e0a4e45e067d9fdb67a7d223aea463f259469035)

Signed-off-by: Raju Kumar Pothuraju <raju.kumar-pothuraju@xilinx.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-25 00:06:08 +01:00
Pavel Zhukov
1238fb1dc7 systemd: update upstream status of merged patches
(From OE-Core rev: 6370bce5b0e14c9384b61c215eb6a56ed65a3feb)

Signed-off-by: Pavel Zhukov <pavel.zhukov@huawei.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-25 00:06:08 +01:00
Luca Ceresoli
1bb927e6b3 llvm: add PACKAGECONFIG[optviewer]
Currently the CMake configuration for llvm finds the python pygments and
pyyaml if they are installed on the host. This makes builds
non-reproducible across different machines, some having those modules
installed and some others not.

This has been causing a 'reproducible' failure on one of the autobuilders:

  AssertionError: The following deb packages are missing or different and not in exclusion list: /home/pokybuild/yocto-worker/reproducible/build/build-st/reproducibleB/tmp/deploy/deb/./core2-64/llvm-dev_14.0.4-r0_amd64.deb
  The following ipk packages are missing or different and not in exclusion list: /home/pokybuild/yocto-worker/reproducible/build/build-st/reproducibleB/tmp/deploy/ipk/./core2-64/llvm-dev_14.0.4-r0_core2-64.ipk
  The following rpm packages are missing or different and not in exclusion list: /home/pokybuild/yocto-worker/reproducible/build/build-st/reproducibleB/tmp/deploy/rpm/./core2_64/llvm-dev-14.0.4-r0.core2_64.rpm

Fix by adding an explicit PACKAGECONFIG to control the
LLVM_HAVE_OPT_VIEWER_MODULES option in CMake. If unset, it forces CMake to
ignore pygments and pyyaml, no matter it they are available on the host. If
set, it DEPENDS on the pygments and pyyaml modules so that CMake will find
and use them.

Based on suggestions from Stefan and Markus -- thanks.

Proposed-by: "Stefan Herbrechtsmeier" <stefan.herbrechtsmeier-oss@weidmueller.com>
Proposed-by: "Markus Volk" <f_l_k@t-online.de>
(From OE-Core rev: 78b6a08db4e8eb3b4e1d52fcdb39a5b3415f5a3f)

Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-25 00:06:08 +01:00
wangmy
6c60bdb1e3 strace: upgrade 5.17 -> 5.18
0001-landlock-update-expected-string.patch
removed since it's not available in 5.18.

skip-load.patch
refreshed for new version.

(From OE-Core rev: cfcb1a22866e9075a6d0d64fa567d140bef66f2a)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-22 22:40:28 +01:00
wangmy
dd003a5c28 sbc: upgrade 1.5 -> 2.0
0001-sbc_primitives-Fix-build-on-non-x86.patch
revmoed since it's included in 2.0

(From OE-Core rev: 3151d39eed451a313963adc1c0c49b88acf3b790)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-22 22:40:28 +01:00
wangmy
cd0da00b7c python3-dbusmock: upgrade 0.27.5 -> 0.28.0
Changelog:
===========
    Drop unmaintained and broken accountsservice template
    testcase: Throw an error when spawning a well-known name that exists
    mockobject: Allow sending signals with extra details

(From OE-Core rev: d6f09edd3d53597352bdf88cbe2f22fefe3310e9)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-22 22:40:28 +01:00
wangmy
caa3145825 libproxy: upgrade 0.4.17 -> 0.4.18
determinism.patch
removed since it's included in 0.4.18.

Changelog:
=========
    build: Allow configuration of sysconfig module
    config_envvar: Add environment variable for pacrunner debugging
    build: disable mozjs by default
    python: Support Python 3.10 and above
    Add Duktape pacrunner module
    config_kde: Compute list of config file locations ourselves
    cpmfog_gnome3: Add gnome-wayland to permitted DESKTOP_SESSION

(From OE-Core rev: 07ffff9422c5832e977d0f525735c6768a7959fe)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-22 22:40:28 +01:00
wangmy
a7414d75ed kbd: upgrade 2.5.0 -> 2.5.1
Changelog:
==========
keymaps:
-------
    Fix pt-latin1 failing to load due to euro2 include.

tests:
--------
    The tests do not depend on the data in srcdir/data.

(From OE-Core rev: 750a4d2204dcad60e911d76f20abbc778c208b93)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-22 22:40:28 +01:00
wangmy
cefa9d1185 bind: upgrade 9.18.3 -> 9.18.4
Changelog:
==========
[func]          Don't try to process DNSSEC-related and ZONEMD records
                in catz. [GL #3380]

[func]          Add some more dnssec-policy checks to detect weird
                policies. [GL #1611]

[test]          Add new set of unit test macros and move the unit
                tests under single namespace in /tests/. [GL !6243]

[func]          Key timing options for 'dnssec-settime' and related
                utilities now accept "UNSET" times as printed by
                'dnssec-settime -p'. [GL #3361]

[bug]           When the fetches-per-server quota was adjusted
                because of an authoritative server timing out more
                or less frequently, it was incorrectly set to 1
                rather than the intended value.  This has been
                fixed. [GL #3327]

[bug]           Only write key files if the dnssec-policy keymgr has
                changed the metadata. [GL #3302]

[func]          Key timing options for 'dnssec-keygen' and
                'dnssec-settime' now accept times as printed by
                'dnssec-settime -p'. [GL !2947]

(From OE-Core rev: d5a12d549209f01324d03963db96449ee43452eb)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-22 22:40:28 +01:00
wangmy
e3635ef12b alsa-ucm-conf: upgrade 1.2.7 -> 1.2.7.1
Configuration
 - mt8195_demo: fix the HDMI device name
 - USB-Audio: ALC1220 - add support for Gigabyte TRX40 Aorus Pro WiFi Rev 1.2
 - ucm2: MediaTek: mt8195-demo: Add Initial support
 - ucm2: rk3399-gru-sound: Add missing symlink from conf.d tree
 - USB-Audio: Optimize regex for realtek-alc4080
 - USB-Audio: Add ALC4080 ID for Asus Z690-I Gaming Wifi
 - ucm2 profile for MOTU M4 interface
 - ucm2: Rockchip/max98090: add symlink to VEYRON-I2S
 - ucm2: Rockchip/max98090: add JackControl and PlaybackVolume
 - Added basic support for ALC4082 on ASUS ROG Maximus Z690 Hero.
 - ucm2: direct profile - allow to override the card name
 - ucm2 profile for Behringer Flow8
 - Steinberg UR44: fix the direction for steinberg_ur44_mono_in
 - Steinberg UR44: fix the Line2 channel mapping (2nd)
 - Steinberg UR44: fix the Line2 channel mapping

(From OE-Core rev: 66e9a57aeeab9f87106d5565ac28342d38a6eb33)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-22 22:40:28 +01:00
wangmy
f157fcfbfe alsa-plugins: upgrade 1.2.6 -> 1.2.7.1
Changelog:
==========
Jack PCM plugin
 - jack: use program_invocation_short_name
 - jack: implement pcm operation sw_params

(From OE-Core rev: b1985f7935f94f36063a96dae29258ac75aed7f7)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-22 22:40:28 +01:00
wangmy
5eb18d7b30 alsa-lib: upgrade 1.2.7 -> 1.2.7.1
Changelog:
=========
Core
 - Release v1.2.7.1
 - conf: Use ino64_t to save and compare inode numbers
Control API
 - control: eld - fix the decoding for older hw
I/O API
 - output: include stdarg.h
PCM API
 - pcm: dmix - Add error handler for `fgets`
Use Case Manager API
 - ucm: list also hardware configs (hw:X) in uc_mgr_scan_master_configs() fcn
Configuration
 - conf: Use ino64_t to save and compare inode numbers

(From OE-Core rev: fd6bf61bd5401a099372661f77f3abd9d0242d67)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-22 22:40:28 +01:00
Alexander Kanavin
55998714ec python3-requests: upgrade 2.27.1 -> 2.28.0
(From OE-Core rev: b73226b53b2000af8d3af7323b2bbc71ce2a2d83)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-22 22:40:28 +01:00
Alexander Kanavin
fab1c23da9 x264: upgrade to latest revision
(From OE-Core rev: 6ddb3c44ab212dc25614bd074341db7a39e2255d)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-22 22:40:28 +01:00
Alexander Kanavin
73a01a3c64 wireless-regdb: upgrade 2022.04.08 -> 2022.06.06
(From OE-Core rev: 4c27711292f93dfad1ffdeab6d715becad32a4ff)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-22 22:40:28 +01:00
Alexander Kanavin
8f93cdd47a sudo: upgrade 1.9.10 -> 1.9.11p2
(From OE-Core rev: 8cb9306b3d41e18e582c581ade42c0b22ef7aea1)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-22 22:40:28 +01:00
Alexander Kanavin
a613a52d03 puzzles: upgrade to latest revision
(From OE-Core rev: d49711d3efc92ed4d59574b699fa0c8119d5baef)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-22 22:40:28 +01:00
Alexander Kanavin
a965f1f33c librsvg: upgrade 2.54.3 -> 2.54.4
(From OE-Core rev: 3e26d2925463e126b55ab81ed749d6ec2fc71263)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-22 22:40:28 +01:00
Alexander Kanavin
b88d15606e dos2unix: upgrade 7.4.2 -> 7.4.3
License-Update: copyright years

(From OE-Core rev: e754893c37e315f5f828d8cbdc1d37fc4f27b799)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-22 22:40:28 +01:00
Alexander Kanavin
9929474868 diffoscope: upgrade 215 -> 216
(From OE-Core rev: 6c1683863302ecde281f3c10f0ca27d33965d164)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-22 22:40:28 +01:00
Alexander Kanavin
0ed4f798b6 libdrm: update 2.4.110 -> 2.4.111
libkms option dropped by upstream.

(From OE-Core rev: f92305d6b59447935557deebf5c0a40ce8c23929)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-22 22:40:28 +01:00
Alexander Kanavin
732335d90d ell: update 0.50 -> 0.51
(From OE-Core rev: bd63e0a8aaefe6f3ccb8239b51ae4637909f21b2)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-22 22:40:28 +01:00
Alexander Kanavin
606a17234d go: update 1.18.2 -> 1.18.3
(From OE-Core rev: 667264b82156219f9ac50dbb013683ac4fbe0fad)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-22 22:40:28 +01:00
Alexander Kanavin
940eaf2f98 lttng-modules: update 2.13.3 -> 2.13.4
Drop backports; one of them (0009) is present only
on the master branch and not on 2.13 branch, and so
stays in the recipe.

(From OE-Core rev: 1002941b76e0a0351e85a20e3e8d0a6a2254449c)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-22 22:40:28 +01:00
Alexander Kanavin
2162ff5422 vulkan: upgrade 1.3.211.0 -> 1.3.216.0
(From OE-Core rev: dab46fa6a98af448d7bf1291f1de4edb3590f66a)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-22 22:40:28 +01:00
Alexander Kanavin
1f5c35c844 python3-setuptools: update 62.3.2 -> 62.5.0
(From OE-Core rev: 5057ffe70cb1fc114b3143a9e7ce3d15964c68c8)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-22 22:40:28 +01:00
Alexander Kanavin
32e2e1b411 python3-numpy: update 1.22.3 -> 1.22.4
(From OE-Core rev: 6d87caa86df3109b8f45d287094281b02c7c0ac0)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-22 22:40:28 +01:00
Alexander Kanavin
d49db48d35 mesa: update 22.0.3 -> 22.1.2
(From OE-Core rev: d5b2e40be6d6e4c52078ab5a087eefaa7330c320)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-22 22:40:28 +01:00
Lucas Stach
04a4ecd767 perf: sort-pmuevents: really keep array terminators
Commit e1382583cd50 ("perf: sort-pmuevents: don't drop elements") tried
to fix a case where the array terminator elements were dropped from the
sorted list breaking the build, but it only worked for the case where
the terminator is the only element of the array. When the array has other
elements the terminator will still be silently dropped, causing invalid
memory accesses at runtime when the perf utility iterates over the array.

Fix this by treating any unmatched entry as an array terminator and also
add a comment to make it a little more clear how things are ending up at
the right position in the sorted list.

(From OE-Core rev: 69c35a48c5100b884f1b633142b07222b9390e92)

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-22 22:40:28 +01:00
Maxime Roussin-Bélanger
5ae7621978 libffi: fix native build being not portable
Without `--with-gcc-arch=generic` libffi looks up the cpuid to automatically determine
which mtune/march to use. This makes the native sstate-cache unuseable since it's
possible to have a newer cpu building the recipe and the library being pulled from
another older cpu which doesn't have the instruction.

(From OE-Core rev: cddaecac1fdd4d033c2ff8ccaf1d60e1c598d5b7)

Signed-off-by: Maxime Roussin-Bélanger <maxime.roussinbelanger@gmail.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-22 22:40:28 +01:00
Ross Burton
296392f8e0 python3-jsonschema: upgrade 4.5.1 -> 4.6.0
Switch the build system from setuptools to hatch.

(From OE-Core rev: ee9a40d5d433d2babb010e11973a97f651d074e9)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-22 22:40:28 +01:00
Ross Burton
06cbbf9494 python3-hatch-vcs: add new recipe
This recipe (a VCS plugin for Hatch) is needed by the new
python3-jsonschema to build.

(From OE-Core rev: 62cb0c78e2ea4cfbb7bb961abd9b8faaa2100379)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-22 22:40:28 +01:00
Ross Burton
8ecf0849e5 Add python3-hatchling (from meta-oe)
Recipes in core are now needing to use the Hatch build system, so
move the hatchling recipe and class from meta-oe to oe-core.

(From OE-Core rev: 846e806181f1349be29cbce78c5041735dfd7e6f)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-22 22:40:28 +01:00
Ross Burton
158323d312 Add python3-pathspec (from meta-python)
This is a dependency of the Hatch build system, to be added as
python3-hatchling.

(From OE-Core rev: 857f324314d10c6cfe4613ec5dc865a2df0dc2e2)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-22 22:40:28 +01:00
Ross Burton
b9cc2f2b1d Add python3-editables (from meta-python)
This is a dependency of the Hatch build system, to be added as
python3-hatchling.

(From OE-Core rev: 781da7200711e45da8b63654dd4508fce62580b8)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-22 22:40:28 +01:00
Muhammad Hamza
69ff043e62 udev-extraconf/mount.sh: ignore lvm in automount
Failure message is shown in boot logs when trying to
mount lvm as automounter does not handle cases where
lvm is mounted. This simply skips lvm while automounting
to avoid failure message in boot logs.

(From OE-Core rev: b1d18072ed9a8b0bca0f20f8e5deefa73ab6acbe)

Signed-off-by: Ansar Rasool <ansar_rasool@mentor.com>
Signed-off-by: Muhammad Hamza <muhammad_hamza@mentor.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-21 18:44:27 +01:00
Muhammad Hamza
b4b004641a udev-extraconf: force systemd-udevd to use shared MountFlags
Automounting does not work cleanly in case systemd as well as
udev rules are being used simultaneously and in most cases
race conditions and unknown behavior can come up.
In case we're running on top of systemd we need to make sure
that systemd-udevd knows that udev is in play as well and
mounting should be done using shared flags. Also as we're
using mount from sources other than systemd-mount in current
scripts this is the most manageable fix to automounting
problems.

(From OE-Core rev: 1e770416b4c9a0468404fb64d55114d93e84763b)

Signed-off-by: Awais Belal <awais_belal@mentor.com>
Signed-off-by: Muhammad Hamza <muhammad_hamza@mentor.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-21 18:44:27 +01:00
Muhammad Hamza
97a4c50fa3 udev-extraconf/mount.sh: only mount devices on hotplug
fdisk from util-linux (2.31.1) and above allows the user to
manipulate an already mounted device. In order to achieve this
functionality it issues a BLKRRPART (block device re-read part)
ioctl and in response the kernel generates remove/change/add
events if the device is not mounted (manually unmounted etc)
which are caught and processed by udev. This causes our auto-mounter
to remount everything because it does not keep track and things
go out of control.
Differentiating between types of remove events such as the one
described above (generated by BLKRRPART) and one where the device
is physically plugged out is only possible using the DEVPATH variable
which is cleaned up only when the device is actually plugged-out.
This fixes the above anomaly by only mounting a device in add event
which is cleaned up properly (tmp cache deleted) in the remove event
or is not present in the tmp cache while making use of the DEVPATH
variable during the remove action.

(From OE-Core rev: 11a5e6c17535438ea1e7a8403ed260c8b3a22bc8)

Signed-off-by: Awais Belal <awais_belal@mentor.com>
Signed-off-by: Muhammad Hamza <muhammad_hamza@mentor.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-21 18:44:27 +01:00
Muhammad Hamza
27b5d5ad5b udev-extraconf/mount.sh: save mount name in our tmp filecache
Doing this will allow to fetch the exact name created by the
auto-mounter during the remove action where depending on the
scenario utilities such as the blkid might not be usable due
to actual device not being present on the system.

(From OE-Core rev: 496b76f8775a620c1d449eb6f62a41656abf2a9b)

Signed-off-by: Awais Belal <awais_belal@mentor.com>
Signed-off-by: Muhammad Hamza <muhammad_hamza@mentor.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-21 18:44:27 +01:00
Muhammad Hamza
aab4152eff udev-extraconf/mount.sh: add LABELs to mountpoints
This alters the mountpoints such that if a device has a LABEL or
a PARTLABEL, it will be mounted at e.g.:

  /run/media/$LABEL-<device-node>
  /run/media/$PARTLABEL-<device-node>
  /run/media/rootfs-sda2

otherwise the device will be mounted at e.g.:

  /run/media/<device-node>
  /run/media/sda1

The <device-node> appended with LABEL or PARTLABEL makes sure that
the mountpoint is unique, therefore, avoids overlapping mounts.

(From OE-Core rev: a9a0a0967832445f1bcc65d58f95343d1b562e1b)

Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
Signed-off-by: Muhammad Hamza <muhammad_hamza@mentor.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-21 18:44:27 +01:00
Pavel Zhukov
16797c1b94 systemd: Rebase patches on v251
Drop patches which are not needed anymore.
Rebase musl specific patches to aboid fuzz warnings

(From OE-Core rev: 3275cc6c2ecfd70ba134b49363c9cecbb0c2c0b2)

Signed-off-by: Pavel Zhukov <pavel.zhukov@huawei.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-21 18:44:27 +01:00
Pavel Zhukov
081d1410a0 systemd: Add missed sys/file.h includes for musl
(From OE-Core rev: 526e0ab4275a130b354090ac42a6147f5660e169)

Signed-off-by: Pavel Zhukov <pavel.zhukov@huawei.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-21 18:44:27 +01:00