Commit Graph

71223 Commits

Author SHA1 Message Date
Richard Purdie
911532040a gcc-testsuite: Fix qemu binary filtering code logic error
This code doesn't do what it first might appear to, it would for example remove
'm' characters from the left side of qemu-mips leaving 'ips'. Fix it to stop
anyone else being confused by the subtle logic error.

(From OE-Core rev: 888a7edf1c611eaf99eaf10a072ecc82cb386735)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-15 08:15:25 +01:00
Richard Purdie
8a9cbf62d3 resulttool/report: Avoid divide by zero
Avoid a divide by zero traceback if unfortunate test counts are encountered.

(From OE-Core rev: c5aeea53dfacb53dedb8445cb3523dc3a8cb6dca)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-15 08:15:25 +01:00
Khem Raj
30f2431acc systemd-boot: Fix build on musl
systemd efi.h defines wchar_t from compiler provided __WCHAR_TYPE__
therefore we do not want it to come from alltypes.h in musl case which
otherwise will end up with conflicting definitions of wchar_t, defining
__DEFINED_wchar_t ensures that alltypes.h does not provide it

(From OE-Core rev: 7b84fe344a2067b63d0c222fbc68d5916fa7903f)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-15 08:15:25 +01:00
Alexis Lothoré
788f6a0e16 oeqa/utils/gitarchive: fix tag computation when creating archive
Sporadic errors have been observed in autobuilder when trying to store new
tests results:

error: failed to push some refs to 'push.yoctoproject.org:yocto-testresults'
hint: Updates were rejected because the tag already exists in the remote.

The new tag name is generated by gitarchive based on known tags from the
repository (learnt with git tag). In autobuilder case, this repository is a
shallow clone, so git tag only returns most recent tags, which mean we
could miss some older tags which exist in remote but not locally. In this
case, gitarchive will likely create a tag which already exists in remote,
and so will fail to push

Fix this tag duplication by using git ls-remote to learn about existing
tags instead of git tag. Two places which wrongly read only local tags has
been identified in gitarchive:  expand_tag_strings and get_test_runs

