summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2022-02-10linux-yocto-dev: update to v5.17+Bruce Ashfield
Bumping the -dev kernel to v5.17 to test the latest upstream kernel. (From OE-Core rev: c75b6116fae479abd2dbf0d5950e38a0b31b1832) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-10lttng-modules: fix build against v5.17+Bruce Ashfield
To fix the build against v5.17+ kernels, we backport 7 patches from the lttng-modules upstream repository. If a 2.13.2 lttng-modules release is done before the upcoming release, we'll obviously drop these patches. (From OE-Core rev: 4783a0fd9f86a0247a44b07bdb7e733e57c6664f) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-10qemuarm64: Add tiny ktype to qemuarm64 bspBruce Ashfield
Integrating the following commit(s) to linux-yocto/.: cf716c58bea qemuarm64: Add tiny ktype to qemuarm64 bsp (From OE-Core rev: b3962185d4278840193b8af9eff386860e8e5666) Signed-off-by: Alejandro Enedino Hernandez Samaniego <alhe@linux.microsoft.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-10meta: Remove libsegfault and catchsegvKhem Raj
Glibc has dropped them starting with 2.35 see [1] [1] https://sourceware.org/git/?p=glibc.git;a=commit;h=65ccd641bacea33be23d51da737c2de7543d0f5e (From OE-Core rev: 95c61d834596263ab1dd1fb1f8c8dbcc9104a935) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-10glibc: Upgrade to 2.35Richard Purdie
Package /usr/bin/ld.so in a separate package ld.so is a new tool which is added as a symlink to original dynamic linker so make it available with same name across architectures which is useful to leveral features like --preload, --audit, and --list-diagnostics more accessible to end users (From OE-Core rev: 2658dcbcfc3db814af1ee104303effc1b6cfa489) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-09newlib: fix license checksumsRoss Burton
COPYING.LIBGLOSS simply had the FSF street address change. COPYING.NEWLIB now includes BSD-3-Clause. (From OE-Core rev: 78080015b7d83f46770be718a22ffcfedd15daf2) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-08sstate: additional debugging when fetch fails occurAlexander Kanavin
Autobuilder has been showing things like: Checking sstate mirror object availability...ERROR: SState: cannot test file://universal/d9/bc/sstate:xz-native:x86_64-linux:5.2.5:r0:x86_64:8:d9bced04b194d5fc8d778eb8a0d674fa7375a42c8c50a9237e6d7672e9e7a00c_deploy_source_date_epoch.tar.zst: TimeoutError('timed out') ERROR: SState: cannot test file://37/a0/sstate:libgcc-initial:core2-64-poky-linux:11.2.0:r0:core2-64:8:37a0a5aec105a0822df098f15ff2b67d0e7220204742b5d2b1f7958dda6fa5ce_deploy_source_date_epoch.tar.zst: TimeoutError('timed out') ERROR: SState: cannot test file://universal/11/a4/sstate:libpciaccess-native:x86_64-linux:0.16:r0:x86_64:8:11a4d6c3a2e147ef7dd5f31c0ff2a91271dad49b561d8aa24849115081cf1842_deploy_source_date_epoch.tar.zst: TimeoutError('timed out') done. which is not helpful. To find out what really happened and where, the original traceback is needed too. (From OE-Core rev: 80a9052221fb2a12e7c652f2d1764101202fdb90) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-08python3-numpy: update 1.22.1 -> 1.22.2Alexander Kanavin
Replace an ad hoc fix via patch with an upstream one. (From OE-Core rev: 991f8617b9ca9680b3f81cb215e3b39095260e7c) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-08llvm: update 12.0.1 -> 13.0.1Alexander Kanavin
(From OE-Core rev: 99132e1163dd32168be3d02d27ce056b27f948b2) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-08insane.bbclass: use multiprocessing for collecting 'objdump -p' outputAlexander Kanavin
This was prompted by ltp's unreasonably long package_qa times; it has a massive amount of executables and insane runs objdump for all of them, serially. This reduces the time from 4 minutes to 1m20s on my machine. (From OE-Core rev: fac984b99fdb46949879516cb87153860f402c75) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-08gst-devtools: upgrade 1.18.5 -> 1.20.0Jose Quaresma
- Add new meson options (From OE-Core rev: 0b00410161e3a0d3c9a9631ae3544f42e36cc1b7) Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-08gstreamer1.0-python: upgrade 1.18.5 -> 1.20.0Jose Quaresma
- Add new meson options (From OE-Core rev: 31e41c11f987c7975a4cdf73657330bc0810962e) Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-08gstreamer1.0-omx: upgrade 1.18.5 -> 1.20.0Jose Quaresma
(From OE-Core rev: d36ba8fa5b0f6ad89b77a6e792a978a41e4cad4b) Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-08gstreamer1.0-vaapi: upgrade 1.18.5 -> 1.20.0Jose Quaresma
(From OE-Core rev: c9a1feccdf55cbdf8473da47233291a695af5459) Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-08gstreamer1.0-libav: upgrade 1.18.5 -> 1.20.0Jose Quaresma
- License update: The code actually is LGPLv2.1 but the COPYING file is wrong. https://gitlab.freedesktop.org/gstreamer/gst-libav/-/commit/678773bb6468e815c180ff82a09d863451e89ba8 - Drop backported patches 0001-gst-libav-fix-build-with-ffmpeg-5.0.0.patch - Add new meson options (From OE-Core rev: db058e8a8bad0d98f908062871832cc6824deaf2) Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-08gstreamer1.0-rtsp-server: upgrade 1.18.5 -> 1.20.0Jose Quaresma
- License update: The code actually is LGPLv2.1 but the COPYING file is wrong. https://gitlab.freedesktop.org/gstreamer/gst-rtsp-server/-/commit/cc5cdab0165e3bdf5f4f748b3ba2a3493d304e70 (From OE-Core rev: 453e72430cba0c4b78b95c6f0f792320e787b890) Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-08gstreamer1.0-plugins-ugly: upgrade 1.18.5 -> 1.20.0Jose Quaresma
- Add new meson options gpl: Allow build plugins that have GPL-licensed dependencies a52dec: Dolby Digital (AC-3) audio decoder plugin based on liba52 (GPL - only built if gpl option is also enabled!) cdio: CD audio source plugin based on libcdio (GPL - only built if gpl option is also enabled!) dvdread: DVD video source plugin based on libdvdread (GPL - only built if gpl option is also enabled!) mpeg2dec: MPEG 2 video decoder plugin based on libmpeg2 (GPL - only built if gpl option is also enabled!) x264: H.264 video encoder plugin based on libx264 (GPL - only built if gpl option is also enabled!) (From OE-Core rev: a4cac596625062cd22bd15079618d1310ad97673) Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-08gstreamer1.0-plugins-bad: upgrade 1.18.5 -> 1.20.0Jose Quaresma
- Remove meson options libmms ofa - Add new meson options gpl: Allow build plugins that have GPL-licensed dependencies faad: Free AAC audio decoder plugin (GPL - only built if gpl option is also enabled!) resindvd: Resin DVD playback plugin (GPL - only built if gpl option is also enabled!) x265: HEVC/H.265 video encoder plugin (GPL - only built if gpl option is also enabled!) - Add new meson options Feature options for plugins without external deps codecalpha aes: AES encryption/decryption plugin Feature options for plugins that need external deps asio: Steinberg Audio Streaming Input Output (ASIO) plugin gs: Google Cloud Storage source and sink plugin ldac: LDAC bluetooth audio codec plugin openaptx: Open Source implementation of Audio Processing Technology codec (aptX) plugin qroverlay: new elements that allow overlaying data on top of video in the form of a QR code onnx: ONNX neural network plugin (From OE-Core rev: 76433d3628cbad311b428a57b25b4e2701ee513b) Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-08gstreamer1.0-plugins-good: upgrade 1.18.5 -> 1.20.0Jose Quaresma
(From OE-Core rev: dea59f10285d364e8aa4c9dba51f181e192b2b6a) Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-08gstreamer1.0-plugins-base: upgrade 1.18.5 -> 1.20.0Jose Quaresma
- License update: The code actually is LGPLv2.1 but the COPYING file is wrong. https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/commit/e5382fe84ccaa17cad3569f2fd061ac0b499329c - Drop unneed patches 0004-glimagesink-Downrank-to-marginal.patch - Add new meson options qt5 is needed to build some tests tests/examples/gl/qt/meson.build tests/examples/overlay/meson.build (From OE-Core rev: 75891f361f3e9df9fc3e97c720a2ae57dda75888) Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-08gstreamer1.0: upgrade 1.18.5 -> 1.20.0Jose Quaresma
- License update: The code actually is LGPLv2.1 but the COPYING file is wrong. https://gitlab.freedesktop.org/gstreamer/gstreamer/-/commit/d157b23fb0ce175b167611a4cb019599d9017042 - Drop backported patches 0001-gst-gstpluginloader.c-when-env-var-is-set-do-not-fal.patch 0002-Remove-unused-valgrind-detection.patch 0003-tests-seek-Don-t-use-too-strict-timeout-for-validati.patch - Update submitted patches 0001-tests-respect-the-idententaion-used-in-meson.patch 0002-tests-add-support-for-install-the-tests.patch 0003-tests-use-a-dictionaries-for-environment.patch 0004-tests-add-helper-script-to-run-the-installed_tests.patch (From OE-Core rev: 366b33dc94b056899ce8c5736be15c70d2e94626) Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-08shaderc: upgrade 2021.4 -> 2022.0Jose Quaresma
- Update to Glslang 11.8.0 (From OE-Core rev: f82c2e9cc9037df6a2f43a3ce385985804758478) Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-08shaderc: upgrade 2021.3 -> 2021.4Jose Quaresma
- Support Vulkan 1.3 - Support targeting SPIR-V 1.6, which is the default for Vulkan 1.3 - Updated copyright check: Excludes Glslang generated files when building in source tree - Fix Android.mk rules for building libshaderc_combined, to adapt to more recent NDKs that have removed the GNU binutils. (From OE-Core rev: 638adda55af439db8917d22a335d461269a1f57a) Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-08glslang: upgrade 11.7.1 -> 11.8.0Jose Quaresma
* Add support for SPIR-V 1.6 * Add support for Vulkan 1.3 * Add --hlsl-dx-position-w option Update LICENSE.txt - Expand the GPL 3 with special bison exception to the fully expanded license. (From OE-Core rev: 2e76ddc70b3f3b7c40c61eab3945dfc883ffd6ad) Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-08spirv-tools: upgrade 2021.4 -> 2022.1Jose Quaresma
- General - Add SPIR-V 1.6 support to wasm build (#4674) - Improvements to disassembly within PassManager (#4677) - Basic support for SPIR-V 1.6 (#4663) - reflect debug (#4662) - Fix endianness of string literals (#4622) - Optimizer - spirv-opt: add pass to Spread Volatile semantics (#4667) - Fix constant propagation and folding of FClamp instructions (#4651) - Manually fold floating point division by zero (#4637) - Allow ADCE to remove dead inputs (#4629) - Linker - Linker improvements (#4679) * test/linker: Code factorisation and small tweaks * linker: Do not fail when going over limits - Validator - val: interface struct with builtins must be Block (#4665) - Fuzzer - Avoid id bound errors during opt fuzzing (#4658) - Avoid uninitialised read when parsing hex float (#4646) https://github.com/KhronosGroup/SPIRV-Tools/blob/b1877de5cd776117050bd42f08d04b52bce16099/CHANGES (From OE-Core rev: 17cfdd9e5193074d15ccdaff49dc76b3dc1904ab) Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-08spirv-headers: bump to b42ba6Jose Quaresma
(From OE-Core rev: 0add0aca1c5fe292d0993131a46c7448bfcc0596) Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-08icecc.bbclass: replace deprecated bash command substitutionJose Quaresma
- build some packages with icecc enabled is not supported because of the folling that disables the icecc: DEBUG: while parsing set_icecc_env, unable to handle non-literal command '$ICECC_CC' - it can be replicated with: bitbake make && bitbake make -c cleansstate && bitbake make -DD grep ICECC_CC tmp/log/cooker/qemux86-64/console-latest.log - bash command substitution backquote deprecated https://www.gnu.org/software/bash/manual/html_node/Command-Substitution.html https://mywiki.wooledge.org/BashFAQ/082 (From OE-Core rev: b4e3983f38af5a5484b33de43449ae85b7e4f104) Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-08toolchain-scripts.bbclass: use double quotes for exported PS1Kai Kang
Use double quotes("") rather than single quotes('') for PS1 in EXPORT_SDK_PS1 which will be exported in SDK environment file. Then it could set PS1 for SDK env with some variables in host env, such as the original PS1. The SDK PS1 could be some distinct words plus original PS1 rather than replace the whole original PS1. For example, it could set in local.conf with SDK_PS1 = "(oesdk) \${PS1}" then it just prepends '(oesdk) ' before original PS1 after source the SDK environment file. (From OE-Core rev: e13e657dabcabd97f50794e7375777ef5ad883c8) Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-08mdadm: install mdcheckChen Qi
This script is used in mdcheck_xxx.service files. So we need to install it. Also, as it requires bash, we add bash to RDEPENDS. (From OE-Core rev: 0942b161252fc70c65d46754b44bfebe75cf8c09) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-08git: restore reproducibility on centos 7Alexander Kanavin
(From OE-Core rev: edeb2a1a4cfd16706da6815af198d133a94b5ac6) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-07runqemu: preload uninative libraries when host gl drivers are in useAlexander Kanavin
Some of the host distributions build the drivers in a way (RPATH/RUNPATH) that tricks uninative loader into loading pieces of the host libc, if the same pieces haven't been previously loaded by native binaries. Mixing the two libc versions leads to failures. This change ensures that the correct (uninative) versions are always in use. (From OE-Core rev: 39c10816d5ec9d9c7952d786d7a3f942d25d0c27) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-07qemu: replace a gtk wrapper with directly setting environment from runqemuAlexander Kanavin
The wrapper is executed by host bash, and host bash refuses to run when pseudo libc is preloaded via LD_PRELOAD (which is the case when gl is enabled). Only the fontconfig setting is carried over as local testing showed that only that is necessary for the gui to look ok nowadays; adjust further if necessary. (From OE-Core rev: 34f152de14f803fcfe5c92c515bf585838bba10a) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-07binutils: Add fix for CVE-2021-45078Richard Purdie
Backport a fix for CVE-2021-45078. (From OE-Core rev: f3128fd1b2e5cbf3683dc69eabc56fbc0bd0e7d5) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-07vim: Upgrade 4269 -> 4134Richard Purdie
License text underwent changes on how to submit Uganda donations, switch from http to https urls and an update date change but the license itself is unchanged. Also, add an entry for the top level license file. This is also the vim license so LICENSE is unchanged but we should monitor it too. (From OE-Core rev: d195005e415b0b2d7c8b0b65c0aef888d4d6fc8e) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-07systemd: enable KeepConfiguration= when running on network filesystemPavel Zhukov
This fix boot from NFS for systemd enabled systems. Previously systemd-networkd dropped network configuration on exit from initrd even if there're NFS mount. [YOCTO #14708] (From OE-Core rev: afb6b1625a43d64eba090f0f4c5e231d87df7833) Signed-off-by: Pavel Zhukov <pavel.zhukov@huawei.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-07spdx: Add set helper for list propertiesJoshua Watt
This adds the set helper for list properties to allow list members to be replaced with a new list. This is necessary as it is (currently) the only way to replace the default value for a list member. (From OE-Core rev: 8280b857c510646cd10167dd2ea9a0c2d5f1e800) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-07devtool: deploy-target: Remove stripped binaries in pseudo contextFlorian Amstutz
deploy-target may fail the second time with "pseudo abort" because devtool-deploy-target-stripped is deleted outside of pseudo's fakeroot context. (From OE-Core rev: 2338a33b690b0bbe279cde3f73764911b239cb50) Signed-off-by: Florian Amstutz <florian.amstutz@scs.ch> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-07common-licences: remove ambiguous "BSD" licenseRoss Burton
Our "BSD" license is the 3-clause BSD license, but many recipes were using "BSD" for any variation of the license. We've mostly moved recipes away from the vague "BSD" license to concrete names such as "BSD-3-Clause", so delete the BSD license to force the remaining users to update their license statements. [ YOCTO #14539 ] (From OE-Core rev: 14d4c007c49652d836d325a12bdbcd3bfa42e6d5) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-07classes/create-spdx: Remove unnecessary packageJoshua Watt
A superfluous package was being created, but it was never used. (From OE-Core rev: ddfa61f691fc51c1968e8f1ff43f69dccd1632ee) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-07classes/create-spdx: Add packageSupplier fieldJoshua Watt
Per NIST SBoM recommendations, include the Package Supplier field for all SPDX packages that are created. This field should generally be set to the person or organization that is performing the build, since they would be considered the "supplier" of the SPDX packages. (From OE-Core rev: ca48349501e0ec93dc2448d064e1567fca390bf5) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-07newlib: Upgrade 4.1.0 -> 4.2.0Alejandro Hernandez Samaniego
(From OE-Core rev: 668445252fa96bd00ecdef1f610707a132eb35fc) Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-07systemd: Minimize udev package size if DISTRO_FEATURES doen't contain sysvinitStefan Herbrechtsmeier
Link udev shared with systemd helper to minimize the udev package size if DISTRO_FEATURES doesn't configure sysvinit to be used. It is only usefull to link udev static with systemd helper if udev should be installed without systemd such as a mixed sysvinit and systemd environment [RP: Fixed to use sysvinit distro feature instead of systemd] (From OE-Core rev: 061cae73e2617dff62962fac131ff62d401e500c) Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-07systemd: Add link-udev-shared PACKAGECONFIGStefan Herbrechtsmeier
Add a PACKAGECONFIG to link systemd-udev and its helpers to libsystemd-shared.so. If enabled the udev package depends on the systemd package. (From OE-Core rev: 2e854402a899c26e25bd0edc198b40fe45fc6c7d) Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-07cve-check: create directory of CVE_CHECK_MANIFEST before copyStefan Herbrechtsmeier
Create directory of the CVE_CHECK_MANIFEST variable before copy to it, so that the variable can use an arbitrary directory name. (From OE-Core rev: 9829c16301bf2dce39fa046401a984f112fa0322) Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-05bitbake: fetch2: npm: Put all downloaded files in the npm2 directoryPeter Kjellerstedt
Previously npm files that specify downloadfilename= in the SRC_URI would be downloaded to the root of ${DL_DIR} rather than in the ${DL_DIR}/npm2 directory where all other npm files are downloaded. This should make it simpler when setting up and configuring a premirror with the downloaded npm packages. (Bitbake rev: 73fa376d6502ab6f2cccfb25a1193d9b1c3c3bc8) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-05bitbake: fetch2: Correct handling of replacing the basename in URIsPeter Kjellerstedt
The solution implementated in commit 96c30007 (fetch2: fix downloadfilename issue with premirror) missed two corner cases. The first is if the basename of the original URI also appears somewhere else in the replacement URI, in which case it would also be replaced. The second is if the basename of the original URI partially matches the basename of the replacement URI, in which case the inital part of the basename from the replacement URI would be left behind. The second case caused test_npm_premirrors_with_specified_filename to fail. The solution is to prefix the basename with a slash when matching to avoid partial matches, and only replace the basename at the end of the URI. This also adds two test cases that test for these problems. Before this they would give the following errors: - ['file:///mirror/example/1.0.0/some-example-1.0.0.tgz;downloadfilename=some-example-1.0.0.tgz'] + ['file:///mirror/some-example-1.0.0.tgz/1.0.0/some-example-1.0.0.tgz;downloadfilename=some-example-1.0.0.tgz'] ? +++++ ++++++++++ - ['file:///mirror/some-example-1.0.0.tgz;downloadfilename=some-example-1.0.0.tgz'] + ['file:///mirror/some-some-example-1.0.0.tgz;downloadfilename=some-example-1.0.0.tgz'] ? +++++ (Bitbake rev: 5924c6f007519cd8ea6cc8b316814d17b43048ca) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-05bitbake: tests/fetch: Make test_npm_premirrors work with the current fetcherPeter Kjellerstedt
There are two totally opposite use cases for how a premirror is expected to behave in combination with specifying a downloadfilename= parameter in the SRC_URI. On the one hand there is the expectation that it works like any other mirror, which means the premirror is expected to contain a file with the original name specified in the SRC_URI. On the other hand there is the expectation that one can use the artefacts downloaded by bitbake in ${DL_DIR} as a premirror, in which case it is expected to contain a file with the name from the downloadfilename= parameter. The latter case has been how downloaded files have been handled until commit 8a3ff9f3 (fetch2: fix premirror URI when downloadfilename defined), where the fetcher was changed to store files as per the first case. This is also when the test_npm_premirrors test case was modified in commit 5ba191a0 (tests/fetch: add and fix npm tests) to expect the first case. The above change was later reverted in commit 96c30007 (fetch2: fix downloadfilename issue with premirror). However the test_npm_premirrors test case was not updated to match, and has been failing ever since. This has probably gone unnoticed because the npm related test cases require that npm is installed on the host. This commit updates test_npm_premirrors to expect that premirrors use the filenames specified by downloadfilename= as this matches the current fetcher implementation and also is the most likely use case for premirrors. It also tries to mimic how one typically might setup the premirror directory by simply copying the download directory. (Bitbake rev: 9e913ade70474aaeb928814d4763e7105569d63a) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-05bitbake: tests/fetch: Only set the Git user name/email if they are not ↵Peter Kjellerstedt
already set If they are set, assume they are correct. (Bitbake rev: a3a3a40b96c29051d97d0c96eb01784cbd1f5420) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-05bitbake: tests/fetch: Unify how git commands are runPeter Kjellerstedt
This unifies the three separate implementations of git() from GitMakeShallowTest, GitShallowTest and GitLfsTest into one implementation in FetcherTest. It also makes use of this in FetcherLocalTest and FetcherNetworkTest. (Bitbake rev: 8c8b418c3e6f8ab2535ad405e8006ee1012f3484) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-05bitbake: tests/fetch: Improve the verbose messages for skipped testsPeter Kjellerstedt
This changes: test_foo .. skipped 'Network tests being skipped' test_foo .. skipped 'npm not installed, tests being skipped' to: test_foo .. skipped 'network test' test_foo .. skipped 'npm not installed' to avoid double "skipped" in the output. (Bitbake rev: e551328a4595c220b94ab5002d978ddb4deeebcf) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>