Backport the fix, it helps some ptests on meta-python packages
e.g. pydantic
(From OE-Core rev: 3bf9241787574bad15e685d8f956f33719bac749)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This patch copies the init.rb file to the tool testing directory in the
PTEST installation path during installation. This modification can address
the following errors:
BEGIN: /usr/lib64/ruby/ptest
/usr/lib64/ruby/ptest/tool/test/runner.rb:4:in `require_relative': cannot load such file -- /usr/lib64/ruby/ptest/tool/test/init (LoadError)
from /usr/lib64/ruby/ptest/tool/test/runner.rb:4:in `<top (required)>'
from ./test/runner.rb:5:in `require_relative'
from ./test/runner.rb:5:in `<main>'
(From OE-Core rev: 4f9fd1255d5a75e3597e6c8ab3fc243b17fca583)
Signed-off-by: Jiaying Song <jiaying.song.cn@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Changelog (https://cmake.org/cmake/help/latest/release/3.30.html#updates):
3.30.5
- The project(<PROJECT-NAME>) command now sets
<PROJECT-NAME>_SOURCE_DIR, <PROJECT-NAME>_BINARY_DIR, and
<PROJECT-NAME>_IS_TOP_LEVEL as non-cache variables only if they are
already set as non-cache variables when project() is invoked. Cache
entries by the same names are always set as before. This refines
3.30.3's behavior change to restore behavior of nested directories
that call project() with the same project name, and it addresses the
bug in the implementation introduced in 3.30.4.
3.30.4
- The project(<PROJECT-NAME>) command now sets
<PROJECT-NAME>_SOURCE_DIR, <PROJECT-NAME>_BINARY_DIR, and
<PROJECT-NAME>_IS_TOP_LEVEL as normal variables only if they are
already set as cache or non-cache variables when project() is
invoked. Cache entries by the same names are always set as before.
This refines 3.30.3's behavior change to restore behavior of nested
directories that call project() with the same project name, but the
implementation in this release is flawed (this release note has been
retoractively updated). It can result in different behavior between
the first and subsequent runs. Do not use CMake 3.30.4 if your
project contains nested calls to project() with the same project
name and you use these variables.
3.30.3
- The project(<PROJECT-NAME>) command now sets
<PROJECT-NAME>_SOURCE_DIR, <PROJECT-NAME>_BINARY_DIR, and
<PROJECT-NAME>_IS_TOP_LEVEL as normal variables in addition to
setting them as cache entries. This is needed to preserve support
for some FetchContent use cases under policy CMP0169's NEW behavior.
- The FindPython and FindPython3 modules now define, respectively, the
Python_DEFINITIONS and Python3_DEFINITIONS variables on Windows to
support development with the free threaded version of Python. The
INTERFACE_COMPILE_DEFINITIONS target property is also defined for
the various targets provided by these modules.
(From OE-Core rev: 9783c7af634e6bd3e29ef350f61b444c0c6087f5)
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Changelog:
===========
- tools: Use getopt
Implement and document option -h
- eeprog: Use force option when data comes from a pipe
- i2cdetect: Display more functionality bits with option -F
- i2cdump: Remove support for SMBus block mode
- i2cget: Document SMBus block mode
Fix the return code of option -h
- i2cset: Fix the return code of option -h
- i2ctransfer: Sort command line options and add to help text
Add an option to print binary data
Drop redundant variable arg_idx
- py-smbus: Install in the defined prefix
Use setuptools instead of distutils
(From OE-Core rev: e4b835e04bce4e3407d0b6e8e85da10d6391823e)
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
In embedded box, sed might be provided another providers like Busybox,
hence use generic options whenever possible.
/bin/sed -> /etc/alternatives/sed
/etc/alternatives/sed -> /bin/busybox.nosuid
Here used 'sed -u' option is not necessary, hence removed it.
Fixes below error:
sed: invalid option -- 'u'
Also added 'set -eux' option which halts execution of the script
on any failures.
(From OE-Core rev: 07caee1829d2a61bc018fe0e37ecd482922179ee)
Signed-off-by: Aditya Tayade <Aditya.Tayade@kpit.com>
Signed-off-by: Pawan Badganchi <Pawan.Badganchi@kpit.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
License-update: copyright years
Update 0001-Makefile.pre-use-qemu-wrapper-when-gathering-profile.patch
to only include tests that do not fail under qemu (following upstream
change that also no longer obscures failures).
Drop
0001-gh-107811-tarfile-treat-overflow-in-UID-GID-as-failu.patch
(backport)
0001-python3-use-cc_basename-to-replace-CC-for-checking-c.patch
(fixed upstream)
0020-configure.ac-setup.py-do-not-add-a-curses-include-pa.patch
(code completely rewritten upstream)
cgi_py.patch
(cgi and cgitb modules removed upstream)
Add fix-armv5.patch
(address armv5 crashes)
Modules removed in 3.13 (look for 'important removals'):
https://docs.python.org/3/whatsnew/3.13.html
Manifest updated accordingly.
Add an explicit dependency on libatomic (needed on mips
and ppc), as upstream has explicitly switched it off
in cross builds. It's a no-op on other targets.
Fcntl relocated to python3-core by the manifest script.
(From OE-Core rev: 0b49c9aa31279ecda565cc66b63d1d61723b37b8)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Update PYPI_PACKAGE to lowercase since that's what the upstream tarball
now uses.
ptest results:
|============================================================================
|Testsuite summary
|# TOTAL: 500
|# PASS: 447
|# SKIP: 53
|# XFAIL: 0
|# FAIL: 0
|# XPASS: 0
|# ERROR: 0
|DURATION: 2
|END: /usr/lib/python3-mako/ptest
|2024-10-22T17:30
|STOP: ptest-runner
|TOTAL: 1 FAIL: 0
Changelog (https://docs.makotemplates.org/en/latest/changelog.html):
- Fixed long standing bug where the sequence <& would be
misinterpreted by the lexer. It’s not clear why the ampersand
character was part of the characters being consumed here and it may
have been an inadvertent bit of code from one of Mako’s predecessor
languages.
References: #412
(From OE-Core rev: 3871ceb5927d4540e0a109d47d5a08a12a0d48a5)
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Changelog (https://hypothesis.readthedocs.io/en/latest/changes.html):
6.115.3 - 2024-10-16
- This patch fixes a regression from version 6.115.2 where generating
values from integers() with certain values for min_value and max_value
would error.
6.115.2 - 2024-10-14
- This release improves integer shrinking by folding the endpoint
upweighting for integers() into the weights parameter of our IR (issue
#3921). If you maintain an alternative backend as part of our (for now
explicitly unstable) Alternative backends for Hypothesis, this release
changes the type of the weights parameter to draw_integer and may be a
breaking change for you.
6.115.1 - 2024-10-14
- This patch improves the performance of from_type() with
pydantic.types.condate (issue #4000).
6.115.0 - 2024-10-12
- This improves the formatting of dataclasses and attrs classes when
printing falsifying examples.
6.114.1 - 2024-10-10
- This patch upgrades remaining type annotations to Python 3.9 syntax.
6.114.0 - 2024-10-09
- This release drops support for Python 3.8, which reached end of life
on 2024-10-07.
6.113.0 - 2024-10-09
- This release adds hypothesis.errors.BackendCannotProceed, an unstable
API for use by Alternative backends for Hypothesis.
6.112.5 - 2024-10-08
- This release fixes a regression where hypothesis.stateful.Bundle did
not work properly with flatmap functionality (issue #4128).
(From OE-Core rev: 0ab451304025f7fdad06345c73233daa47e4f8b9)
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This fixes the following runtime issue:
|root@qemux86-64:~# python3
|Python 3.12.6 (main, Sep 6 2024, 19:03:47) [GCC 14.2.0] on linux
|Type "help", "copyright", "credits" or "license" for more information.
|>>> import hypothesis
|Traceback (most recent call last):
| File "<stdin>", line 1, in <module>
| File "/usr/lib/python3.12/site-packages/hypothesis/__init__.py", line 29, in <module>
| from hypothesis.core import example, find, given, reproduce_failure, seed
| File "/usr/lib/python3.12/site-packages/hypothesis/core.py", line 44, in <module>
| from hypothesis import strategies as st
| File "/usr/lib/python3.12/site-packages/hypothesis/strategies/__init__.py", line 48, in <module>
| from hypothesis.strategies._internal.datetime import (
| File "/usr/lib/python3.12/site-packages/hypothesis/strategies/_internal/datetime.py", line 13, in <module>
| import zoneinfo
|ModuleNotFoundError: No module named 'zoneinfo'
(From OE-Core rev: 2a535f7ca6329fee98491251c282741d9d21febc)
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Changelog (https://github.com/pypa/trove-classifiers/releases):
2024.10.21.16
- chore: update calver to include hour (#191)
2024.10.14
- Add Django trove classifiers for 5 and upcoming 5.2 release. (#193).
We missed adding the generic `Framework :: Django :: 5`, and I'll add
5.2 since it will be released in a few months.
2024.10.13
- chore: update github actions (#192)
- chore: update release github actions
2024.10.12
- Update CMU to include SPDX in parentheses (#190)
2024.10.11
- Add classifier for MIT-CMU licence (#189)
(From OE-Core rev: 34d00a03c37c1691285b8e618eef833a5ed9ffe5)
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
The '-fdebug-prefix-map' options are used to map source files locations,
otherwise, DW_AT_comp_dir will contain buildpath.
The '-gno-record-gcc-switches' option is used to fix the buildpath introduced
by '-fintrinsic-modules-path' option, which is automatically added by fortran.
Here's some output from 'readelf --debug-dump libgfortran.so.5.0.0' when this
option is not added:
"""
<0><1a37d3>: Abbrev Number: 4 (DW_TAG_compile_unit)
<1a37d4> DW_AT_producer : (indirect string, offset: 0xd653): GNU Fortran2008 14.2.0 -m64
-march=core2 -mtune=core2 -msse3
-mfpmath=sse -mshstk -g -O2 -O2 -fstack-protector-strong -fimplicit-none
-fno-repack-arrays -fno-underscoring -fcf-protection=full
-fallow-leading-underscore -fbuilding-libgfortran -fPIC
-fintrinsic-modules-path /ala-lpggp72/qichen/Yocto/builds/build-poky/tmp/work/
core2-64-poky-linux/libgfortran/14.2.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux
/../../lib/x86_64-poky-linux/gcc/x86_64-poky-linux/14.2.0/finclude
-fpre-include=../../../../recipe-sysroot/usr/include/finclude/math-vector-fortran.h
"""
See https://gcc.gnu.org/pipermail/fortran/2024-October/061204.html for more
detailed information.
(From OE-Core rev: 1eb084956bcba83782bc2b24cf8cc89459a57e34)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Update to match the upstream repo name change and the renamed license file.
(From OE-Core rev: 43a2af6e4124a0f3949bfd9409b102987b2b2767)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Drop the gnutls patch since something equivalent was merged upsteam.
(From OE-Core rev: 3e1b5805906dc3b2f7c79d26224a7a732123af97)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
setup.cfg shows run-time dependency on python3-attrs>=19.2.0
3671b40691/setup.cfg (L30)
This was caught during testing ptests for python3-cryptography 43.0.1 upgrade.
(From OE-Core rev: 63b84cba8e6a3e65457ae47fda9cdda7e175db91)
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Previously the check for some recipes relied on sourceforge redirecting from
downloads.sourceforge.net (SRC_URI is set to that) into the actual project page.
Sourceforge does this for interactive browsers, but not for wget.
With the check no longer mimicking a browser, and being truthful
about coming from wget we need to explicitly fetch
the project page in all cases, which is what this commit does.
(many recipes already set this explicitly and don't need to be tweaked)
(From OE-Core rev: 4c21ce6e34f6ce8fbf4db7bc2fd017c8f7a811b4)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---- Result was:
{abcdefghj
01234} 0
---- Result should have been (exact matching):
{abcdefghj
} 1 01234 0
==== io-13.6 FAILED
This test is documented as failing on slow machines, so just skip it.
[ YOCTO #15407 ]
(From OE-Core rev: f69183586655294c9aed6687cebe57767c2f3eb8)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
While enabling multilib, build gcc-source-14.2.0 and lib32-gcc-source-14.2.0
at the same time:
$ MACHINE = "qemux86-64"
$ require conf/multilib.conf
$ MULTILIBS = "multilib:lib32"
$ DEFAULTTUNE:virtclass-multilib-lib32 = "x86"
$ bitbake gcc-source-14.2.0 lib32-gcc-source-14.2.0
...
$ cat tmp-glibc/work-shared/gcc-14.2.0-r0.vr2401/temp/log.task_order
20241012-064533.415426 do_recipe_qa (2688052): log.do_recipe_qa.2688052
20241012-064533.463783 do_recipe_qa (2688051): log.do_recipe_qa.2688051
20241012-064533.805164 do_fetch (2688257): log.do_fetch.2688257
20241012-064533.852955 do_fetch (2688256): log.do_fetch.2688256
20241012-064617.823714 do_unpack (2698542): log.do_unpack.2698542
20241012-064617.871730 do_unpack (2698541): log.do_unpack.2698541
...
There are two tasks for do_fetch, do_unpack and others, so there are race issues.
Both of them have the same hardcode 'gcc' prefix in ${WORKDIR} and
${S}, explicitly disable lib32-gcc-source-14.2.0 for multilib
Set gcc-source as BPN of gcc-source-14.2.0
(From OE-Core rev: 901c47877e0710af50639f688e0bfdb851b762b5)
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
pip3 package is missing the runtime dependency on tomllib. Add
python3-tomllib to the recipe's RDEPENDS. While at it: order the
dependencies alphabetically.
(From OE-Core rev: f0a932dfae5439d7cee2999455edaeb1b263befc)
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Changelog:
===========
- Trigger search modal on "Search docs" input focus
- Show hidden version in selector if it's the current active version
- Show version/language selectors below the title
- Docs: do not sign Git tag
- Docs: update the installation note
- Theme option flyout to enable/disable theme's flyout
- Populate html_context with READTHEDOCS_* environment variables
- Tests: sphinxdev tox environment installs Sphinx from master
- Docs: update releasing
- Adjust the expected test_basic output to match Sphinx 7.3+
- Addons: integrate with new beta addons flyout
- Remove html5shiv
- Remove Sphinx<5 compatibility leftovers
- Remove pytest warnings
(From OE-Core rev: 90c69e275ec1bd19cd67fac2ebb19faa436767c8)
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Changelog:
==============
- fix license expression error handling in tag-value parser
- spdx3: software_purpose: add REQUIREMENT type
- fix tag-value parser: parse Tool or Organization as annotator
- shorten output of FileNotFoundError when called via the CLI
- fix tag-value output when related_spdx_element_id is "NONE" or "NOASSERTION"
- catch decoding errors while parsing using the cli tool
- replace Licensing() with spdx_licensing
- spdx3: element_writer: switch from tab characters to two spaces
- fix tag-value parser to allow NONE and NOASSERTION for package source info as they are valid strings
- update changelog for 0.8.3 release
(From OE-Core rev: 04170316a0842f097ecca5b699512b551f20ad32)
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Changelog:
Fix deprecation warning from use of wheel.bdist_wheel.
(From OE-Core rev: 40daadb626f92a9af5c82a0c0242f8f153c70de4)
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
License-Update: Copyright year updated to 2024
Changelog:
===========
- Close the data attribute before reassigning it
- Floor division (//) does mathematical division with the floor function applied to the result.
- Update new dvrt type and Load Config filed adapt to Windows11
- fix PE.get_data
- Fix ambiguous string syntax for PEid parsing regexp
- fixed a memory leak that caused the pe file to be access locked.
- Exphash from sha256 to md5 to match imphash
- More readable calls to superclass
- Fix cache_adjust_FileAlignment to work with files not aligned to 0x200
- [StepSecurity] Apply security best practices
- Create sets using curly brackets
- Change IOError to OSError
- Apply isort to sort all imports
- Remove "OC Patch" comments
- Update tox.ini Python versions
- Use with statement to write to file
- Remove distutils use
- Use chaining comparison operators
- Replace list comprehension with set comprehension
- Use not in operator
- Replace base class name with super()
- Increase readability and consistency
- Tiny comment improvements
- Update oleaut32.py from oleaut32.dll
- Improve parse_rich_header
- Include ordinals for wsock32.dll
- Update ws2_32.py from ws2_32.dll
- Update pefile.py for typo
- Add parsing for IMAGE_DEBUG_TYPE_EX_DLLCHARACTERISTICS
(From OE-Core rev: 5cb8a606874d35f4e22e6ee9691bb3d9d281ce7c)
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Changelog:
===========
- tweak the paths in @example(...) patches, so that both git apply and patch will work by default.
- refactor internals of hypothesis.stateful.Bundle to have a more consistent representation internally.
- fixe an internal error when the __context__ attribute of a raised exception leads to a cycle
(From OE-Core rev: 87f033e8f86650a22c742c9c6f357469ebb29747)
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Changelog:
==============
- all templates: Drop wrong variant wrapping from all properties
- tests: Skip TestNetworkManager::test_one_wifi_with_accesspoints with NM >= 1.49.3
(From OE-Core rev: ee2216cb840879c52705b670ce6c8a9bfaa0a412)
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Fix pseudo with python 3.13 by adding a wrapper for posix_spawn and
fixing a NULL pointer dereference in envp handling it uncovered. This
fixes issues on Fedora 41.
(From OE-Core rev: d80e20d70d170397f9827c5a5fc75ad1f2e8cd94)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Switch to downloading the release tarballs from GitHub. Their CDN is
rock solid, and strace.io is hosted inside Russia which some networks
are blocking.
(From OE-Core rev: bbdbd6d943a64e5b0dae4c2ee705d017fb7ef80e)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>