Fixes [YOCTO #15140]

(From OE-Core rev: 5a0a7da85a3acfd4a20a07478eabefdab60f313a)

Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-15 08:15:25 +01:00
Emil Ekmečić
d151ba95f6 Add GCP fetcher to list of supported protocols
If accepted, this patch should merge with the corresponding BitBake
patch titled "fetch2: add Google Cloud Platform (GCP) fetcher".

(From OE-Core rev: 1e2e596bcdff031d7d7dc1d6f6adbb03d9ec2995)

Signed-off-by: Emil Ekmečić <eekmecic@snap.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-14 12:51:21 +01:00
Markus Volk
64d593e7d8 libadwaita: upgrade 1.3.3 -> 1.3.4
=============
Version 1.3.4
=============

- AdwAboutWindow
  - Fix :translator-credits property
- AdwComboRow
  - Fix accessible role on the dropdown arrow
- AdwEntryRow
  - Fix accessibility
- AdwLeaflet
  - Fix back/forward mouse button handling
- AdwTabBar
  - Fix accessibility
- AdwTabThumbnail
  - Fix duplicate thumbnail during transitions
  - Fix the transition curve
- AdwViewSwitcher
  - Set correct accessible role for icons
- AdwWindowTitle
  - Fix initial title visibility
- Stylesheet
  - Fix .card buttons within .osd
  - Fix single-item menu height

(From OE-Core rev: 1b4cb7c52f0bfc14af09904b0ca9b37ecd6fd1f1)

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-14 12:51:21 +01:00
Markus Volk
7841cdd3cb gtk4: upgrade 4.10.4 -> 4.10.5
Overview of Changes in 4.10.5, 05-08-2023
=========================================

* Fix ordering problems with filter model signals

* Avoid lingering resize cursors

* Fix alignment issues on sparc

* Fix a problem with CSS corner values

* Translation updates
 Brazilian Portuguese
 Czech
 Greek
 Spanish
 Vietnamese

(From OE-Core rev: 99deaf528acdd8ef7031e251a821721191968644)

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-14 12:51:21 +01:00
Wang Mingyu
8f73cfe9d2 sudo: upgrade 1.9.14p2 -> 1.9.14p3
Changelog:
===========
 * Fixed a crash with Python 3.12 when the sudo Python python is
   unloaded.  This only affects "make check" for the Python plugin.
 * Adapted the sudo Python plugin test output to match Python 3.12.

(From OE-Core rev: 63859b9e402e88ab704abef3060d66c8221a944e)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-14 12:51:21 +01:00
Wang Mingyu
3f7e34c90d shaderc: upgrade 2023.4 -> 2023.5
Changelog:
==========
 - Update dependencies
 - Update to Android NDK r25c
 - Update Android API level for test project (#1333)
 - For testing, add a dependency on Abseil's C++ library
 - Fix MSVC runtime library linking in CMake (#1339)

(From OE-Core rev: a0f25ae7751cd5b6d622cef78e93eb5b25d998cf)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-14 12:51:21 +01:00
Wang Mingyu
79e79ba645 re2c: upgrade 3.0 -> 3.1
Changelog:
==========
- Added capturing groups with leftmost greedy semantics:
- Added non-capturing groups:
- Regenerated Unicode include header to support a newer standard
- Published TDFA paper: https://arxiv.org/abs/2206.01398, co-authored with
  Angelo Borsotti
- Removed experimental algorithms that are superseded by TDFA(1) and
  generally less efficient:
- Fixed parsing of raw UTF-8 characters in Flex compatibility mode
- Added header file to the dependencies generated with "--depfile" option
- Fixed stack overflow on large regular expressions by rewriting recursive
    functions in iterative form and limited stack to 256K on GithubActions CI
- Added minimal http://bazel.build integration
- Added configure option "--enable-parsers" that regenerates bison parsers
- Added CMake option "RE2C_REBUILD_PARSERS"
- Moved the entire codebase to C++11.
- Added uniform error handling (return codes are now properly checked and
 returned to the caller).
- Reorganized codegen subsystem in four well-defined phases (analyze,
 generate, fixup, render) and separated codegen from parsing phase.
- Improved memory allocation by using slab allocators instead of global free
 lists.
- Moved to pure API for bison parsers.
- Unified code style.
- Added "--verbose" flag to run_tests.py and suppressed verbose output by
 default.
- Multiple improvements of continuous testing with GithubActions.

(From OE-Core rev: 43e646a99f8be07fd410fd4af19a31fc98508a76)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-14 12:51:21 +01:00
Wang Mingyu
98073bfea7 python3-pyparsing: upgrade 3.1.0 -> 3.1.1
Changelog:
============
- Fixed regression in Word(min)
- Fixed bug in bad exception messages raised by Forward expressions.
- Fixed regression in SkipTo, where ignored expressions were not checked when looking
  for the target expression.
- Fixed type annotation for enable_packrat
- Some general internal code cleanup.

(From OE-Core rev: 6671d50bb053060813d34692d50a9360da767dcc)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-14 12:51:21 +01:00
Wang Mingyu
b5939e1e3e python3-pip: upgrade 23.2 -> 23.2.1
Changelog:
 Disable PEP 658 metadata fetching with the legacy resolver.

(From OE-Core rev: 38d6687b9ca10aeea6167067d3c80827be98e4de)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-14 12:51:21 +01:00
Wang Mingyu
f36f9d5f44 python3-pathspec: upgrade 0.11.1 -> 0.11.2
Changelog:
=========
- Issue #80: match_files with negated path spec. pathspec.PathSpec.match_*()
  now have a negate parameter to make using .gitignore logic easier and more efficient.
- Pull #76: Add edge case: patterns that end with an escaped space
- Issue #77/Pull #78: Negate with caret symbol as with the exclamation mark.

(From OE-Core rev: 2b36eb04ad71f01da5a8495a6e00fcb2bc89fa3b)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-14 12:51:21 +01:00
Wang Mingyu
8cdecbab02 python3-markdown: upgrade 3.4.3 -> 3.4.4
Changelog:
==========
 Add a special case for initial 's to smarty extension (#1305).
 Unescape any backslash escaped inline raw HTML (#1358).
 Unescape backslash escaped TOC token names (#1360).

(From OE-Core rev: cd32e3cfbfc95cf34b29c44f1b7bcbadcda56c92)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-14 12:51:21 +01:00
Wang Mingyu
2bd519fbd1 python3-editables: upgrade 0.4 -> 0.5
Changelog:
 Fix a bug that broke importlib.invalidate_caches

(From OE-Core rev: 22b19db8011c73793a07c4f2ca677a0bfcaa02d1)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-14 12:51:21 +01:00
Wang Mingyu
9d7f2fb80f xxhash: upgrade 0.8.1 -> 0.8.2
Changelog:
==========
- fix  : XXH3 S390x vector implementation
- fix  : PowerPC vector compilation with IBM XL compiler
- perf : improved WASM speed by x2/x3 using SIMD128
- perf : improved speed (+20%) for XXH3 on ARM NEON
- cli  : Fix filename contain /LF character
- cli  : Support # comment lines in --check files
- cli  : Support commands --binary and --ignore-missing
- build: fix -Og compilation
- build: fix pkgconfig generation with cmake
- build: fix icc compilation
- build: fix cmake install directories
- build: new build options XXH_NO_XXH3, XXH_SIZE_OPT and XXH_NO_STREAM to reduce binary size
- build: dedicated install targets
- build: support DISPATCH mode in cmake
- portability: fix x86dispatch when building with Visual + clang-cl
- portability: SVE vector implementation of XXH3
- portability: compatibility with freestanding environments, using XXH_NO_STDLIB
- portability: can build on Haiku
- portability: validated on m68k and risc-v
- doc  : XXH3 specification
- doc  : improved doxygen documentation
- misc : dedicated sanity test binary

License-Update: Copyright year updated to 2021

(From OE-Core rev: e3286a35139b22e0744ff9a98021de1ec4598d12)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-14 12:51:21 +01:00
Wang Mingyu
c707605642 gmp: upgrade 6.2.1 -> 6.3.0
cve-2021-43618.patch
removed since it's included in 6.3.0

Changelog:
============
  BUGS FIXED
  * A possible overflow of type int is avoided for mpz_cmp on huge operands.

  * A possible error condition when a malformed file is read with
    mpz_inp_raw is now correctly handled.

  FEATURES
  * New public function mpz_prevprime, companion of the existing
    mpz_nextprime.

  * New documented pointer types mpz_ptr, mpz_srcptr, and similar for
    other GMP types. Refer to the manual for full list and suggested
    usage. These types have been present in gmp.h at least since
    GMP-4.0, but previously not advertised to users.

  * Support for 64-bit Arm under Macos.

  * Support for the loongarch64 CPU family.

  * Support for building with LTO, link-time optimisations.

  SPEEDUPS
  * New special code for base = 2 in mpz_powm reduces the average time
    for the functions that test primality.

  * Speedup for the function mpz_nextprime on large operands.

  * Speedup for multiplications (some sizes only) thanks to new
    internal functions to compute small negacyclic products.

  * Special assembly code for IBM z13 and later "mainframe" CPUs, resulting in
    a huge speedup.

  * Improved assembly for several 64-bit x86 CPUs, Risc-V, 64-bit Arm.

(From OE-Core rev: 49b625116b67a19abfd17670431ba3f96031b86e)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-14 12:51:21 +01:00
Wang Mingyu
c020239284 file: upgrade 5.44 -> 5.45
Changelog:
==========
-PR/465: psrok1: Avoid muslc asctime_r crash
-add SIMH tape format support
-bump the max size of the elf section notes to be read to 128K
 and make it configurable
-PR/415: Fix decompression with program returning empty
-PR/408: fix -p with seccomp
-PR/412: fix MinGW compilation

(From OE-Core rev: facef006da35e22394a4cbb13243769586d10f31)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-14 12:51:21 +01:00
Wang Mingyu
c6bbb1c8c1 curl: upgrade 8.2.0 -> 8.2.1
Changelog:
=========
   amigaos: fix sys/mbuf.h m_len macro clash
   amissl: add missing signal.h include
   amissl: fix AmiSSL v5 detection
   cfilters: rename close/connect functions to avoid clashes
   ciphers.d: put URL in first column
   cmake: add `libcurlu`/`libcurltool` for unit tests
   cmake: update ngtcp2 detection
   configure: check for nghttp2_session_get_stream_local_window_size
   CONTRIBUTE: drop mention of copyright year ranges
   CONTRIBUTE: fix syntax in commit message description
   curl_multi_wait.3: fix arg quoting to doc macro .BR
   docs: mark two TLS options for TLS, not SSL
   docs: provide more see also for cipher options
   hostip: return IPv6 first for localhost resolves
   http2: fix regression on upload EOF handling
   http: VLH, very large header test and fixes
   libcurl-errors.3: add CURLUE_OK
   os400: correct EXPECTED_STRING_LASTZEROTERMINATED
   quiche: fix lookup of transfer at multi
   quiche: fix segfault and other things
   rustls: update rustls-ffi 0.10.0
   socks: print ipv6 address within brackets
   src/mkhelp: strip off escape sequences
   tool: fix tool_seek_cb build when SIZEOF_CURL_OFF_T > SIZEOF_OFF_T
   transfer: do not clear the credentials on redirect to absolute URL
   unittest: remove unneeded *_LDADD
   websocket: rename arguments/variables to match docs

(From OE-Core rev: bc868329c4bac1d5d3831a7d86b561849ca533a3)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-14 12:51:21 +01:00
Wang Mingyu
99a28218c6 btrfs-tools: upgrade 6.3.1 -> 6.3.3
Changelog:
===========
 * mkfs: option -R deprecated, options unified in -O (-R still works)
 * mkfs: fix potential race with udev leading to EBUSY due to repeatedly
   opened file descriptors
 * block-group-tree is out of experimental mode
    * available as 'mkfs.btrfs -O block-group-tree'
    * btrfstune can do in-place conversion to/from (use with care)
 * balance: fix recognizing old and new syntax
 * subvol snapshot: specific error if a failure is caused by an active swapfile
 * tree-stats: rephrase warning when run on a mounted filesystem
 * completion: 'filesystem du' also completes files
 * check: fix docs, help text and warning that --force + --repair works on a
   mounted filesystem
 * build: fix static build when static libudev is available
 * documentation:
    * more updates from wiki, developer docs, changelogs
    * reformatting
    * updates and fixes
 * other:
    * test updates and fixes
    * CI cleanups and old files removed
    * integration with Github actions

(From OE-Core rev: bda3ba69154ac8eb58e60da09ecfee20f72253d4)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-14 12:51:21 +01:00
Sudip Mukherjee
0e21e3ef53 kea: upgrade to v2.4.0
Changes:
Update license checksum: change in copyright year.
Update sha256sum for new version.

An additinal patch to fix the reproducible build failure which is
still under discussion with upstream.

(From OE-Core rev: 99f61d952467076abb68bf50f9220e422ed98e60)

Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-14 12:51:21 +01:00
Khem Raj
57a19a352f gnu-efi: Fix build on musl
Build with musl emits extra warnings about pointer incompatibility due
to different type of wchar_t than glibc which turns to be error in the
end, disable -Werror for musl.

(From OE-Core rev: 645d2bd6dee1d33a722e962d9f916540c2ef68a4)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-14 12:51:21 +01:00
Ross Burton
88e46ee15a connman-conf: don't take over any ethernet devices, not just eth0
The goal of connman-conf in qemu environments is to stop connman from
trying to control the network device, because runqemu will set it up
appropriately.

It currently hardcodes eth0, but 6.2 kernels onwards will rename eth0 to
en* even when the interface is already up[1]. So that this recipe
continues to work as intended, expand the list to "eth,en" so that
connman ignores _all_ ethernet devices with either the new or old names.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit?id=bd039b5ea2a91ea707ee8539df26456bd5be80af

(From OE-Core rev: 56baa430f8a577ff280676dc2e8a2debbc85bc21)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-14 12:51:21 +01:00
Benjamin Bara
7865ffaf57 rust-target-config: fix target_features for vfpv3d16
A build with vfpv3d16 (armv7at2hf-vfpv3d16) tune currently warns:
'+d16' is not a recognized feature for this target (ignoring feature)

This correlates with the supported target_features for arm[1].

With the now enabled features, rustc might use vdiv.f64 with register
d17, which leads to an illegal instruction on the given platform.

Therefore, adapt the features s.t. they correspond to the
armv7_unknown_linux_gnueabihf target[2].

Additionally, only set the latest supported version of VFP.

[1] https://github.com/rust-lang/rust/blob/1.70.0/compiler/rustc_codegen_ssa/src/target_features.rs#L32
[2] https://github.com/rust-lang/rust/blob/1.70.0/compiler/rustc_target/src/spec/armv7_unknown_linux_gnueabihf.rs#L15

(From OE-Core rev: d79f0a0702b667625e12c9e131932e02cb08bada)

Signed-off-by: Benjamin Bara <benjamin.bara@skidata.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-14 12:51:21 +01:00
Jose Quaresma
3a54693243 systemd: fix efi dependency
Last version of systemd dpends now on pyelftools to build the efi support
but the required tool is the native ones and not the target.
The systemd-boot has the corrected dependencie so fix this in the main recipe.

| Program python3 (jinja2) found: YES (/build/tmp-lmp/work/corei7-64-lmp-linux/systemd/1_254-r0/recipe-sysroot-native/usr/bin/python3-native/python3) modules: jinja2
| Checking if "32bit build possible" : links: NO
| Program python3 (elftools) found: NO
|
| ../git/meson.build:2147:8: ERROR: Problem encountered: EFI bootloader support requires pyelftools.
|
| A full log can be found at /build/tmp-lmp/work/corei7-64-lmp-linux/systemd/1_254-r0/build/meson-logs/meson-log.txt

(From OE-Core rev: 69d37620a7a0626eaee1c0b37057be2ac2687290)

Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-14 12:51:21 +01:00
Michael Opdenacker
2b86db9c51 scripts/create-pull-request: update URLs to git repositories
Also remove the git.pokylinux.org URL, no longer used.

(From OE-Core rev: 47b88d143c2fc61ce0e03b7eb3a9dbcffadbf5b1)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-14 12:51:21 +01:00
Richard Purdie
29c0ba4bc8 bitbake: siggen: Update debug
The debug in the comments was out of date. It is still useful so update the
code sample to the new code needed.

(Bitbake rev: fa2724069ea7028939d816cb5ccd0e7c1bed09a1)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-13 10:32:02 +01:00
Richard Purdie
f75bfa87a1 bitbake: siggen: Fix indentation
(Bitbake rev: 9a98851ef86adea3b05c4eb7c44e7ea3fbbb4420)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-13 10:32:02 +01:00
Chen Qi
653ff4d85c bitbake: runqueue.py: fix PSI check logic
The current calculation is not correct because if tdiff is less than
1.0, it's not taken into consideration when calculating the current
pressure.

Also, make it clear that the 1.0s is the psi accumulation cycle,
which might be changed in the future. We have this cycle because it
could largely avoid the 0 result issue, that is, if the interval
between checks are too small, the result might be 0. With this
accumulation logic, which has been there but let's make it clear,
this 0 result problem could be mitigated.

(Bitbake rev: 95fa8fb5fb4d5a72e79b11d69792613bfd494e72)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-11 17:00:40 +01:00
Emil Ekmečić
ac5512b0ac bitbake: fetch2: add Google Cloud Platform (GCP) fetcher
This fetcher allows BitBake to fetch from a Google Cloud Storage
bucket. The fetcher expects a gs:// URI of the following form:

SSTATE_MIRRORS = "file://.* gs://<bucket name>/PATH"

The fetcher uses the Google Cloud Storage Python Client, and
expects it to be installed, configured, and authenticated prior
to use.

If accepted, this patch should merge in with the corresponding oe-core
patch titled "Add GCP fetcher to list of supported protocols".

Some comments on the patch:

There is also documentation for the fetcher added to the User
Manual. I'm still not completely sure about the recommends_checksum()
being set to True. As I've noted in the mailing list, it will throw
warnings if the fetcher is used in recipes without specifying a
checksum. Please let me know if this is intended behavior or if it
should be modified.

Here is how this fetcher conforms to the fetcher expectations
described at this link:
https://git.yoctoproject.org/poky/tree/bitbake/lib/bb/fetch2/README

a) Yes, network fetching only happens in the fetcher

b) The fetcher has nothing to do with the unpack phase so there is no
network access there

c) This change doesn't affect the behavior of DL_DIR. The GCP fetcher
only downloads to the DL_DIR in the same way that other fetchers,
namely the S3 and Azure fetchers do.

d) The fetcher is identical to the S3 and Azure fetchers in this
context

e) Yes, the fetcher output is deterministic because it is downloading
tarballs from a bucket and not modifying them in any way.

