]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/log
thirdparty/openembedded/openembedded-core.git
2 years agocve-check: write the cve manifest to IMGDEPLOYDIR
Jermain Horsman [Mon, 16 Jan 2023 11:46:37 +0000 (12:46 +0100)] 
cve-check: write the cve manifest to IMGDEPLOYDIR

When building an image cve_check_write_rootfs_manifest() would sometimes fail
with a FileNotFoundError when writing the manifest.cve due to the parent
directory (DEPLOY_DIR_IMAGE) not (yet) existing.

The image task will provide the manifest in the deploy directory afterwards,
so other recipes depending on the manifest being in DEPLOY_DIR_IMAGE should
continue to function properly.

Signed-off-by: Jermain Horsman <jermain.horsman@nedap.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agocpio: Fix gnulib alignof implementation on clang
Khem Raj [Sun, 15 Jan 2023 18:51:53 +0000 (10:51 -0800)] 
cpio: Fix gnulib alignof implementation on clang

Backport needed patches

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoopkg: Define alignof using _Alignof when using C11 or newer
Khem Raj [Sun, 15 Jan 2023 18:51:52 +0000 (10:51 -0800)] 
opkg: Define alignof using _Alignof when using C11 or newer

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agom4: Define alignof_slot using _Alignof when using C11 or newer
Khem Raj [Sun, 15 Jan 2023 18:51:51 +0000 (10:51 -0800)] 
m4: Define alignof_slot using _Alignof when using C11 or newer

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agodbus: Use Alignof when using C11 or newer standard
Khem Raj [Sun, 15 Jan 2023 18:51:50 +0000 (10:51 -0800)] 
dbus: Use Alignof when using C11 or newer standard

Fixes an UB found with with clang

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agolibxcb: Fixed c2x standard undefined behaviour
Khem Raj [Sun, 15 Jan 2023 18:51:48 +0000 (10:51 -0800)] 
libxcb: Fixed c2x standard undefined behaviour

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agogstreamer1.0-plugins-good: Fix libsoup runtime dependency
Tom Hochstein [Sun, 15 Jan 2023 16:25:11 +0000 (10:25 -0600)] 
gstreamer1.0-plugins-good: Fix libsoup runtime dependency

The runtime dependency on libsoup set via PACKAGECONFIG does not work.
The problem is the dependency is placed on the main package, but the
soup package has no dependency on the main package.

I considered modifying the call to do_split_packages from
gstreamer1.0-plugins-packaging.inc, changing extra_depends from '' to
None:

```
    extra_depends  -- extra runtime dependencies (RDEPENDS) to be set for
                      all packages. The default value of None causes a
                      dependency on the main package (${PN}) - if you do
                      not want this, pass '' for this parameter.
```

However, the problem with this solution is that it does add the runtime
dependency to _all_ such split packages.

So, fix the problem with an explicit runtime dependency.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agomesa: allow mesa (gbm) to compile without backend
Vincent Davis Jr [Sat, 14 Jan 2023 22:13:56 +0000 (16:13 -0600)] 
mesa: allow mesa (gbm) to compile without backend

Commit introduces a patch that allows for gbm to
be built with an empty backend. There are situation
where mesa-gl is the preferred provider for virtual/libgbm,
virtual/libgl, virtual/mesa, etc... But the x11 DISTRO_FEATURE
isn't included this leads to build errors such as

