Age | Commit message (Collapse) | Author |
|
Change a comment to reference our custom changes to the
sysconfig module, as dnf no longer uses distutils.
[YOCTO #14610]
Signed-off-by: Tim Orling <timothy.t.orling@intel.com>
|
|
In the comment it says we patch distutils modules, but we now are
patching sysconfig and not using disutils.
[YOCTO #14610]
Signed-off-by: Tim Orling <timothy.t.orling@intel.com>
|
|
distutils has been deprecated in Python 3.10 and is slated for removal
in Python 3.12 (~October 2023).
Refactor to use the newly imported bb.version.LooseVersion instead of
distutils.version.LooseVersion.
[YOCTO #14610]
Signed-off-by: Tim Orling <timothy.t.orling@intel.com>
|
|
Drop legacy python-config.patch
distutils is deprecated in Python 3.10 and will be removed in Python
3.12 (~October 2023).
Rather than wholesale import the distutils.sysconfig module, refactor
to replicate legacy distutils usage that we need.
This merges changes to get_python_inc from 12-distutils-prefix-is-inside-staging-area.patch
[YOCTO #14610]
Signed-off-by: Tim Orling <timothy.t.orling@intel.com>
|
|
Upstream dropped the now deprecated distutils:
18995d65 Remove distutils which are deprecated in python3.10 (RhBug:1950229)
Usage was replaced with sysconfig, which is in pyton3-core
[YOCTO #14610]
Signed-off-by: Tim Orling <timothy.t.orling@intel.com>
|
|
Refactor to use newly imported bb.version.LooseVersion
[YOCTO #14610]
Signed-off-by: Tim Orling <timothy.t.orling@intel.com>
|
|
distutils is deprecated in Python 3.10 with removal in Python 3.12
(~October 2023). Replace distutils.command.build_py with
setuptools.command.build_py.
There is still a check which decides to inherit setuptools3 vs distutils3
that will need to be refactored when we add pyproject.toml and setup.cfg
support for more modern PEP 517 packages.
Once distutils3.bbclass is dropped, any recipe inheriting distutils3
will throw a parsing error. The plan is to move distutils*.bbclasses to
meta-python. However if meta-python is not in bblayers, the parsing
error would still occur.
[YOCTO #14610]
Signed-off-by: Tim Orling <timothy.t.orling@intel.com>
|
|
Drop distutils3-base usage as it is now deprecated.
[YOCTO #14610]
Signed-off-by: Tim Orling <timothy.t.orling@intel.com>
|
|
Refactor to use newly imported bb.version.LooseVersion
and replace `import distutils.sysconfig` with 'import sysconfig`.
https://www.python.org/dev/peps/pep-0632/#id23
[YOCTO #14610]
Signed-off-by: Tim Orling <timothy.t.orling@intel.com>
|
|
No longer depend on python3-distutils, current versions of setuptools
vendor as _distutils.
[YOCTO #14610]
Signed-off-by: Tim Orling <timothy.t.orling@intel.com>
|
|
[YOCTO #14610]
Signed-off-by: Tim Orling <timothy.t.orling@intel.com>
|
|
[YOCTO #14610]
Signed-off-by: Tim Orling <timothy.t.orling@intel.com>
|
|
The use of distutils.version.LooseVersion to check for GitPython > 0.3.1
is not really needed anymore since any supported distribution has at least
1.0.0 (centos-7 via epel7, debian-9, ubuntu-16.04)
If we want to reinstate this check, alternatives would be to require
python3-packaging on all hosts and use packaging.version.Version or
use an imported LooseVersion in bb.version.
[YOCTO #14610]
Signed-off-by: Tim Orling <timothy.t.orling@intel.com>
|
|
[YOCTO #14610]
Signed-off-by: Tim Orling <timothy.t.orling@intel.com>
|
|
[YOCTO #14610]
Signed-off-by: Tim Orling <timothy.t.orling@intel.com>
|
|
[YOCTO #14610]
Signed-off-by: Tim Orling <timothy.t.orling@intel.com>
|
|
[YOCTO #14610]
Signed-off-by: Tim Orling <timothy.t.orling@intel.com>
|
|
[YOCTO #14610]
Signed-off-by: Tim Orling <timothy.t.orling@intel.com>
|
|
[YOCTO #14610]
Signed-off-by: Tim Orling <timothy.t.orling@intel.com>
|
|
What was distutils-common-base has been merged into setuptools3-base,
since we no longer need to support python2 and python3.
[YOCTO #14610]
Signed-off-by: Tim Orling <timothy.t.orling@intel.com>
|
|
[YOCTO #14610]
Signed-off-by: Tim Orling <timothy.t.orling@intel.com>
|
|
[YOCTO #14610]
Signed-off-by: Tim Orling <timothy.t.orling@intel.com>
|
|
[YOCTO #14610]
Signed-off-by: Tim Orling <timothy.t.orling@intel.com>
|
|
Refactor to new SETUPTOOLS_* variables
[YOCTO #14610]
Signed-off-by: Tim Orling <timothy.t.orling@intel.com>
|
|
Signed-off-by: Tim Orling <timothy.t.orling@intel.com>
|
|
distutils has been deprecated in Python 3.10 and will be removed in
Python 3.12 (predicted release date October 2023).
Add a warning now that recommends using the roughly equivalent
setuptools-* classes.
[YOCTO #14610]
Signed-off-by: Tim Orling <timothy.t.orling@intel.com>
|
|
This patch was mentioned upstream a long time ago:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47256
Changes from gcc 10 onward mean it is no longer needed as mentioned in the
above bug report. Drop the patch.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
Larger systems may have large numbers of cores, but beyond a certain
point they can't all be used for compiling: whilst purely
compute-intensive jobs can be parallelised to hundreds of cores,
operations such as compressing (needs lots of RAM) or compiling (lots of
I/O) don't scale linearly.
For example, the Marvel ThunderX2 has 32 cores, each capable of
executing four threads, and can be configured with two sockets, making
256 CPUs according to Linux. Zstd using 256 threads has been seen to
fail to allocate memory during even small recipes such as iso-codes.
Add a default cap of 64 CPUs to the cpu_count() method so that extreme
parallisation is limited. 64 is high enough that meaningful gains
beyond it are unlikely, but high enough that most systems won't be
effected.
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
Give this thread pool a name for clarity.
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
When looking at logs involving thread pools it is useful if the threads
can be named.
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
upstream has explained in the patch submisstion how the issue should be solved differently;
we should work towards that.
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
Drop glibc-2.34-fix.patch merged upstream.
Rework support for error() on non-glibc targets:
upstream now provides its own implementation, so we can drop
the patch that adds ours; said implementation isn't
build-tested with tests, so ptest has to be disabled on musl.
This, in turns, allows dropping 0004-Fix-error-on-musl.patch.
License-Update: copyright years
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
Upstream has inserted guards around the use of offending constant.
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
Upstream added internal implementation shortly after the patch was added.
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
The patch author (Robert Yang) has been asked by email
to rework the patch.
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
The kernel Makfile uses pkgconfig to check for libelf when enabling
CONFIG_STACK_VALIDATION. We already have libelf in our DEPENDS, but
the kernel Makefiles hardcode 'pkgconfig', so fail to pick up our
pkgconfig-native binary that would report the correct flags and paths
for libelf support.
Rather than patching the kernel Makefile's to use pkgconfig-native,
we can use the KERNEL_EXTRA_ARGS variable to pass the definition of
HOST_LIBELF_LIBS via the kernel build commmand line.
We conditionally set HOST_LIBELF_LIBS based on "stack" being in
a newly introduced variable KERNEL_DEBUG_OPTIONS. The value of
HOST_LIBELF_LIBS is the same as pkgconfig-native would set in a
kernel build (but we cannot call pkgconfig at the point this
variable is set).
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|