summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2023-03-29setuptools3: adding sanity check to detect python-eggs installlocNg/bugfix_bug5725Loc Nguyen
Packages that install Python modules shouldn't be installing Eggs, as distro-managed modules should be "bare" Added a sanity check to verify if python modules will install Eggs. If yes, display a warning message to user. See [YOCTO #5725] for more details Signed-off-by: Loc Nguyen <loc.nguyen.wt@renesas.com>
2023-03-22rpm: fix RPM_ETCCONFIGDIR value in SDKChen Qi
The RPM_ETCCONFIGDIR should be some root directory instead of the etc directory as in patch 0002-Add-support-for-prefixing-etc-from-RPM_ETCCONFIGDIR-.patch RPM_ETCCONFIGDIR is used to prefix /etc. The regression was introduced in the following patch. """ nativesdk-rpm: export RPM_ETCCONFIGDIR and MAGIC in environment like RPM_CONFIGDIR """ The patch incorrectly set RPM_ETCCONFIGDIR, maybe because this variable's name is a little misleading. Note that this patch modifies both RPM_ETCCONFIGDIR and RPM_CONFIGDIR. The RPM_CONFIGDIR's value happened to be correct because of the ${libdir}, not $OECORE_NATIVE_SYSROOT. In fact, due to the substitution mechanism, the $OECORE_NATIVE_SYSROOT is empty. (From OE-Core rev: 2c6388e5bbf45a71891aa90047eef980d8a27c9d) 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>
2023-03-22lttng-modules: fix for v6.3+ kernelsBruce Ashfield
As part of updating linux-yocto-dev to v6.3, lttng-modules needs to have four backported patches to adjust for the new kernel version. These are safe for inclusion in the upcoming release, as they are version protected and provide some future proofing for folks trying to use newer kernels than our released 6.1. (From OE-Core rev: e9f0070631b032a143b765874a228674c19d0304) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-03-22lttng-modules: update to v2.13.9Bruce Ashfield
Bumping lttng-modules to version v2.13.9-4-g12f43cab, which comprises the following commits: da1f5a26 Version 2.13.9 dc2d1294 fix: jbd2: use the correct print format (v5.4.229) d04c1211 fix: jbd2 upper bound for v5.10.163 4b8864fc fix: jbd2: use the correct print format (v5.10.163) 69d3aa79 fix: btrfs: move accessor helpers into accessors.h (v6.2) We drop our previously backported commits as well, since they are part of the release. (From OE-Core rev: 79d8e93adde07ff3a4a239d66649ee566a2437d6) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-03-22mdadm: fix tests/00raid0Mingli Yu
Backport patch [1] to fix tests/00raid0. [1] https://git.kernel.org/pub/scm/utils/mdadm/mdadm.git/commit/?id=7539254342bc591717b0051734cc6c09c1b88640 (From OE-Core rev: baba79874444a9a55e787983a87408e9bc7ebea2) 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>
2023-03-22glibc: Disable warnings as errorsKhem Raj
As distro builders this option helps using different compilers to build glibc (From OE-Core rev: 4b082870d425b94cd2a7859d7d113d5c178b92b7) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-03-22mesa: update 22.3.5 -> 23.0.0Alexander Kanavin
Drop patches: 0001-gbm-backend-fix-gbm-compile-without-dri.patch 0001-freedreno-pm4-Use-unsigned-instead-of-uint-to-fix-mu.patch (backports) 0001-util-format-Check-for-NEON-before-using-it.patch (upstream submission has stalled with unanswered concerns from upstream; patch no longer applies; issue does not reproduce with 'raspberrypi0-wifi' MACHINE) (From OE-Core rev: cdb5d1662bd9df5e9137a52187c94792d2d3247d) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-03-22mesa: do not strip rpaths from dri driversAlexander Kanavin
This was needed back when we used upstream llvm-config which would add bogus rpaths into the drivers; nowadays it is replaced with a oe-specific wrapper. The particular reason is that mesa-native relies on having rpaths to work correctly (i.e. find other native libraries in the same sysroot location). (From OE-Core rev: 067e131b2183892b6e8ffc604b6bed0424637ae0) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-03-22llvm: allow building libllvm in native builds, subject to PACKAGECONFIGAlexander Kanavin
Also, enable that, if opengl is in native DISTRO_FEATURES: this allows mesa-native to build drivers that rely on libllvm, particularly llvmpipe, which is a (sort of) accelerated software renderer that is the only option on build hosts without dedicated or supported GPUs. (From OE-Core rev: ec22bfa67f6f1766102501d4593ce29aafe8c166) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-03-22mesa: enable a rich set of drivers for native buildsAlexander Kanavin
Without this, the only available driver would be swrast (without llvmpipe) which is far too slow to be practical, and so qemu wouldn't be able to perform accelerated graphics. The one major dependency pulled in by this change is llvm-native which takes just under three minutes on my machine. If this is undesitable, opengl can be removed from DISTRO_FEATURES_NATIVE. (From OE-Core rev: 98d5c382e55910870d7e86dc83e3b7c742ea54cd) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-03-22mesa: allow mesa-native/nativesdk only subject to opengl/vulkan DISTRO_FEATUREAlexander Kanavin
This prevents accidental builds of it when native/nativesdk opengl is not actually enabled (which may cause undesirable lengthening of dependency chains or build failures because those dependencies don't enable options required for mesa). (From OE-Core rev: 3daa991705c2c8e6e3d86a2c7e427f84176b31c2) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-03-22runqemu: direct mesa to use its own drivers, rather than ones provided by ↵Alexander Kanavin
host distro With mesa 23.0, it is not longer possible to use the host drivers, as mesa upstream has added strict checks for matching builds between drivers and libraries that load them. Add a check and a hint to runqemu so that there is a helpful error when there is no native/nativesdk opengl/virgl support. (From OE-Core rev: f0946844df7270fe368858d8929e6b380675b78b) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-03-22bitbake: fetch2: Add autorev warning when it is set too lateRichard Purdie
Bitbake expects a consistent metadata environment when it parses. There are plenty of ways you can set a recipe to autorev at a point where parts of the fetcher have already been triggered leading to obsure bugs which I struggled to debug, let alone anyone not familar with the code. If anyone is running into the message from the commit, the issue is likely one of timing. Keep in mind that the anonymous python code in base.bbclass will expand variables like FILESPATH, WORKDIR and others which contain PV. The recipe needs to be set to AUTOREV before that anonymous python runs. In particular, that means you can't set SRCREV = "${AUTOREV}" in other anonymous python, it needs to happen earlier. (Bitbake rev: 4d9ec332d5bfc8b60b54f8ec2a17d34e35aa903a) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-03-22bitbake: fetch2: Rename __BBSEENSRCREV -> __BBSRCREV_SEENRichard Purdie
For readability of following patches, rename this internal variable to allow for others in a similar format. (Bitbake rev: 450b4a00895ed1f9396a8ff859dc1cc0eccc838f) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-03-22oeqa: loader.py: show warning when skipping selected module and abort if all ↵Martin Jansa
are skipped * skipped modules were triggering an ERROR before: poky $ oe-selftest -v -r eSDK.oeSDKExtSelfTest.test_install_libraries_headers imagefeatures.ImageFeatures.test_image_gen_debugfs -K -B /OE/build/poky/build-eSDK 2023-03-13 15:07:53,430 - oe-selftest - ERROR - Not found eSDK.oeSDKExtSelfTest.test_install_libraries_headers in loaded test cases * but didn't show the reason why it wasn't loaded and more importantly -r was ignored when all selected modules were silently skipped * add a warning when skipping some module and abort if some modules were selected, but all ended being skipped: poky $ oe-selftest -v -r eSDK.oeSDKExtSelfTest.test_install_libraries_headers -K -B /OE/build/poky/build-eSDK 2023-03-13 15:11:51,028 - oe-selftest - WARNING - module 'eSDK.oeSDKExtSelfTest.test_install_libraries_headers' was skipped from selected modules, because it doesn't match with module name assumptions: package and module names do not contain upper case characters, whereas class names do 2023-03-13 15:11:51,028 - oe-selftest - ERROR - All selected modules were skipped, this would trigger selftest with all tests and -r ignored. * I was hit by this in oe-selftest -r eSDK.oeSDKExtSelfTest.test_install_libraries_headers which is skipped due to upper case characters in module name and selftest started to run all tests (archiver.Archiver.test_archiver_allows_to_filter_on_recipe_name as first from 529) poky $ oe-selftest -v -r eSDK.oeSDKExtSelfTest.test_install_libraries_headers -K -B /OE/build/poky/build-eSDK 2023-03-13 14:00:52,955 - oe-selftest - DEBUG - Selected tests with -r: ['eSDK.oeSDKExtSelfTest.test_install_libraries_headers'] 2023-03-13 14:00:55,531 - oe-selftest - INFO - Changing cwd to /OE/build/poky/build .. 2023-03-13 14:00:58,128 - oe-selftest - INFO - test_archiver_allows_to_filter_on_recipe_name (archiver.Archiver.test_archiver_allows_to_filter_on_recipe_name) I'll rename eSDK to esdk in next commit to avoid this. * also fix small typo in context I've noticed when debugging this (From OE-Core rev: 15229c9abaf4cc398c31d97d171b9fac57141873) 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>
2023-03-22selftest: imagefeatures.py: respect IMAGE_LINK_NAME for debugfs and manifest ↵Martin Jansa
as well * these cases were correctly respecting IMAGE_LINK_NAME in most tests * the only exception was relatively wide glob for manifest: "test-empty-image-*.manifest" * and even wider glob for -dbg: "*-dbg.rootfs.tar.bz2" * replace them with the exact filename we expect for given image * be aware that gzip won't accept the symlink in IMAGE_LINK_NAME causing: 2023-03-13 08:58:23,845 - oe-selftest - INFO - ... FAIL 2023-03-13 08:58:23,845 - oe-selftest - INFO - Traceback (most recent call last): File "/OE/build/poky/meta/lib/oeqa/selftest/cases/imagefeatures.py", line 124, in test_bmap self.assertTrue(runCmd('gzip -t %s' % gzip_path)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/OE/build/poky/meta/lib/oeqa/utils/commands.py", line 214, in runCmd raise AssertionError("Command '%s' returned non-zero exit status %d:\n%s" % (command, result.status, exc_output)) AssertionError: Command 'gzip -t /OE/build/poky/build/build-st-2023-03-12-todo-patch2/imagefeatures.ImageFeatures.test_bmap/build-st/tmp/deploy/images/qemux86-64/core-image-minimal-qemux86-64.rootfs.ext4.bmap.gz' returned non-zero exit status 1: gzip: skipping: /OE/build/poky/build/build-st-2023-03-12-todo-patch2/imagefeatures.ImageFeatures.test_bmap/build-st/tmp/deploy/images/qemux86-64/core-image-minimal-qemux86-64.rootfs.ext4.bmap.gz is a symbolic link * and "*-dbg.rootfs.tar.bz2" doesn't work if IMAGE_NAME_SUFFIX is changed to anything else than ".rootfs" or moved into IMAGE_LINK_NAME (like I plan in future changes where this will need to be updated again). Luckily we can use the symlink which currently doesn't have IMAGE_NAME_SUFFIX nor the DATETIME, so we don't need to search for it with glob, e.g. currently: core-image-minimal-qemux86-64-dbg-20230313112546-dbg.rootfs.tar.bz2 core-image-minimal-qemux86-64-dbg.tar.bz2 -> core-image-minimal-qemux86-64-dbg-20230313112546-dbg.rootfs.tar.bz2 [YOCTO #12937] (From OE-Core rev: 39285e981343930e41afe4eb8f2db675a85d54c2) 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>
2023-03-22runqemu: get_first_file() rename cmd* to glob*Martin Jansa
* to better indicate how it's used in get_first_file * cmd* is used in other places for actual shell commands to execute * RunQemuError('KERNEL not found: %s, %s or %s' % cmds) also looked weird to me, but that works (to my python-noob surprise) [YOCTO #12937] (From OE-Core rev: 7c26e9dcc999a7d6a365831c39d25d98890be6d0) 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>
2023-03-22selftest: minidebuginfo.py respect IMAGE_LINK_NAMEMartin Jansa
* use IMAGE_LINK_NAME instead of hardcoding core-image-minimal-${MACHINE} assumption [YOCTO #12937] (From OE-Core rev: 9f8ffe22d9bb7cd93b9bc9ece917a48b27ab22d3) 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>
2023-03-22selftest: gdbserver.py: respect IMAGE_LINK_NAMEMartin Jansa
* use IMAGE_LINK_NAME instead of hardcoding core-image-minimal-${MACHINE} assumption [YOCTO #12937] (From OE-Core rev: 3ee65ecdf841d74e2767d620e7f4a62e3a8863dc) 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>
2023-03-22image-artifact-names: add IMAGE_MACHINE_SUFFIX variableMartin Jansa
* to make it easier for projects to avoid default -${MACHINE} suffix if the ${MACHINE} named DEPLOY_DIR_IMAGE works better for them * also use IMAGE_LINK_NAME in IMAGE_NAME to make it more clear that IMAGE_NAME is the same as IMAGE_LINK_NAME but with version suffix * adding it as separate variable helps us to catch the cases where we didn't respect ${IMAGE_LINK_NAME} variable and just used the common default ${IMAGE_BASENAME}-${MACHINE}. [YOCTO #12937] (From OE-Core rev: 6e82c394e98d57a2fe73e547922477cd6b0620f9) 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>
2023-03-22selftest: fitimage.py: respect INITRAMFS_IMAGE_NAME and KERNEL_FIT_LINK_NAMEMartin Jansa
* use these variables instead of assuming: "fitImage-its-%s-%s-%s" % (image_type, machine, machine) notice that these files have no extension and the -machine suffix is duplicated (once from core-image-minimal and once from kernel-fitimage.bbclass:kernel_do_deploy:append through KERNEL_FIT_LINK_NAME which is MACHINE by default: KERNEL_FIT_NAME ?= "${KERNEL_ARTIFACT_NAME}" KERNEL_FIT_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}" KERNEL_ARTIFACT_NAME ?= "${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}" KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}" [YOCTO #12937] (From OE-Core rev: d6e52428ca25d9b6ec2a52406f2d1859d05867d3) 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>
2023-03-22image-artifact-names.bbclass: add INITRAMFS_IMAGE_NAME from kernel.bbclassMartin Jansa
* move it from kernel.bbclass, because it needs to stay in sync with IMAGE_LINK_NAME structure * image-artifact-names.bbclass is also inheritted from kernel-artifact-names.bbclass so every recipe which needs this variable probably already inherits one of these * fixes kernel-fitimage.bbclass with modified IMAGE_LINK_NAME [YOCTO #12937] (From OE-Core rev: 432d0df0d771c8f0bef1e855ac6b0011b2c3cad2) 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>
2023-03-22selftest: runqemu: respect IMAGE_LINK_NAMEMartin Jansa
* don't assume that every built image is named: <recipe>-<machine>.<suffix> [YOCTO #12937] (From OE-Core rev: d3c1c983d062f0731610f4a6984126ec6dab8caf) 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>
2023-03-22selftest: wic: respect IMAGE_LINK_NAME also in test_rawcopy_plugin_qemuMartin Jansa
* this one is more tricky, because the test_rawcopy_plugin.wks.in file is used while building core-image-minimal-mtdutils, but the image filename inside wks.in is from core-image-minimal, so we cannot just let bitbake expand IMAGE_LINK_NAME, use separate variable set in the same config fragment IMAGE_LINK_NAME_CORE_IMAGE_MINIMAL [YOCTO #12937] (From OE-Core rev: 8864ee825fdc52fe7a8cf93876c81c639fba66f4) 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>
2023-03-22selftest: wic: respect IMAGE_LINK_NAMEMartin Jansa
* use IMAGE_LINK_NAME instead of hardcoding core-image-minimal-${MACHINE} assumption [YOCTO #12937] (From OE-Core rev: d6151aeb1e8f6162113b1123fa0f162536e48a44) 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>
2023-03-22selftest: devtool: set BB_HASHSERVE_UPSTREAM when setting SSTATE_MIRRORMartin Jansa
* with my build/conf/local.conf: SSTATE_DIR = "/OE/build/poky/build/sstate-cache" these devtool tests will first set own SSTATE_DIR and the original one set as SSTATE_MIRROR: 2023-03-11 11:51:46,837 - oe-selftest - INFO - test_devtool_update_recipe_append (devtool.DevtoolUpdateTests.test_devtool_update_recipe_append) 2023-03-11 11:51:46,846 - oe-selftest - DEBUG - Appending to: /OE/build/poky/build/build-st-2023-03-11-patch2/devtool.DevtoolUpdateTests.test_devtool_update_recipe_append/build-st/conf/selftest.inc SSTATE_DIR = "/OE/build/poky/build/build-st-2023-03-11-patch2/devtool.DevtoolUpdateTests.test_devtool_update_recipe_append/build-st/sstate_devtool" SSTATE_MIRRORS += "file://.* file:////OE/build/poky/build/sstate-cache/PATH" * but that unfortunately leads to a warning from sanity.bbclass about SSTATE_MIRRORS without matching BB_HASHSERVE, because BB_HASHSERVE is set to "auto" by default these tests failing with: 2023-03-11 11:55:39,610 - oe-selftest - INFO - ====================================================================== 2023-03-11 11:55:39,610 - oe-selftest - INFO - FAIL: test_devtool_update_recipe_append_git (devtool.DevtoolUpdateTests.test_devtool_update_recipe_append_git) 2023-03-11 11:55:39,610 - oe-selftest - INFO - ---------------------------------------------------------------------- 2023-03-11 11:55:39,611 - oe-selftest - INFO - Traceback (most recent call last): File "/OE/build/poky/meta/lib/oeqa/selftest/cases/devtool.py", line 1118, in test_devtool_update_recipe_append_git self.assertNotIn('WARNING:', result.output) AssertionError: 'WARNING:' unexpectedly found in 'NOTE: Starting bitbake server...\nWARNING: You are using a local hash equivalence server but have configured an sstate mirror. This will likely mean no sstate will match from the mirror. You may wish to disable the hash equivalence use (BB_HASHSERVE), or use a hash equivalence server alongside the sstate mirror.\nLoading cache...done.\nLoaded 0 entries from dependency cache.\nParsing recipes...done.\nParsing of 947 .bb files complete (0 cached, 947 parsed). 1764 targets, 52 skipped, 0 masked, 0 errors.\n\nSummary: There was 1 WARNING message.\nINFO: Updating SRCREV in recipe mtd-utils-selftest_git.bb\nNOTE: Writing append file /tmp/devtoolqa1m2lh02v/layer/recipes-devtools/mtd/mtd-utils-selftest_git.bbappend' ---------------------------------------------------------------------- * just setting BB_HASHSERVE to empty doesn't work, because then we would need to disable OEEquivHash as well as it fails with: ERROR: OEEquivHash requires BB_HASHSERVE to be set (From OE-Core rev: 96d4392ee9c5c3674e5c4c4512f527a2ca6765e4) 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>
2023-03-21poky-bleeding: Update and reworkRichard Purdie
This distro setting has bitrotted quite badly but the idea remains a good one. Try and improve things by: * using a class and a list of recipes to make things more readable * drop settings for recipes which no longer use git * drop obsolete PREFERRED_VERSION settings * add a provider switch to use linux-yocto-dev * reword to avoid "package" confusion with recipe The distro then builds and highlighted a number of matchbox issues which other patches address and improve. (From meta-yocto rev: 00e974484d771dd015af1f2c0c547135555d24d0) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-03-21bitbake: toaster: update fixtures for mickledoreTim Orling
After updating gen_fixtures.py for 'mickledore' 4.2, run './gen_fixutures.py --all' to update oe-core.xml and poky.xml. Drop langdale as support is ending soon. (Bitbake rev: 282a3d618b565a60b8734ca0fb710db93023b5c8) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-03-21bitbake: toaster: update gen_fixtures.py for mickledoreTim Orling
Update for 'mickledore' 4.2.0 release and bitbake 2.4 branching. Drop 'langdale' as support will be ending soon. Update stable branches to latest patch release. (Bitbake rev: b01d369f6d6cccf77b23017ff343820d800d5621) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-03-21bitbake: build: Make python output print to stdout when running with -v ↵Mark Asselstine
(verbose) When tasks are run with -v (verbose) on the bitbake commandline, shell tasks print their stdout, python tasks do not. This change redirects the python task's print output to an in memory buffer. After the task is executed the output is printed to stdout via the logger. This makes the python task behavior match the shell task behavior when running with -v. The contents of the task's log files remain unchanged after this change. This approach should keep the correct order in most cases, however, if the python task accesses the logger directly, that content will appear before other output. On the other hand, this change should negate the need for python tasks to access the logger directly. Special care is taken to save/restore the existing stdout and stderr and preventing sending output directly to the logger when there are "recursive" calls, for instance when a python function calls a shell function, avoiding printing things potentially out of order and/or multiple times. The logging-test.bb in meta-selftest can be used to review this change. This has been tested with the full bblogging oeqa tests. [Yocto #14544] (Bitbake rev: 81a58647b2f4fc0a2589b2978fc9d81b2bfe6aec) Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-03-21tcf-agent: Update to current versionMark Hatle
While there has not been an official release in some time, the latest version fixes a large number of bugs and adds support for Dwarf 5, among other things. (Dwarf 5 is default in gcc 12 and newer.) Short change log since the last version: TCF Agent: Narrow down LoadLibrary search scope TCF Agent: faster breakpoint planting Bug 581214 - Expression evaluation fails for a data member that is defined in a structure, union or class that is of type DW_AT_data_bit_offset attribute (DWARF5) TCF Agent: reduced memory footprint TCF Agent: fixed build error on CygWin: CYGWIN_VERSION_CYGWIN_CONV undefined TCF Agent: workaround for GCC compilation error: function may return address of local variable Bug 581034 - "long long int" data type can't be recognized from dwarf5 debug info generated by llvm15 TCF Agent: Removal of unused variable causing clang-15 build error TCF Agent: fixed: malformed HTTP request can crash the agent TCF Agent: fixed assertion failure in the Breakpoints service TCF Agent: GDB Remote Serial Protocol: fixed handling of process ID 0 Bug 580644 - steps into the function of shared library does not work on PPC TCF Agent: add PowerPC 32-bit and big-endian builds in the Dockerfile TCF Agent: check glibc version when calling pthread_setname_np() Bug 580600 - -Wmisleading-indentation issue for gcc version less than 6.0 Bug 580489 - failed to handle .debug_rnglists section sometimes Bug 580450 - failed to read the full compilation unit tag in dwarf 5 when customized sections Bug 580414 - failed to handle debug sections for DWARF 5 Bug 580326 - Can not display the type of global variable defined in a sharedlib Fixed text formatting in Makefile.inc Bug 580279 - VERSION grep in agent/Makefile.inc need update for vxWorks Bug 580089 - pid2id() failed to get a right id TCF Agent: improved comments TCF Agent: a few more asserts TCF Agent: improved X86 disassembler Bug 580002 - [tcf-dev] Speedup compute_reverse_lookup_indices Bug 579989 - compile error by vs2008 on windows TCF Agent: improved X86 disassembler Bug 579947 - NULL pointer caused the tcf-server crashed when load ELF file that compiled by LLVM 14 with dwarf-5 TCF Agent: fixed Coverity warning TCF Agent: fixed Coverity warning TCF Agent: new function in HTTP server API: closed() call-back Merge "TCF Agent: Fix potential memory/resource leaks" TCF Agent: Fix potential memory/resource leaks TCF Agent: Fix unsafe strcpy TCF Agent: Respect certain ENABLE_* macros Bug 579412 - incorrect or missing copyright information TCF Agent: Lazy PC initialization Bug 579362 - the process IDs should be pid_t instead of UINT32 in waitpid.c and waitpid.h files Bug 579378 - update copyright year to 2022 Bug 579274 - unknown option -Wmisleading-indentation issue for gcc version less than 6.0 TCF Agent: ARM v8 stack crawl: fixed handling of ERET instruction TCF Agent: fixed handling of line info file names when file contains a mix DWARF 5 and DWARF 3 TCF Tests: fixed incorrect error reports in DWARF reader test TCF Agent: disabled bogus warnings misleading-indentation TCF Agent: fixed handling of line info file names in DWARF 5 TCF Agent: Expressions: fixed handling of a static field of a struct stored in a register TCF Agent: fixed error when building with c++-11 TCF Agent: DWARF 5: improved handling of location expressions TCF Agent: DWARF reader: fixed regression - "FORM_FLAG expected" error TCF Agent: DWARF reader: new object flag DOIF_inlined TCF Tests: improved tests of var declarations TCF Agent: fixed regression: memory corruption in the symbols proxy TCF Agent: fixed issues with handling GCC-11 debug info TCF Agent: fixed warning: ISO C90 forbids mixed declarations and code TCF Agent: Fix stack frame cleanup on error TCF Agent: Add missing parentheses Bug 578201 - Sometimes variables show as "N/A - Cannot read target memory. Input/output error" Bug 577936 - dprintf not work as expected TCF Agent: lazy initialization in rand32() TCF Agent: new API function: rand32() TCF Agent: fixed possible buffer overflow when calling fscanf() Bug 577174 - Sometimes variables show as "N/A - Value of register is unknown in the selected frame" Bug 577064 - Union type variables don’t show correctly if based on a register TCF Agent: fixed: tmp_vprintf and loc_vprintf can segfault on Linux Bug 577001 - DW_AT_high_pc with DW_FORM_udata form not handled TCF Agent: fixed pthread_cond_timedwait() on Windows TCF Agent: Expressions service: improved error message (From OE-Core rev: 34a6d0e6b23a42fbec5507ab22a5574ad1d38111) Signed-off-by: Mark Hatle <mark.hatle@amd.com> Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-03-21maintainers.inc: Modify email addressZang Ruochen
zangrc.fnst@fujitsu.com -> zangruochen@loongson.cn (From OE-Core rev: 329ee6f881dd2d4cf9466948b41a78d044c2cc8f) Signed-off-by: Zang Ruochen <zangruochen@loongson.cn> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-03-21python3-jsonpointer: rewrite testingRoss Burton
The tests installed by jsonpointer use unittest not pytest, so update the dependencies. Use the unittest runner in python3-unittest-automake-output to get the correct output. Apply a patch so the test suite doesn't run twice. (From OE-Core rev: 595086756c6f24762e08cde9f9ed3e1056976d98) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-03-21python3-webcolors: use python3-unittest-automake-outputRoss Burton
Instead of using sed to reformat the output use this new module. (From OE-Core rev: 88b320cfb38b69b2d9035d2300359ff3d0dbd598) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-03-21python3-wcwidth: use python3-unittest-automake-outputRoss Burton
Instead of using sed to reformat the output use this new module. (From OE-Core rev: 7da8728e0b566bb326092b88140c2d8207893738) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-03-21python3-pytz: use python3-unittest-automake-outputRoss Burton
Instead of using sed to reformat the output use this new module. (From OE-Core rev: 6be840f36c7ac06527714f7f083162eda4c14adf) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-03-21python3-pyasn1: : use python3-unittest-automake-outputRoss Burton
Instead of using sed to reformat the output use this new module. (From OE-Core rev: d83b60647bcbd32f57796085ed5f8e19c30e576a) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-03-21python3-pluggy: use python3-unittest-automake-outputRoss Burton
Instead of using sed to reformat the output use this new module. (From OE-Core rev: adfaaba9389e1e8459e58a3cab0f2bebc623c4f5) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-03-21python3-more-itertools: use python3-unittest-automake-outputRoss Burton
Instead of using sed to reformat the output use this new module. The tests also need the statistics module so add this missing dependency. (From OE-Core rev: 68cc7d5343ee3617fd708954f55f0f2fc29390b3) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-03-21python3-markupsafe: use python3-unittest-automake-outputRoss Burton
(From OE-Core rev: 721b5a81b176dd0f2aafb2fe3587d28df383eb7b) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-03-21python3-jinja2: use python3-unittest-automake-outputRoss Burton
Instead of using sed to reformat the output use this new module. (From OE-Core rev: def25193748fac40c4120e9a6e8861ae4c7ae760) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-03-21python3-hypothesis: use python3-unittest-automake-outputRoss Burton
Instead of using sed to reformat the output use this new module. (From OE-Core rev: 5ad1c8beebc09754b5c7fc637102553398a50fbd) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-03-21python3-cryptography: use python3-unittest-automake-outputRoss Burton
Instead of using sed to reformat the output use this new module. This shows that the previous sed expression wasn't sufficient because it didn't handle tests throwing an error, and now the bench/ tests fail because we don't have pytest-benchmark. These tests are more of a benchmark than a unit test, so just skip them. Also show a skip message instead of nothing if the tests were skipped due to a lack of memory. (From OE-Core rev: f22b60676159f729c081ba62fba4642629daa914) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-03-21python3-bcrypt: use python3-unittest-automake-outputRoss Burton
Instead of using sed to reformat the output use this new module. (From OE-Core rev: 6d81a8eeb42695c1d908a2ef9d60606c4eb7cf8f) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-03-21python3-atomicwrites: use python3-unittest-automake-outputRoss Burton
Instead of using sed to reformat the output use this new module. (From OE-Core rev: 66907e95cf1e174c76ee8c495af1596cc1f63718) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-03-21python3-unittest-automake-output: add new recipe for ptest integrationRoss Burton
This package contains modules for both unittest and pytest that alter the output to look like automake's 'make check' output, for better integration with ptest. (From OE-Core rev: 961e4f3fc786715fc136fa446686972a4a95a3d5) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-03-21python3: add missing -modules dependenciesRoss Burton
The python3-modules package should depend on zoneinfo, and gdbm if it was enabled. (From OE-Core rev: 0e0a5a635f44931dd490ae6a99548f05bd5205a8) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-03-21python3: missing ptest dependenciesRoss Burton
The tests need a broad set of locales and timezones to be installed. (From OE-Core rev: 372233d7ad22e45aa31db0d6c0e989393f116dfe) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-03-21python3-numpy: add missing dependency for the testsRoss Burton
(From OE-Core rev: 3056ddfd08962114b2ee2a52bc7d421efe01bf69) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-03-20ref-manual: variables.rst: update LAYERSERIES_COMPATMichael Opdenacker
- Replace by a reference to the description which was moved to the BitBake manual. - Also drop the reference to the Yocto Project Development Tasks Manual which doesn't add extra information on this variable. (From yocto-docs rev: 87cdda981fa6a3d05c559fb00e214214956346dc) Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>