| /../../../ld: src/gbm/libgbm.so.1.0.0.p/main_backend.c.o: in function
`find_backend':
| backend.c:(.text.find_backend+0xa4): undefined reference to
`gbm_dri_backend'
| /../../../ld:
src/gbm/libgbm.so.1.0.0.p/main_backend.c.o:(.data.rel.ro.builtin_backends+0x4):
undefined reference to `gbm_dri_backend'
| collect2: error: ld returned 1 exit status

Add patch to bypass compilation issue by excluding gbm dri backend.

https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20447
https://gitlab.freedesktop.org/mesa/mesa/-/commit/842ca284650f066e58706741a7d22d67b5088e60

Commit also includes the use of TARGET_CFLAGS variable in mesa-gl recipe
to fix bellow compilation bug.

/../recipe-sysroot/usr/include/xf86drm.h:40:10: fatal error: drm.h: No such file or directory
|    40 | #include <drm.h>

Signed-off-by: Vincent Davis Jr <vince@underview.tech>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agogperf: Make the code C++17 compliant
Khem Raj [Sat, 14 Jan 2023 15:49:21 +0000 (07:49 -0800)] 
gperf: Make the code C++17 compliant

Fixes
| ../../gperf-3.1/lib/getline.cc:58:7: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
|       register int c = getc (stream);
|       ^~~~~~~~~

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agounfs3: Fix implicit function declarations of fix_dir_times()
Khem Raj [Sat, 14 Jan 2023 15:49:20 +0000 (07:49 -0800)] 
unfs3: Fix implicit function declarations of fix_dir_times()

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agovulkan-samples: Update to the tip of trunk
Khem Raj [Sat, 14 Jan 2023 15:49:19 +0000 (07:49 -0800)] 
vulkan-samples: Update to the tip of trunk

Drop backported patches

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agogroff: Drop use of `register` storage class
Khem Raj [Sat, 14 Jan 2023 15:49:18 +0000 (07:49 -0800)] 
groff: Drop use of `register` storage class

Backport a patch to make it work with c17 standard

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agocpio: Do not use _Noreturn in gnulib
Khem Raj [Sat, 14 Jan 2023 15:49:17 +0000 (07:49 -0800)] 
cpio: Do not use _Noreturn in gnulib

Backport a gnulib patch

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoxz: upgrade 5.4.0 -> 5.4.1
Wang Mingyu [Sun, 15 Jan 2023 05:25:41 +0000 (13:25 +0800)] 
xz: upgrade 5.4.0 -> 5.4.1

Changelog:
==========
* liblzma:
    - Fixed the return value of lzma_microlzma_encoder() if the
      LZMA options lc/lp/pb are invalid. Invalid lc/lp/pb options
      made the function return LZMA_STREAM_END without encoding
      anything instead of returning LZMA_OPTIONS_ERROR.
    - Windows / Visual Studio: Workaround a possible compiler bug
      when targeting 32-bit x86 and compiling the CLMUL version of
      the CRC64 code. The CLMUL code isn't enabled by the Windows
      project files but it is in the CMake-based builds.

* Build systems:
    - Windows-specific CMake changes:
        * Don't try to enable CLMUL CRC64 code if _mm_set_epi64x()
          isn't available. This fixes CMake-based build with Visual
          Studio 2013.
        * Created a workaround for a build failure with windres
          from GNU binutils. It is used only when the C compiler
          is GCC (not Clang). The workaround is incompatible
          with llvm-windres, resulting in "XZx20Utils" instead
          of "XZ Utils" in the resource file, but without the
          workaround llvm-windres works correctly. See the
          comment in CMakeLists.txt for details.
        * Included the resource files in the xz and xzdec build
          rules. Building the command line tools is still
          experimental but possible with MinGW-w64.
    - Visual Studio: Added stream_decoder_mt.c to the project
      files. Now the threaded decompressor lzma_stream_decoder_mt()
      gets built. CMake-based build wasn't affected.
    - Updated windows/INSTALL-MSVC.txt to mention that CMake-based
      build is now the preferred method with Visual Studio. The
      project files will probably be removed after 5.4.x releases.
    - Changes to #defines in config.h:
        * HAVE_DECL_CLOCK_MONOTONIC was replaced by
          HAVE_CLOCK_MONOTONIC. The old macro was always defined
          in configure-generated config.h to either 0 or 1. The
          new macro is defined (to 1) only if the declaration of
          CLOCK_MONOTONIC is available. This matches the way most
          other config.h macros work and makes things simpler with
          other build systems.
        * HAVE_DECL_PROGRAM_INVOCATION_NAME was replaced by
          HAVE_PROGRAM_INVOCATION_NAME for the same reason.
* Tests:
    - Fixed test script compatibility with ancient /bin/sh
      versions. Now the five test_compress_* tests should
      no longer fail on Solaris 10.
    - Added and refactored a few tests.

* Translations:
    - Updated the Catalan and Esperanto translations.
    - Added Korean and Ukrainian man page translations.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agostress-ng: upgrade 0.15.01 -> 0.15.02
Wang Mingyu [Sun, 15 Jan 2023 05:25:40 +0000 (13:25 +0800)] 
stress-ng: upgrade 0.15.01 -> 0.15.02

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agopython3-pygments: upgrade 2.13.0 -> 2.14.0
Wang Mingyu [Sun, 15 Jan 2023 05:25:39 +0000 (13:25 +0800)] 
python3-pygments: upgrade 2.13.0 -> 2.14.0

Changelog:
==========
- Added lexers:

  * Arturo (#2259)
  * GAP session (#2211)
  * Fift (#2249)
  * func (#2232)
  * Jsonnet (#2239)
  * Minecraft schema (#2276)
  * MIPS (#2228)
  * Phix (#2222)
  * Portugol (#2300)
  * TL-b (#2247)
  * World of Warcraft TOC format (#2244, #2245)
  * Wren (#2271)

- Updated lexers:

  * Abap: Update keywords (#2281)
  * Alloy: Update for Alloy 6 (#1963)
  * C family (C, C++ and many others):

    - Fix an issue where a chunk would be wrongly recognized as a function
      definition due to braces in comments (#2210)
    - Improve parantheses handling for function definitions (#2207, #2208)

  * C#: Fix number and operator recognition (#2256, #2257)
  * CSound: Updated builtins (#2268)
  * F#: Add ".fsx" file extension (#2282)
  * gas (GNU assembler): recognize braces as punctuation (#2230)
  * HTTP: Add 'CONNECT' keyword (#2242)
  * Inform 6: Fix lexing of properties and doubles (#2214)
  * INI: Allow comments that are not their own line (#2217, #2161)
  * Java properties: Fix issue with whitespace-delimited keys, support
    comments starting with '!' and escapes, no longer support undocumented
    ';' and '//' comments (#2241)
  * LilyPond: Improve heuristics, add "\maxima" duration (#2283)
  * LLVM: Add opaque pointer type (#2269)
  * Macaulay2: Update keywords (#2305)
  * Minecraft-related lexers (SNB and Minecraft function) moved to
    "pygments.lexers.minecraft" (#2276)
  * Nim: General improvements (#1970)
  * Nix: Fix single quotes inside indented strings (#2289)
  * Objective J: Fix catastrophic backtracking (#2225)
  * NASM: Add support for SSE/AVX/AVX-512 registers as well as 'rel'
    and 'abs' address operators (#2212)
  * Powershell:

    - Add "local:" keyword (#2254)
    - Allow continuations without markers (#2262, #2263)

  * Solidity: Add boolean operators (#2292)
  * Spice: Add "enum" keyword and fix a bug regarding binary,
    hexadecimal and octal number tokens (#2227)
  * YAML: Accept colons in key names (#2277)

- Fix 'make mapfiles' when Pygments is not installed in editable mode
  (#2223)

- Support more filetypes and compression types in 'autopygmentize' (#2219)
- Merge consecutive tokens in Autohotkey, Clay (#2248)
- Add ".nasm" as a recognized file type for NASM (#2280)
- Add "*Spec.hs" as a recognized file type for "HSpec" (#2308)
- Add "*.pyi" (for typing stub files) as a recognized file type for
  Python (#2331)
- The HTML lexer no longer emits empty spans for whitespace (#2304)
- Fix "IRCFormatter" inserting linenumbers incorrectly (#2270)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agopython3-pbr: upgrade 5.11.0 -> 5.11.1
Wang Mingyu [Sun, 15 Jan 2023 05:25:38 +0000 (13:25 +0800)] 
python3-pbr: upgrade 5.11.0 -> 5.11.1

Changelog
=========
* Run PBR integration on Ubuntu Focal too
* Remove numpy dependencies
* Tie recursion calls to Dist object, not module
* Update tox.ini to work with tox 4

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agopython3-packaging: upgrade 22.0 -> 23.0
Wang Mingyu [Sun, 15 Jan 2023 05:25:37 +0000 (13:25 +0800)] 
python3-packaging: upgrade 22.0 -> 23.0

Changelog:
==========
 Allow "extra" to be None in the marker environment (:issue:'650')
 Refactor tags._generic_api to use EXT_SUFFIX (:issue:'607')
 Correctly handle trailing whitespace on URL requirements (:issue:'642')
 Fix typing for specifiers.BaseSpecifier.filter() (:issue:'643')
 Use stable Python 3.11 in tests (:issue:'641')
 Correctly handle non-normalised specifiers in requirements (:issue:'634')
 Move to src/ layout (:issue:'626')
 Remove __about__ file, in favour of keeping constants in __init__ (:issue:'626')

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agopython3-importlib-metadata: upgrade 5.2.0 -> 6.0.0
Wang Mingyu [Sun, 15 Jan 2023 05:24:10 +0000 (13:24 +0800)] 
python3-importlib-metadata: upgrade 5.2.0 -> 6.0.0

Changelog:
===========
* #419: Declared "Distribution" as an abstract class, enforcing
  definition of abstract methods in instantiated subclasses. It's no
  longer possible to instantiate a "Distribution" or any subclasses
  unless they define the abstract methods.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agopython3-hypothesis: upgrade 6.61.0 -> 6.62.0
Wang Mingyu [Sun, 15 Jan 2023 05:24:09 +0000 (13:24 +0800)] 
python3-hypothesis: upgrade 6.61.0 -> 6.62.0

Changelog:
we now support @example(...).xfail(), with the same (optional) condition, reason, and raises arguments as pytest.mark.xfail().

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agopython3-hatchling: upgrade 1.12.1 -> 1.12.2
Wang Mingyu [Sun, 15 Jan 2023 05:24:08 +0000 (13:24 +0800)] 
python3-hatchling: upgrade 1.12.1 -> 1.12.2

Changelog:
===========
Add macos-max-compat option to the wheel target that is enabled by default to
support the latest version 22.0 of the packaging library

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agopython3-dbusmock: upgrade 0.28.6 -> 0.28.7
Wang Mingyu [Sun, 15 Jan 2023 05:24:07 +0000 (13:24 +0800)] 
python3-dbusmock: upgrade 0.28.6 -> 0.28.7

Changelog:
==========
 blue5-obex template: Fix OBEX PullAll
 power_profiles template: Fix Actions property type
 README: Explain container tests and how to debug them

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agopython3-cython: upgrade 0.29.32 -> 0.29.33
Wang Mingyu [Sun, 15 Jan 2023 05:24:06 +0000 (13:24 +0800)] 
python3-cython: upgrade 0.29.32 -> 0.29.33

Changelog:
==========
Features added
--------------
* The "cythonize" and "cython" commands have a new option "-M" / "--depfile"
  to generate ".dep" dependency files for the compilation unit.  This can be used
  by external build tools to track these dependencies.
  The "cythonize" option was already available in Cython :ref:'0.29.27'.

Bugs fixed
----------
* "const" fused types could not be used with memory views.
  Patch by Thomas Vincent.  (Github issue :issue:'1772')
* "wstr" usage was removed in Python 3.12 and later (PEP-623).
  (Github issue :issue:'5145')
* A type check assertion for Cython functions failed in debug Python builds.
  (Github issue :issue:'5031')
* Fixed various compiler warnings.
  Patches by Lisandro Dalcin et al.  (Github issues :issue:'4948', :issue:'5086')
* Fixed error when calculating complex powers of negative numbers.
  (Github issue :issue:'5014')
* Corrected a small mis-formatting of exception messages on Python 2.
  (Github issue :issue:'5018')
* The "PyUnicode_AsUTF8AndSize()" C-API function was missing from the CPython declarations.
  (Github issue :issue:'5163')
* A performance problem in the compiler was resolved when nesting conditional expressions.
  (Github issue :issue:'5197')
* Test suite problems with recent NumPy and CPython versions were resolved.
  (Github issues :issue:'5183', :issue:'5190')

Other changes
-------------
* The undocumented, untested and apparently useless syntax
  "from somemodule cimport class/struct/union somename" was deprecated
  in anticipation of its removal in Cython 3.  The type
  modifier is not needed here and a plain "cimport" of the name will do.
  (Github issue :issue:'4905')
* Properly disable generation of descriptor docstrings on PyPy since they cause crashes.
  It was previously disabled, but only accidentally via a typo.
  Patch by Matti Picus.  (Github issue :issue:'5083')
* The "cpow" directive of Cython 3.0 is available as a no-op.
  (Github issue :issue:'5016')

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agopatchelf: upgrade 0.17.0 -> 0.17.2
Wang Mingyu [Sun, 15 Jan 2023 05:22:55 +0000 (13:22 +0800)] 
patchelf: upgrade 0.17.0 -> 0.17.2

8d2cb4f9ab8d564904c292099a022ffb3cccd52d.patch
included in 0.17.2

Changelog:
===========
 Also pass STRIP to the tests
 Fix Out-of-bounds read in the function modifySoname
 Split segment size fix

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agopython3-setuptools: upgrade 65.6.3 -> 65.7.0
Wang Mingyu [Sun, 15 Jan 2023 05:22:54 +0000 (13:22 +0800)] 
python3-setuptools: upgrade 65.6.3 -> 65.7.0

Changelog:
=========
* #3594: Added "htmlcov" to FlatLayoutModuleFinder.DEFAULT_EXCLUDE -- by :user:'demianbrecht'
* #3667: Added a human-readable error description when ".egg-info" directory is not writeable -- by :user:'droodev'
* #3713: Fixed incomplete "getattr" statement that caused problems when accessing
  undefined attribute.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agopython3-alabaster: upgrade 0.7.12 -> 0.7.13
Wang Mingyu [Sun, 15 Jan 2023 05:22:53 +0000 (13:22 +0800)] 
python3-alabaster: upgrade 0.7.12 -> 0.7.13

Changelog:
https://github.com/bitprophet/alabaster/blob/main/docs/changelog.rst

License-Update: Copyright year updated to 2020.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agogi-docgen: upgrade 2022.2 -> 2023.1
Wang Mingyu [Sun, 15 Jan 2023 05:22:52 +0000 (13:22 +0800)] 
gi-docgen: upgrade 2022.2 -> 2023.1

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoed: upgrade 1.18 -> 1.19
Wang Mingyu [Sun, 15 Jan 2023 05:22:51 +0000 (13:22 +0800)] 
ed: upgrade 1.18 -> 1.19

Changelog:
==========
 * main_loop.c (exec_command): Fix commands 'e', 'E'; they did set
   the 'modified' flag if file not found. (Reported by Harry Graf).
   (main_loop): Print script error line to stdout instead of stderr.
 * Change long name of option '-s' to '--script'.
   (Suggested by Andrew L. Moore).
 * Assign short name '-q' to options '--quiet' and '--silent'.
 * main.c (show_strerror) Use '!quiet' to enable diagnostics.
 * Do not process file names for backslash escapes.
   (Suggested by Andrew L. Moore).
 * ed.texi: Document 0 as starting point for searches '0;/RE/'.
   Document how to achieve the effect of ex style '!' filtering.

License-Update: Copyright year updated to 2023.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agodpkg: upgrade 1.21.17 -> 1.21.18
Wang Mingyu [Sun, 15 Jan 2023 05:20:55 +0000 (13:20 +0800)] 
dpkg: upgrade 1.21.17 -> 1.21.18

Changelog:
==========
 * Perl modules:
    - Dpkg::BuildFlags: Fix strip method to always work with duplicates.
  * Documentation:
    - man: Add a note to dpkg-fsys-usrunmess(8) about Debian support.
  * Code internals:
    - libdpkg: Move compression level max bound check from dpkg-deb.
    - libdpkg: Switch dpkg_lzma_strerror() to use struct io_lzma.
    - libdpkg: Split compression filter operation tracking from its status.
    - libdpkg: Generalize compression stream action handling.
    - libdpkg: Abstract compression stream status tracking.
    - libdpkg: Add zstd support for .deb archives. Closes: #892664
  * Build system:
    - Update .mailmap mappings.
  * Packaging:
    - Update copyright years.
  * Test suite:
    - Add dpkg-deb build and extract tests.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoman-db: upgrade 2.11.1 -> 2.11.2
Wang Mingyu [Sun, 15 Jan 2023 05:20:54 +0000 (13:20 +0800)] 
man-db: upgrade 2.11.1 -> 2.11.2

Changelog:
=========
Fixes:
------
 * Fix compile and test failures when 'troff' is not 'groff'.
 * Fix segfault in typical uses of 'man' when 'nroff' is not installed.
 * Fix crash in 'mandb' when processing stray cats.

Improvements:
-------------
 * Check for stray cats even if no manual pages in a given manpath were
   changed.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agolibwebp: upgrade 1.2.4 -> 1.3.0
Wang Mingyu [Sun, 15 Jan 2023 05:20:53 +0000 (13:20 +0800)] 
libwebp: upgrade 1.2.4 -> 1.3.0

Changelog:
==========
* add libsharpyuv, which exposes -sharp_yuv/config.use_sharp_yuv
  functionality to other libraries; libwebp now depends on this library
* major updates to the container and lossless bitstream docs (#448, #546,
  #551)
* miscellaneous warning, bug & build fixes (#576, #583, #584)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agolibpcap: upgrade 1.10.2 -> 1.10.3
Wang Mingyu [Sun, 15 Jan 2023 05:20:52 +0000 (13:20 +0800)] 
libpcap: upgrade 1.10.2 -> 1.10.3

Changelog:
============
Source code:
   Sort the PUBHDR variable in Makefile.in in "ls" order.
   Fix typo in comment in pflog.h.
   Remove two no-longer-present files from .gitignore.
   Update code and comments for handling failure to set promiscuous
     mode based on new information.
Building and testing:
   install: Fixed not to install the non-public pcap-util.h header.
   pcap-config: add a --version flag.
   Makefile.in: Add some missing files in the distclean target.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agobtrfs-tools: upgrade 6.1 -> 6.1.2
Wang Mingyu [Sun, 15 Jan 2023 05:20:51 +0000 (13:20 +0800)] 
btrfs-tools: upgrade 6.1 -> 6.1.2

Changelog:
 revert libbtrfs changes to v6.0.2, fix remaining build problems

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agorust: Remove CARGO_VERSION
Alex Kiernan [Fri, 13 Jan 2023 11:53:19 +0000 (11:53 +0000)] 
rust: Remove CARGO_VERSION

CARGO_VERSION isn't broken out in rust/src/stage0.json, there's only one
snapshot version, so just use that.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agorust: Upgrade 1.66.0 -> 1.66.1
Alex Kiernan [Fri, 13 Jan 2023 11:53:18 +0000 (11:53 +0000)] 
rust: Upgrade 1.66.0 -> 1.66.1

Changes:
  Added validation of SSH host keys for git URLs in Cargo (CVE-2022-46176)

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agopython3-sphinxcontrib-applehelp: update 1.0.2 -> 1.0.3
Alexander Kanavin [Fri, 13 Jan 2023 14:56:58 +0000 (15:56 +0100)] 
python3-sphinxcontrib-applehelp: update 1.0.2 -> 1.0.3

Convert to flit, adjust pypi name.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agowebkitgtk: submit a patch upstream
Alexander Kanavin [Fri, 13 Jan 2023 14:56:57 +0000 (15:56 +0100)] 
webkitgtk: submit a patch upstream

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agomesa: update 22.2.3 -> 22.3.3
Alexander Kanavin [Fri, 13 Jan 2023 14:56:56 +0000 (15:56 +0100)] 
mesa: update 22.2.3 -> 22.3.3

gallium-xvmc option removed upstream

Remove 0001-futex.h-Define-__NR_futex-if-it-does-not-exist.patch
as upstream code no longer uses these definitions.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoman-pages: upgrade 6.01 -> 6.02
Alexander Kanavin [Fri, 13 Jan 2023 14:56:55 +0000 (15:56 +0100)] 
man-pages: upgrade 6.01 -> 6.02

License-Update: readme rewritten, set of licenses provided explicitly.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoethtool: upgrade 6.0 -> 6.1
Alexander Kanavin [Fri, 13 Jan 2023 14:56:54 +0000 (15:56 +0100)] 
ethtool: upgrade 6.0 -> 6.1

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agolibglu: Remove deprecated register in C++17
Khem Raj [Sat, 14 Jan 2023 05:10:10 +0000 (21:10 -0800)] 
libglu: Remove deprecated register in C++17

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agocreaterepo-c: Include missing rpm/rpmstring.h
Khem Raj [Sat, 14 Jan 2023 04:54:20 +0000 (20:54 -0800)] 
createrepo-c: Include missing rpm/rpmstring.h

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agorust-bin.bbclass: remove unused class
Michael Opdenacker [Fri, 13 Jan 2023 17:15:25 +0000 (18:15 +0100)] 
rust-bin.bbclass: remove unused class

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoquilt: fix intermittent failure in faildiff.test
Ross Burton [Fri, 13 Jan 2023 16:57:02 +0000 (16:57 +0000)] 
quilt: fix intermittent failure in faildiff.test

This test assumes that if a child process writes one line to stderr and
then another line to stdout, and stderr is redirected to stdout, that
the order the lines will be read is stable.

This isn't the case and occasionally the lines will be read in a
different order.  Change the test to ignore line ordering.

[ YOCTO #14469 ]

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoquilt: rewrite ptest glue
Ross Burton [Fri, 13 Jan 2023 16:57:01 +0000 (16:57 +0000)] 
quilt: rewrite ptest glue

The ptest glue was overly complex. Not as many files are needed to be
installed if we tell it to use the system's quilt tools, there's no
need for a custom Makefile just to set some environment variables, and
/usr/bin/ed doesn't appear to be used at all.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agocve-update-db-native: show IP on failure
Ross Burton [Fri, 13 Jan 2023 17:14:31 +0000 (17:14 +0000)] 
cve-update-db-native: show IP on failure

We get random SSL failures when fetching the CVE database, and it's
notable that the NVD server is behind a DNS round-robin or geographically
diverse servers.

On a hunch that there is one misconfigured server, dump the IP that we
connected to.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agopackagegroup-core-boot: make init-ifupdown package a recommendation
Quentin Schulz [Thu, 12 Jan 2023 19:58:45 +0000 (20:58 +0100)] 
packagegroup-core-boot: make init-ifupdown package a recommendation

init-ifupdown provides an /etc/network/interfaces, which disables
interface management with networkmanager for example. If a network
manager (such as networkmanager) is provided, there may not be a need
for network related init scripts provided by init-ifupdown, so let's
make it a recommendation so it can be easily removed in image recipes
via the NO_RECOMMENDATIONS/BAD_RECOMMENDATIONS mechanism.

Cc: Quentin Schulz <foss+yocto@0leil.net>
Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agoselftest/virgl: use pkg-config from the host
Alexander Kanavin [Thu, 12 Jan 2023 15:41:35 +0000 (16:41 +0100)] 
selftest/virgl: use pkg-config from the host

The check needs to report dri location on the host machine,
so pkg-config binary needs to be capable of finding the needed
dri.pc file on the host, and therefore needs to know where
host .pc files are located.

This may not be the case when using pkg-config from buildtools,
so this forces usage of host pkg-config.

runqemu already does the same PATH tweak, so this simply brings
the two in sync.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agopython3-picobuild: remove
Ross Burton [Thu, 12 Jan 2023 11:23:36 +0000 (11:23 +0000)] 
python3-picobuild: remove

We've moved to using python3-build, so this can be removed.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agopython_pep517: use python3-build, not picobuild
Ross Burton [Thu, 12 Jan 2023 11:23:35 +0000 (11:23 +0000)] 
python_pep517: use python3-build, not picobuild

Now that the bootstrap sequence for pypa/build is just
python3-packaging, and python3-pyproject-hooks, we can use build instead
of picobuild.

The only change visible outside of this class is that the variable
PEP517_PICOBUILD_OPTS is now PEP517_BUILD_OPTS, but I'm only aware of one
recipe that used that variable.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agopython3-build: add 0.10.0
Ross Burton [Thu, 12 Jan 2023 11:23:34 +0000 (11:23 +0000)] 
python3-build: add 0.10.0

This is the PEP517 build frontend blessed by the Python Packaging
Authority, and now that Python 3.11 has been released and enough
packages have ported to flit, it can be used without a huge bootstraping
problem.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agopython3-pyproject-hooks: add new recipe
Ross Burton [Thu, 12 Jan 2023 11:23:33 +0000 (11:23 +0000)] 
python3-pyproject-hooks: add new recipe

This used to be known as python3-pep517 and is a key library used to
build modern Python code.

It is currently vendored into python3-picobuild but I plan to remove
that.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agolib/oe/reproducible: Use git log without gpg signature
Benoît Mauduit [Thu, 12 Jan 2023 13:23:57 +0000 (14:23 +0100)] 
lib/oe/reproducible: Use git log without gpg signature

Previously, if "showSignature" is present in user gitconfig, parsing
of the timestamp will fail.

Ideally we should replace this command with a git plumbing command.

Signed-off-by: Benoît Mauduit <bmauduit@beneth.fr>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agoiproute2: separate routel and add python dependency
Peter Marko [Thu, 12 Jan 2023 10:19:52 +0000 (11:19 +0100)] 
iproute2: separate routel and add python dependency

This script was migrated from shell to python3 in recent versions.

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agoat: Change when files are copied
Saul Wold [Wed, 11 Jan 2023 16:20:26 +0000 (08:20 -0800)] 
at: Change when files are copied

The create_spdx code relies on patched code, if files are changed
or added during the do_configure phase they will be missed by the
create_spdx process. So we need to ensure files modifications/additions
happen in the do_patch phase.

Signed-off-by: Saul Wold <saul.wold@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agocurl: don't enable debug builds
Ross Burton [Wed, 11 Jan 2023 14:17:53 +0000 (14:17 +0000)] 
curl: don't enable debug builds

In oe-core 27824261 --enable-debug was added to the configure arguments
to turn on debugging symbols.  However, enabling debug mode does more
than turn on debugging symbols and introduces some codepaths that can be
controlled with environment variables.  Bluntly, the curl maintainer
says that --enable-debug should not be used in production:

https://curl.se/mail/lib-2023-01/0039.html

I did a build and verified that the curl-dbg package doesn't massively
shrink, so the debug symbols are still being built.

Remove the debug options and hide them behind a PACKAGECONFIG, with a
comment that it should not be used in production.

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>
2 years agosystemd: ship pcrphase/measure tools and units in systemd-extra-utils
Luca Boccassi [Wed, 11 Jan 2023 11:47:29 +0000 (11:47 +0000)] 
systemd: ship pcrphase/measure tools and units in systemd-extra-utils

New tooling related to signed TPM policies introduced in v252

Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agosystemd: refresh patch to remove fuzz introduced by rebase on v252
Luca Boccassi [Tue, 10 Jan 2023 22:22:26 +0000 (22:22 +0000)] 
systemd: refresh patch to remove fuzz introduced by rebase on v252

Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agotoolchain-scripts: compatibility with unbound variable protection
Jan Kircher [Tue, 10 Jan 2023 16:11:18 +0000 (17:11 +0100)] 
toolchain-scripts: compatibility with unbound variable protection

Fixed an error when Bash's unbound variable protection is enabled (set -u) and variable "LD_LIBRARY_PATH" does not exist.

Signed-off-by: Jan Kircher <openembedded@hetsh.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agolibseccomp: fix typo in DESCRIPTION
Chen Qi [Tue, 10 Jan 2023 09:23:46 +0000 (17:23 +0800)] 
libseccomp: fix typo in DESCRIPTION

Fix typo in DESCRIPTION: and -> an.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agodhcpcd: backport two patches to fix runtime error
Chen Qi [Tue, 10 Jan 2023 06:52:32 +0000 (14:52 +0800)] 
dhcpcd: backport two patches to fix runtime error

In case of nodistro, dhcpcd gives us 'Bad system call'
error and exits. This is because there are syscalls that
should be allowed but not in privsep. Backport two patches
to fix this issue.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agolibpng: Enable NEON for aarch64 to enensure consistency with arm32.
leimaohui [Tue, 10 Jan 2023 03:31:09 +0000 (11:31 +0800)] 
libpng: Enable NEON for aarch64 to enensure consistency with arm32.

NEON is enabled for aarch64 by default, so, to ensure consistency with
arm32, reference to libpng-1.6.38/configure, added
enable_hardware_optimizations option for aarch64.

Signed-off-by: Lei Maohui <leimaohui@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoopkg: ensure opkg uses private gpg.conf when applying keys.
Charlie Johnston [Mon, 9 Jan 2023 21:22:00 +0000 (15:22 -0600)] 
opkg: ensure opkg uses private gpg.conf when applying keys.

Currently, the opkg-key utility calls gpg with --no-options,
which uses /dev/null as the configuration file. This means
any configurations in /etc/opkg/gpg/gpg.conf were being
ignored. This change applies a patch to remove the
--no-options flag.

Signed-off-by: Charlie Johnston <charlie.johnston@ni.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agovirglrenderer: upgrade 0.10.3 -> 0.10.4
Wang Mingyu [Mon, 9 Jan 2023 05:20:22 +0000 (13:20 +0800)] 
virglrenderer: upgrade 0.10.3 -> 0.10.4

0001-Replace-lseek64-with-lseek.patch
removed since it's included in 0.10.4

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>
2 years agorxvt-unicode: upgrade 9.30 -> 9.31
Wang Mingyu [Mon, 9 Jan 2023 05:20:21 +0000 (13:20 +0800)] 
rxvt-unicode: upgrade 9.30 -> 9.31

Changelog:
===========
- implement a fix for CVE-2022-4170 (reported and analyzed by David Leadbeater).
  While present in version 9.30, it should not be exploitable. It is exploitable
  in versions 9.25 and 9.26, at least, and allows anybody controlling output to
  the terminal to execute arbitrary code in the urxvt process.
- the background extension no longer requires off focus fading support
  to be compiled in.
- the confirm-paste extension now offers a choice betwene pasting the original
  or a sanitized version, and also frees up memory used to store the paste text
  immediately.
- fix compiling without frills.
- fix rewrapMode: never.
- fix regression that caused urxvt to no longer emit responses
  to OSC color queries other than OSC 4 ones.
- fix regression that caused urxvt to no longer process OSC 705.
- restore CENTURY to be 1900 to "improve" year parsing in urclock (or at
  least go back to the old interpretation) (based on an analysis
  by Tommy Pettersson).
- exec_async (used e.g. by the matcher extension to spawn processes) now
  sets the URXVT_EXT_WINDOWID variable to the window id of the terminal.
- implement -fps option/refreshRate resource to change the default 60 Hz
  maximum refresh limiter. I always wanted an fps option, but had to
  wait for a user requesting it.
- new clickthrough extension.
- perl now also requires Xext.
- X region and shape extension functionality has been exposed to perl
  extensions.
- RENDER extension no longer depends on ENABLE_XIM_ONTHESPOT.

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>
2 years agodpkg: upgrade 1.21.13 -> 1.21.17
Wang Mingyu [Mon, 9 Jan 2023 05:20:20 +0000 (13:20 +0800)] 
dpkg: upgrade 1.21.13 -> 1.21.17

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>
2 years agompfr: upgrade 4.1.1 -> 4.2.0
Wang Mingyu [Mon, 9 Jan 2023 05:14:57 +0000 (13:14 +0800)] 
mpfr: upgrade 4.1.1 -> 4.2.0

Changelog:
==========
- The "fondue savoyarde" release.
- Binary compatible with MPFR 4.0.* and 4.1.*, though some minor changes in
  the behavior of the formatted output functions may be visible, regarded
  as underspecified behavior or bug fixes (see below).
- New functions mpfr_cosu, mpfr_sinu, mpfr_tanu, mpfr_acosu, mpfr_asinu,
  mpfr_atanu and mpfr_atan2u.
- New functions mpfr_cospi, mpfr_sinpi, mpfr_tanpi, mpfr_acospi, mpfr_asinpi,
  mpfr_atanpi and mpfr_atan2pi.
- New functions mpfr_log2p1, mpfr_log10p1, mpfr_exp2m1, mpfr_exp10m1 and
  mpfr_compound_si.
- New functions mpfr_fmod_ui, mpfr_powr, mpfr_pown, mpfr_pow_uj, mpfr_pow_sj
  and mpfr_rootn_si (mpfr_pown is actually a macro defined as an alias for
  mpfr_pow_sj).
- Bug fixes.
  In particular, for the formatted output functions (mpfr_printf, etc.),
  the case where the precision consists only of a period has been fixed
  to be like ".0" as specified in the ISO C standard, and the manual has
  been corrected and clarified.
  The macros of the custom interface have also been fixed: they now behave
  like functions (except a minor limitation for mpfr_custom_init_set).

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>
2 years agolibxkbcommon: upgrade 1.4.1 -> 1.5.0
Wang Mingyu [Mon, 9 Jan 2023 05:14:56 +0000 (13:14 +0800)] 
libxkbcommon: upgrade 1.4.1 -> 1.5.0

Changelog:
==========
- Add 'xkb_context' flag 'XKB_CONTEXT_NO_SECURE_GETENV' and 'rxkb_context' flag
  'RXKB_CONTEXT_NO_SECURE_GETENV'.

  xkbcommon uses 'getenv_secure()' to obtain environment variables. This flag
  makes xkbcommon use 'getenv()' instead.

  This is useful for some clients that have relatively benign capabilities set,
  like CAP_SYS_NICE, that also want to use e.g. the XKB configuration from the
  environment and user configs in XDG_CONFIG_HOME.

  Contributed by Ronan Pigott.

- Fix crash in 'xkbcli interactive-wayland' under a compositor which supports
  new versions of the xdg-shell protocol.

  Contributed by Jan Alexander Steffens (heftig).

- Fix some MSVC build issues.

- Fix some issues when including xkbcommon as a meson subproject.

- meson>=0.51 is now required.

- New API:
  XKB_CONTEXT_NO_SECURE_GETENV
  RXKB_CONTEXT_NO_SECURE_GETENV

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>
2 years agolibva-utils: upgrade 2.17.0 -> 2.17.1
Wang Mingyu [Mon, 9 Jan 2023 05:14:55 +0000 (13:14 +0800)] 
libva-utils: upgrade 2.17.0 -> 2.17.1

Changelog:
==========
* fix: Fix possible memory leak
* fix: fix coding issues of array size and function return types

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>
2 years agolibsdl2: upgrade 2.26.1 -> 2.26.2
Wang Mingyu [Mon, 9 Jan 2023 05:14:54 +0000 (13:14 +0800)] 
libsdl2: upgrade 2.26.1 -> 2.26.2

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>
2 years agooe-selftest: Add baremetal toolchain test
Alejandro Hernandez Samaniego [Sun, 8 Jan 2023 19:40:05 +0000 (12:40 -0700)] 
oe-selftest: Add baremetal toolchain test

Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agobaremetal-helloworld: Move from skeleton to recipes-extended matching what rust-hello...
Alejandro Hernandez Samaniego [Thu, 12 Jan 2023 04:34:44 +0000 (21:34 -0700)] 
baremetal-helloworld: Move from skeleton to recipes-extended matching what rust-hello-world is doing

Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agobaremetal-helloworld: Enable x86 and x86-64 ports
Alejandro Hernandez Samaniego [Sun, 8 Jan 2023 19:15:23 +0000 (12:15 -0700)] 
baremetal-helloworld: Enable x86 and x86-64 ports

- The qemux86 port for helloworld-baremetal builds in the standard way, however,
  it uses NASM syntax for the startup code, hence we include a dependency to
  nasm-native, QEMU forces us to use an ELF file rather than a bin file to boot
  from this architecture using the -kernel parameter.

- QEMU refuses to boot using the -kernel parameter for files containing an ELF64
  header [1], instead, it requires a multiboot2 compatible image.

  We could create an image that contains a multiboot2 header by piggybacking
  into grub2-native, specifically grub-mkrescue, but it requires some extra
  runtime dependencies (xorriso which is currently part of meta-oe), and assumes
  a grub installation exists on the host.

  Due to host contamination and dependency complications, we dont rely on grub2,
  but rather do this process manually instead, the x86-64 port contains a stage1
  bootloader, stage2 bootloader and a 64 bit baremetal app (multiboot2
  compatible), booting into real (16 bit), protected (32 bit) and long (64 bit)
  modes, eventually running the helloworld-baremetal app. This is the reason why
  we need the code changes to use a separate Makefile, and create an image
  specifically for qemux86-64.

$ runqemu nographic
Booting from ROM..
Hello OpenEmbedded on x86!

$ runqemu nographic
Starting Stage 1 Bootloader
Loading Stage 2 Bootloader
Stage 2 Loaded.
Jumping to Stage2 Bootloader
In Stage 2
Done

Hello OpenEmbedded on x86-64!

[1] https://gitlab.com/qemu-project/qemu/-/blob/v7.2.0/hw/i386/multiboot.c#L199

Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agotune-x86-64-v3.inc: set QEMU_EXTRAOPTIONS like other tune-* files
Martin Jansa [Sat, 7 Jan 2023 14:41:09 +0000 (15:41 +0100)] 
tune-x86-64-v3.inc: set QEMU_EXTRAOPTIONS like other tune-* files

* use Skylake-Client to match QB_CPU_KVM as changed in:
  https://git.openembedded.org/openembedded-core/commit/?id=6f2af1e5d1537b4d31e14946292bf58f0fd76fc9

* explicitly set -cpu instead of letting qemu to choose based
  on host cpu

* check=false is still useful as e.g. on on AMD Threadripper 3970X:
  orc/0.4.33-r0 $ PSEUDO_UNLOAD=1 qemu-x86_64 -r 3.2.0 -cpu Skylake-Client  -L recipe-sysroot -E LD_LIBRARY_PATH=recipe-sysroot//usr/lib:recipe-sysroot//lib
  orc/0.4.33-r0/build/meson-private/sanitycheckc_cross.exe
  qemu-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.pcid [bit 17]
  qemu-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.x2apic [bit 21]
  qemu-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.tsc-deadline [bit 24]
  qemu-x86_64: warning: TCG doesn't support requested feature: CPUID.07H:EBX.hle [bit 4]
  qemu-x86_64: warning: TCG doesn't support requested feature: CPUID.07H:EBX.invpcid [bit 10]
  qemu-x86_64: warning: TCG doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11]
  qemu-x86_64: warning: TCG doesn't support requested feature: CPUID.07H:EBX.rdseed [bit 18]
  qemu-x86_64: warning: TCG doesn't support requested feature: CPUID.80000001H:ECX.3dnowprefetch [bit 8]
  qemu-x86_64: warning: TCG doesn't support requested feature: CPUID.0DH:EAX.xsavec [bit 1]

* if this still doesn't work for you on your host, you might need to downgrade
  DEFAULTTUNE to e.g. corei7-64 (all all the way back to core2-64), for
  more details see:
  https://www.openembedded.org/pipermail/openembedded-core/2018-April/150178.html

* the leading space shouldn't be needed, I've kept it for consistency
  with other QEMU_EXTRAOPTIONS

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agosite/common-musl: Set ac_cv_sys_file_offset_bits default to 64
Khem Raj [Sat, 7 Jan 2023 00:08:31 +0000 (16:08 -0800)] 
site/common-musl: Set ac_cv_sys_file_offset_bits default to 64

off_t is always 64bit on musl regardless of 32bit or 64bit
architectures. autoconf has AC_SYS_LARGEFILE to detect correct off_t
size but it only work with glibc since it defines feature macros
_FILE_OFFSET_BITS=64 and _LARGEFILE_SOURCE but these macros are
not used on musl headers.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agolibrsvg: enable vapi build
Markus Volk [Mon, 9 Jan 2023 13:34:37 +0000 (14:34 +0100)] 
librsvg: enable vapi build

Otherwise gnome-chess will fail like this:

| error: Package `librsvg-2.0' not found in specified Vala API directories or GObject-Introspection GIR directories
| Compilation failed: 1 error(s), 0 warning(s)

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>
2 years agorust: Merge all rustc-source patches into rust-source.inc
Alex Kiernan [Sat, 7 Jan 2023 09:48:39 +0000 (09:48 +0000)] 
rust: Merge all rustc-source patches into rust-source.inc