f) I set up a local proxy using tinyproxy and set the http_proxy
variable to test whether the Python API respected the proxy. It
appears that it did as I could see traffic passing through the
proxy. I also did some searching online and found posts indicating
that the Google Cloud Python APIs supported the classic Linux proxy
variables, namely:
  - https://github.com/googleapis/google-api-python-client/issues/1260

g) Access is minimal, only checking if the file exists and downloading
it if it does.

h) Not applicable, BitBake already knows which version it wants and
the version infomation is encoded in the filename. The fetcher has no
concept of versions.

i) Not applicable

j) Not applicable

k) No tests were added as part of this change. I didn't see any tests
for the S3 or Azure changes either, is that OK?

l) I'm not 100% familiar but I don't believe this fetcher is using any
tools during parse time. Please correct me if I'm wrong.

(Bitbake rev: 8e7e5719c1de79eb488732818871add3a6fc238b)

Signed-off-by: Emil Ekmečić <eekmecic@snap.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-11 16:23:01 +01:00
Richard Purdie
71282bbc53 qemuboot: Update hardcoded path to match new layout
Obviously this code is horrible and shouldn't hardcode it. Update it to match
the WORKDIR change to drop PE/PR for now.

(From OE-Core rev: 05095c116602d1a8c388cc02afffcc36230138f7)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-11 13:22:01 +01:00
Richard Purdie
d7ce7d6799 bitbake.conf: Drop PE and PR from WORKDIR and STAMP
Once, we relied upon stamps changing to rebuild. PE and PR are packaging
variables and are reflected in the taskhashes when/where they're used so
they do not need to be in STAMP.