With the dim-sum approach to patching we had the same patch applied in
many places, but not all, so that there were no guarantees that we were
actually building agaginst the same thing in all recipes.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agogcr3: update 3.40.0 -> 3.41.1
Markus Volk [Sat, 7 Jan 2023 03:50:02 +0000 (04:50 +0100)] 
gcr3: update 3.40.0 -> 3.41.1

 - remove unneded backport patches
 - partly import the patch to fix ssh_agent option from gcr4 recipe
 - convert from gtk-doc to gi-docgen

gcr 3.41.1:
- meson: Fix unknown kw argument in gnome.generate_gir [GNOME/gcr!68]
- gcr: Add G_SPAWN_CLOEXEC_PIPES flag to all the g_spawn commands
- docs: Port from gtk-doc to gi-docgen [GNOME/gcr!76]
- Unbreak build without systemd [GNOME/gcr!75]
- Several CI fixes
- Updated translations

gcr 3.41.0:
- Port ssh-agent from gnome-keyring [GNOME/gcr!67]
- build: Fix parallel build failure due to missing marshal dependency [GNOME/gcr!68]
- Fix warnings by dropping `volatile` for g_once_init_inter locations [GNOME/gcr!69]
- tests: More robust against GTask unref race condition [GNOME/gcr!72,GNOME/gcr#84]
- Updated translations

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>
2 years agorust: Do not use default compiler flags defined in CC crate
Anton Antonov [Tue, 3 Jan 2023 14:36:39 +0000 (14:36 +0000)] 
rust: Do not use default compiler flags defined in CC crate

Rust crates build dependecy C libraries using "CC" crate.
This crate adds some default compiler parameters depending on target arch.
For some targets these parameters conflict with the parameters defined by OE.

Warnings/errors like this can be seen in the case:

cc1: error: switch '-mcpu=cortex-a15' conflicts with switch '-march=armv7-a+fp' [-Werror]

Lets use only the OE parameters by exporting CRATE_CC_NO_DEFAULTS.
https://github.com/rust-lang/cc-rs#external-configuration-via-environment-variables

This patch fixes https://bugzilla.yoctoproject.org/show_bug.cgi?id=14947

Signed-off-by: Anton Antonov <Anton.Antonov@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agorecipes, classes: Avoid adding extra whitespace to PACKAGESPLITFUNCS
Peter Kjellerstedt [Thu, 5 Jan 2023 21:05:46 +0000 (22:05 +0100)] 
recipes, classes: Avoid adding extra whitespace to PACKAGESPLITFUNCS

This is a follow-up to commit 846ff49465 to remove the extra whitespace
that is no longer needed after converting :append and :prepend to += and
=+.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years ago.gitignore: ignore files generated by Toaster
Michael Opdenacker [Thu, 5 Jan 2023 14:25:54 +0000 (15:25 +0100)] 
.gitignore: ignore files generated by Toaster

When Toaster is run as documented on
https://docs.yoctoproject.org/toaster-manual/setup-and-use.html

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>
2 years agokernel-fitimage: Allow user to select dtb when multiple dtb exists
Sandeep Gundlupet Raju [Wed, 4 Jan 2023 22:09:02 +0000 (15:09 -0700)] 
kernel-fitimage: Allow user to select dtb when multiple dtb exists

Allow user to select the default DTB for FIT image when multiple
dtb's exists.

From machine.conf or local.conf user can specify the default dtb
for FIT image as shown below.

FIT_CONF_DEFAULT_DTB = "board-default.dtb"

Also fallback to avaialable dtb when FIT_CONF_DEFAULT_DTB doesn't
exits or empty.

Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agokernel-fitimage: Adjust order of dtb/dtbo files
Sandeep Gundlupet Raju [Wed, 4 Jan 2023 22:09:01 +0000 (15:09 -0700)] 
kernel-fitimage: Adjust order of dtb/dtbo files

The dtb files must be before the dtbo files, otherwise the overlays may
not be applied correctly.

From Bruce Ashfield:

  We can split between dtbs and dtbos, they just need to be sorted
  for reproducibility reasons.

  Of course, this was only working by luck previously (before the
  sort), since it has always been gathering dtbs and dtbo's with
  find, depending on filesystem ordering for the order in the
  fitimage).

Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoharfbuzz: remove bindir only if it exists
Petr Kubizňák [Wed, 4 Jan 2023 11:45:55 +0000 (12:45 +0100)] 
harfbuzz: remove bindir only if it exists

In some scenarios (e.g. when "glib" removed from PACKAGECONFIG),
"${D}${bindir}" might not exist which caused `rmdir` to fail.

Signed-off-by: Petr Kubizňák <kubiznak@2n.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agogtk4: update 4.8.2 -> 4.8.3
Markus Volk [Sun, 1 Jan 2023 13:23:26 +0000 (14:23 +0100)] 
gtk4: update 4.8.2 -> 4.8.3

Overview of Changes in 4.8.3, 12-22-2022
========================================

* GtkText:
 - Claim gestures more selectively
 - Prevent unexpected notify::direction emissions

* Accessibility:
 - Remember if we don't find the a11y bus

* DND:
 - Prefer file:// urls over other protocols

* GtkMountOperation:
 - Work on Wayland

* GtkListView:
 - Cancel rubberband if not handling drag

* Wayland:
 - Fix button masks

* Windows:
 - Fix resizes with native decorations

* X11:
 - Fix some ordering problems with surface destruction

* Translation updates
 Abkhazian
 Basque
 Dutch
 Hungarian
 Interlingue
 Georgian
 Persian
 Russian
 Spanish
 Turkish

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>
2 years agogcr: add opengl to REQUIRED_DISTRO_FEATURES
Mingli Yu [Fri, 23 Dec 2022 09:32:29 +0000 (17:32 +0800)] 
gcr: add opengl to REQUIRED_DISTRO_FEATURES