Similarly, once, multiple versions were something which was useful in
WORKDIR but this is really just noise causing long pathnames now.

Drop PR and PE from these variables to clean up the paths a bit.

This may break some tool assumptions about paths but those are probably
things we need to fix.

(From OE-Core rev: cc83e45484656a6b577ff84817131735023daad4)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-11 13:22:01 +01:00
Luca Boccassi
c4e6a67a8a systemd: add usrmerge to REQUIRED_DISTRO_FEATURES
Support for unmerged-usr is deprecated upstream, taints the system and
has been removed for v255 (next release).
Enforce building merged-usr images when using systemd. This allows one
release cycle where it can be tested for any remaining issue, and can
still be overridden, before it stops working completely.

(From OE-Core rev: 802e853eeddf16d73db1900546cc5f045d1fb7ed)

Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-11 13:22:01 +01:00
Richard Purdie
d4933d1006 conf/init-mamager-systemd: Add usrmerge to DISTRO_FEATURES
usrmerge is now required by systemd, ensure this is also added to DISTRO_FEATURES
when systemd is selected.

(From OE-Core rev: fa8c59c49940af4cb03df49f5b6a2a53d50fbefb)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-11 13:22:01 +01:00
Richard Purdie
67a8dcabda selftest: Ensure usrmerge is enabled with systemd
systemd now requires usrmerge, ensure this is always the case in
our test cases.