Fixes:
  $ bitbake gcr
  ERROR: Nothing PROVIDES 'gtk4' (but /build/layers/oe-core/meta/recipes-gnome/gcr/gcr_4.0.0.bb DEPENDS on or otherwise requires it)
gtk4 was skipped: missing required distro feature 'opengl' (not in DISTRO_FEATURES)
  ERROR: Required build target 'gcr' has no buildable providers.
  Missing or unbuildable dependency chain was: ['gcr', 'gtk4']

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoqemux86-64: Reduce tuning to core2-64
Richard Purdie [Wed, 11 Jan 2023 10:59:20 +0000 (10:59 +0000)] 
qemux86-64: Reduce tuning to core2-64

Effectively revert "qemux86-64: build for x86-64-v3 (2013 Haswell and later) rather than Core 2 from 2006"
(commit 6f2af1e5d1537b4d31e14946292bf58f0fd76fc9)

Much as I'd love us to use the latest tuning, we do have some autobuilder
hardware which isn't ready for this yet which breaks KVM and some qemu
user mode usage as there appear to be TCG bugs too. I suspect we're not
the only ones with such hardware.

Drop the tune back to core2-64, anyone can easily customise it
themselves if they need it. We can revisit this in a year or two
as we should be ready then. It has beena  good test of the rest of the
support which all seems ready.

I'd have preferred to use corei7-64 but that causes
runqemu.RunqemuTests.test_boot_machine_iso to hang.

Leave the newer tune file inclusion so people can change tunes
more easily.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agouninative: Upgrade to 3.8.1 to include libgcc
Michael Halstead [Tue, 10 Jan 2023 22:18:51 +0000 (14:18 -0800)] 
uninative: Upgrade to 3.8.1 to include libgcc

Including libgcc solves issues with libpthread.

Signed-off-by: Michael Halstead <mhalstead@linuxfoundation.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoelfutils: disable deprecation errors in all builds, not just native
Ross Burton [Fri, 6 Jan 2023 16:16:21 +0000 (16:16 +0000)] 
elfutils: disable deprecation errors in all builds, not just native

The curl-related deprecation errors affect all builds not just native,
so set CFLAGS instead of BUILD_CFLAGS.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agooeqa/selftest/debuginfod: improve testcase
Ross Burton [Tue, 10 Jan 2023 16:20:37 +0000 (16:20 +0000)] 
oeqa/selftest/debuginfod: improve testcase

Primarily, before running the debuginfod-find tool, check that the
debuginfod server has finished sweeping the deploy directory.  If we
make the request too soon then there's a rare chance that we run the
client before it has scanned the right packages, and the log gets
swamped with warnings from sqlite due to a race.