(From OE-Core rev: 465bf84c523403ccc7dc6ed8c2a9c32d85929e8c)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-11 13:22:01 +01:00
Peter Suti
2c4cb6dba3 externalsrc: fix dependency chain issues
Instead of deleting setscene tasks, now SSTATE_SKIP_CREATION is set instead.

This seems to fix the compile issues where the populate_sysroot task was
not run when an externalsrc recipe was built as a dependency.

[YOCTO #15164]

[RP addition: The deltask was added by me in 2012 when the class was created.
The trouble is bitbake assumes 'sstate' tasks have a setscene task and by deleting
the setscene task, bitbake stops thinking the task can be accelerated. There is other
code in the sysroot code which assumes some tasks are always sstate tasks.

We cannot delete the task without changes to the way bitbake learns about 'setscene'
tasks so the patch is correct, avoiding creating files is the better approach given
the way the world works now.

There would be concerns about exisitng sstate reuse however this shouldn't occur
since SRC_URI changes and that will change the underlying hashes. Hash equivalency
could potentially cause issues by joining hashes together again however if the output
matches, that shouldn't in theory cause any issue.]

(From OE-Core rev: ee4667a24ccdd8c9d547e73aecf661e6a1283890)

Signed-off-by: Peter Suti <peter.suti@streamunlimited.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-11 09:36:05 +01:00
Richard Purdie
2850991c37 gnupg: Fix reproducibility failure
yat2m can be found within the build or from the recipe-sysroot-native if
runtime dependencies are present. The sysroot version has version differences
to the in tree copy. Specify the one we want to make the build determinstic.

(From OE-Core rev: 1feb5274db6e985e10f58359b148dabb4076917a)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-11 09:36:05 +01:00
Richard Purdie
c4c58b13c2 selftest/reproducible: Update config to match ongoing changes
We can't have systemd here any longer without usrmerge. We don't really
want to enable the latter since having separate usr will likely result in
a class of reproducibility and host contamination issues that enabling it
might hide.

Also drop INHIBIT_PACKAGE_STRIP since we generally don't build with that
and the debug binaries should be generated regardless. I suspect this
is legacy from older issues.

(From OE-Core rev: 7b7411788e805fa067dd672c9771dcaf2af918a0)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-11 09:36:05 +01:00
Michael Halstead
5df06735ac yocto-uninative: Update hashes for uninative 4.1
This version includes fixes to patchelf.

(From OE-Core rev: 1c5c8ff97ba0a7f9adc592d702b865b3d166a24b)

Signed-off-by: Michael Halstead <mhalstead@linuxfoundation.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-11 09:36:05 +01:00
Yang Xu
b77e23c541 bitbake: server/process: fix sig handle
process.signal_received is a list for signum and not iterable,
change a suitable method to handle sig.

(Bitbake rev: bfc53b190bd2530c2bfcea0690127d7eff620f45)

Signed-off-by: Yang Xu <yang.xu@mediatek.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-11 07:58:31 +01:00
Richard Purdie
b9813c6a4a Revert "kea: upgrade to v2.5.0"
This reverts commit 4048ddf7fdd6859c43aeb82d85ee0851b3a9177b.

2.5.0 is a development series and the upgrade should have been to 2.4.x.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-10 09:30:53 +01:00
Sudip Mukherjee
a05abc02fa kea: upgrade to v2.5.0
Changes:
Update license checksum: change in copyright year.
Update sha256sum for new version.

An additinal patch to fix the reproducible build failure.

(From OE-Core rev: 4048ddf7fdd6859c43aeb82d85ee0851b3a9177b)

Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-10 09:18:54 +01:00
Bruce Ashfield
06335eab2f linux-yocto-tiny/6.4: fix HID configuration warning
Integrating the following commit(s):

    88ed9ec4909 qemuarm(a15): fix HID warnings in -tiny

During the update to 6.4, qemuarm was missed when updating the HID
configuration to avoid the following warning:

   WARNING: linux-yocto-tiny-6.4.9+gitAUTOINC+8dc4f68eb8_72bad8cd75-r0
   do_kernel_configcheck: [kernel config]: specified values did not make it
   into the kernel's final configuration:

       [NOTE]: 'CONFIG_USB_HID' last val (y) and .config val (n) do not match
       [INFO]: CONFIG_USB_HID : n
       [INFO]: raw config text:

           config USB_HID
                   tristate "USB HID transport layer"
                   default y
                   select HID
                   depends on USB && INPUT && USB && HID_SUPPORT
                   help
                     Say Y here if you want to connect USB keyboards,
                     mice, joysticks, graphic tablets, or any other HID based devices
                     to your computer via USB, as well as Uninterruptible Power Supply
                     (UPS) and monitor control devices.

                     You can't use this driver and the HIDBP (Boot Protocol) keyboard
                     and mouse drivers at the same time. More information is available:
                     <file:Documentation/input/input.rst>.

                     If unsure, say Y.

                     To compile this driver as a module, choose M here: the
                     module will be called usbhid.

           Config 'USB_HID' has the following Direct dependencies (USB_HID=n):
                   USB(=y) && INPUT(=y) && HID_SUPPORT(=n)
           Parent dependencies are:
                USB [y] HID_SUPPORT [n] INPUT [y]
       [INFO]: config 'CONFIG_USB_HID' was set, but it wasn't assignable, check (parent) dependencies

(From OE-Core rev: caa6df71a56ef56710c5c62f3e647322b42efd99)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-10 09:18:54 +01:00
Khem Raj
795420850b pm-utils: Do not require GNU grep at runtime
This was added to fix bug reported here [1]

back then busybox grep applet did not implement -x option
and it would fail as reported in the bug, in due course
busybox now has implemented -x option [2] and the expression

using grep -x in /usr/lib/pm-utils/functions:219 works fine

[1] https://bugzilla.yoctoproject.org/show_bug.cgi?id=1887
[2] https://git.busybox.net/busybox/commit/?id=cd09e81520b7917adebcffd7c361671f913325eb

(From OE-Core rev: ba52209acc699d71de865e7eddf64c8acb67b491)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-10 09:18:54 +01:00
Marek Vasut
b4b218b069 linux-firmware: Fix mediatek mt7601u firmware path
The following linux-firmware commit moved the mt7601u firmware blob
into a mediatek/ subdirectory, update the path accordingly.
8451c2b1 ("mt76xx: Move the old Mediatek WiFi firmware to mediatek")

Fixes: 64603f602d ("linux-firmware: upgrade 20230404 -> 20230515")
(From OE-Core rev: 6fa5c4967a7e70192e9233c92534f27ec3e394c8)

Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-10 09:18:54 +01:00
Mark Hatle
2abbc358ba tcf-agent: Update to 1.8.0 release
New 1.8 release of tcf-agent.  Implements DWARF 5 support and various
bug fixes.

Changelog since last SRCREV:
   Releng: Upversion TCF to 1.8
   Fixed possible SEGFAULT after error message queue overflow
   Fixed misspelling in a comment
   TCF Agent: update breakpoint error message
   Fixed regression: possible segfault in run_safe_events()
   Bug 581978 - TCF agent wrong handle the call frame debug info generated by LLVM 16 for RISC-V
   DWARF: a bit faster implementation of dio_ReadAddressX()
   Bug 581971 - Failed to handle loclist for DWARF 5
   Fixed handling of situation when a context resumed or exited during breakpoint evaluation
   Bug 581799 - when loads .debug_info section from dwarf 5 file, the content of some part are zero
   Updated examples/daytime/readme.txt

(From OE-Core rev: 0c2c7c910fa933bc46f69207f1f7641c1e7b77e0)

Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-10 09:18:54 +01:00
Julien Stephan
c610b8dcd9 libexif: add ptest support
adds ptest support for libexif

Ptest was executed on a core-image-minimal:
root@qemux86-64:~# ptest-runner libexif
START: ptest-runner
2023-07-12T15:45
BEGIN: /usr/lib/libexif/ptest
[...]
i====================
All 13 tests passed
(1 test was not run)
====================
[...]
DURATION: 35
END: /usr/lib/libexif/ptest
2023-07-12T15:45
STOP: ptest-runner
TOTAL: 1 FAIL: 0

(From OE-Core rev: 4e2340dfecdfbe22b07161e89de4e25d466820bb)

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-10 09:18:54 +01:00
Sudip Mukherjee
524a49f5de bind: upgrade to v9.18.17
Changes:
Update license checksum: only whitespace change.
Update sha256sum for new version.

Additional change:
Do not use version with the foldername, which will result in less diffstat
with future upgrades.

(From OE-Core rev: 1eda31b370ab4129ad149c45f1e43a44d6db9241)

Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-10 09:18:54 +01:00
Sakib Sajal
a85c8a5789 go: upgrade 1.20.6 -> 1.20.7
Upgrade to latest 1.20.x release [1]:

$ git log --oneline go1.20.6..go1.20.7 origin/release-branch.go1.20
adb775e309 (tag: go1.20.7, origin/release-branch.go1.20) [release-branch.go1.20] go1.20.7
659f2a2207 [release-branch.go1.20] crypto/tls: restrict RSA keys in certificates to <= 8192 bits
10d85fa0f6 [release-branch.go1.20] cmd/asm, cmd/internal/obj: generate proper atomic ops for riscv64
bd3a1f24e7 [release-branch.go1.20] net: tolerate permission errors in interface tests
6211a024b4 [release-branch.go1.20] cmd/compile: on PPC64, fix sign/zero extension when masking

[1] https://github.com/golang/go/compare/go1.20.6...go1.20.7

(From OE-Core rev: 039324d917ed124228a14ac1effdd66b27d9e82b)

Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-10 09:18:54 +01:00
Joel Stanley
b40619a5b3 kernel: don't fail if Modules.symvers doesn't exist
Kernels that do not use modules do not have the Modules.symvers file,
which causes the previous one-liner to fail.  Invert the logic so that
the absence of the Modules.symvers is a passing situation but we still
get failure checking on the install operation.

(From OE-Core rev: 856c916ffbf3438d8cf5d8bed344473bde03b56e)

Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-10 09:18:54 +01:00