Also:
- unset DEBUGINFOD_URLS so the debuginfod doesn't proxy to an upstream
  server provided by the host distro
- Lower concurrency to reduce system load and handle systems with lower
  maximum open file counts but lots of cores (as the concurrency means
  cores*2*2 open files)
- Set the refresh times to 0 so we never rescan during the test
- Only scan the packages for the format which the image is using
- Log the commands that are being invoked

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agouninative: Ensure uninative is enabled in all cases for BuildStarted event
Richard Purdie [Tue, 10 Jan 2023 16:00:18 +0000 (16:00 +0000)] 
uninative: Ensure uninative is enabled in all cases for BuildStarted event

Recent changes in bitbake mean the datastore is not always reset between
ConfigParsed and BuildStarted. This means in a fresh buiild, with memory
resident bitbake active, uninative may end up disabled.

Update the code so the enable code is always run at BuildStarted if
needed.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agopatchelf: Add fix submitted upstream for uninative segfaults uninative-3.8.1
Richard Purdie [Tue, 10 Jan 2023 14:10:28 +0000 (14:10 +0000)] 
patchelf: Add fix submitted upstream for uninative segfaults

The new uninative tarball is segfaulting in quilt (the underlying
patch binary). We see errors in dmesg like:

(patch): Uhuuh, elf segment at 0000000000400000 requested but the memory is mapped already

This patch submitted to patchelf upstream looks like an appropriate fix
for that.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agouninative-tarball: Add libgcc uninative-3.8
Richard Purdie [Mon, 9 Jan 2023 12:17:21 +0000 (12:17 +0000)] 
uninative-tarball: Add libgcc

We ship libpthread with uninative. when uninative is active we're seeing
failures like:

   libgcc_s.so.1 must be installed for pthread_cancel to work
   Aborted

which is since we don't have a libgcc that matches libpthread. Add libgcc
to avoid these errors.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoboost: add url lib
Christian Eggers [Thu, 5 Jan 2023 13:12:48 +0000 (14:12 +0100)] 
boost: add url lib

Boost.URL is a library for manipulating Uniform Resource Identifiers
(URIs) and Locators (URLs).

Signed-off-by: Christian Eggers <ceggers@arri.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agotiff: Add packageconfig knob for webp
Khem Raj [Fri, 6 Jan 2023 09:05:23 +0000 (01:05 -0800)] 
tiff: Add packageconfig knob for webp

tiff-native otherwise falsely detects webp if its installed on build
host. This ensures deterministic behavior regardless of host.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agosite/powerpc32-linux: Do not cache statvfs64 across glibc and musl
Khem Raj [Mon, 9 Jan 2023 01:02:53 +0000 (17:02 -0800)] 
site/powerpc32-linux: Do not cache statvfs64 across glibc and musl

Newer version of musl does not expose LFS64 interfaces, therefore
caching this is not right thing to do across both glibc and musl
moreover we will enable largefile support on glibc too therefore caching
it here is redundant.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agompg123: Enable largefile support
Khem Raj [Sun, 8 Jan 2023 02:30:47 +0000 (18:30 -0800)] 
mpg123: Enable largefile support

Disable lfs aliases since they are not needed when LFS is enabled

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agobusybox: rm temporary files if do_compile was interrupted
Antonin Godard [Mon, 9 Jan 2023 09:05:24 +0000 (09:05 +0000)] 
busybox: rm temporary files if do_compile was interrupted

To avoid working with undeterministic config files, remove all the
temporary files to start from scratch.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agobusybox: always start do_compile with orig config files
Antonin Godard [Mon, 9 Jan 2023 09:04:53 +0000 (09:04 +0000)] 
busybox: always start do_compile with orig config files

When compiling busybox a second time (e.g. with `compile -f`), busybox
can use an altered autoconf.h file for compiling, which can ultimately
produces different and unwanted binaries.

This can produce errors like this one:

ERROR: busybox-1.35.0-r0 do_package: Error executing a python function in exec_func_python() autogenerated:
The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_func_python() autogenerated', lineno: 2, function: <module>
     0001:
 *** 0002:ptest_update_alternatives(d)
     0003:
File: '…/poky/meta/classes/ptest.bbclass', lineno: 100, function: ptest_update_alternatives
     0096:        for alt_name, alt_link, alt_target, _ in alternatives:
     0097:            # Some alternatives are for man pages,
     0098:            # check if the alternative is in PATH
     0099:            if os.path.dirname(alt_link) in bin_paths:
 *** 0100:                os.symlink(alt_target, os.path.join(ptest_bindir, alt_name))
     0101:}
     0102:
     0103:do_configure_ptest_base[dirs] = "${B}"
     0104:do_compile_ptest_base[dirs] = "${B}"
Exception: FileExistsError: [Errno 17] File exists: '/bin/busybox.suid' -> '…/busybox/1.35.0-r0/package/usr/lib/busybox/ptest/bin/login'

This happens because ALTERNATIVE:busybox contains `/bin/login` twice,
initially that's because `/bin/login` is present in both
busybox.links.suid and busybox.links.nosuid. The reason for that is
because of the altered autoconf.h.

Steps to reproduce above error:

<add ptest to distro configs>
bitbake busybox -c clean
bitbake busybox -c package -f
bitbake busybox -c compile -f
bitbake busybox -c package -f

This patch guards against potential bugs by:

- making a backup of .config and autoconf.h that have matching
  timestamps.
- make sure do_compile always starts with these files.
- restore .config and autoconf.h at the end of do_compile.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agolinux-yocto/6.1: cfg: remove CONFIG_ARM_CRYPTO
Bruce Ashfield [Mon, 9 Jan 2023 00:39:01 +0000 (19:39 -0500)] 
linux-yocto/6.1: cfg: remove CONFIG_ARM_CRYPTO

This option is no longer required in 6.1+, so we grab the following
kernel-cache change:

    fa5b537b0e6 qemuarm: drop CONFIG_ARM_CRYPTO

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>