summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2022-03-11python_pep517: use installer instead of pipross/py-installerRoss Burton
Instead of battling pip to install a wheel, use installer. Installer does one thing, so it's faster and easier to work with. This means setuptools, pip, and wheel are no longer part of the bootstrap phase, so they can be built normally. To avoid sysroot file conflicts these three recipes can't install .pyc files to the native sysroot. Signed-off-by: Ross Burton <ross.burton@arm.com>
2022-03-11python3-installer: add installer moduleRoss Burton
Add a recipe for Installer, a minimal library/tool to install Python Wheels. Unlike PIP, it explicitly only installs wheels and does nothing else. Signed-off-by: Ross Burton <ross.burton@arm.com>
2022-03-11python_pep517: move PEP517_SOURCE_PATH to python_pep517Ross Burton
Now we have the start of a PEP-517 base class, the PEP517_SOURCE_PATH variable can be defined in there instead of the classes that use it. Signed-off-by: Ross Burton <ross.burton@arm.com>
2022-03-11setuptools3-base: improve RDEPENDS assignmentRoss Burton
Use :append instead of += so that recipes can assign to RDEPENDS:${PN}. This fixes missing RDEPENDS for sixteen recipes in oe-core alone. Also instead of using obscure inline Python we can just use the class-target override. Signed-off-by: Ross Burton <ross.burton@arm.com>
2022-03-11WIP documentation: remove PIP_INSTALL_PACKAGE and PYPA_WHEEL mentionsRoss Burton
These are no longer used by pip_install_wheel.bbclass. TODO - class rename - variable rename Signed-off-by: Ross Burton <ross.burton@arm.com>
2022-03-11meta: rename pip_install_wheel.bbclass to python_pep517.bbclassRoss Burton
pip_install_wheel shouldn't restricted to just using Pip to install wheels (the installer module is simplier and likely a better option), and in the future may be extended to also provide do_compile() using the build module. Signed-off-by: Ross Burton <ross.burton@arm.com>
2022-03-11meta: remove obsolete PIP_INSTALL_PACKAGERoss Burton
PIP_INSTALL_PACKAGE isn't used anymore, so remove all instances of it from the recipes. Signed-off-by: Ross Burton <ross.burton@arm.com>
2022-03-11weston: require wayland as a distro featureJoe Slater
Weston will not configure successfully unless wayland is a distro feature. (From OE-Core rev: bc72eb17b74606514694a6655d65dab9b2ee96e8) Signed-off-by: Joe Slater <joe.slater@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-11oe-pkgdata-util: Adapt to the new variable override syntaxPeter Kjellerstedt
(From OE-Core rev: 2bf6a0ca9fdf639418646700b20b65c9960efdbe) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-11seatd: upgrade to 0.6.4 (fixes CVE-2022-25643)Ross Burton
We need to set nobranch=1 as the 0.6.4 tag isn't on any branches at present. (From OE-Core rev: 5637ebe76885c21c2c3f975b4f412b02f9e02456) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-11files: overlayfs-etc: add overlay mount options to preinitClaudius Heine
Overlayfs-etc is useful if the rootfs is read-only. One reason to have the rootfs read-only is to allow image based updating. Image based updating will change the underlying root file system, which is unsupported by overlayfs when with some mount options [1]. This disables those options. [1] https://www.kernel.org/doc/html/latest/filesystems/overlayfs.html?highlight=overlayfs#changes-to-underlying-filesystems (From OE-Core rev: 13a057d6ffc3110f891224d7af9455b53581e8a8) Signed-off-by: Claudius Heine <ch@denx.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-11files: overlayfs-etc: wrap long lines of preinit fileClaudius Heine
Make it easier to see what is happening by wrapping the overly long lines in the preinit file for the overlayfs-etc. (From OE-Core rev: 2e116bbc1afbc571b99f2605839e3c90839471be) Signed-off-by: Claudius Heine <ch@denx.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-11iptables: do not install /etc/ethertypesTrevor Gamblin
Take inspiration from the ebtables recipe in meta-networking and omit installation of etc/ethertypes, since it is provided by netbase. If we don't do this, the following error occurs during build: Error: Transaction test error: file /etc/ethertypes conflicts between attempted installs of iptables-1.8.7-r0.core2_64 and netbase-1:6.3-r0.noarch (From OE-Core rev: 297fde1a6fc9ddf12bb4b0cba1d5b03664a3f378) Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-11pip_install_wheel: add a generic do_install for bootstrappingRoss Burton
Several recipes are duplicating the same bootstrap logic for installing a wheel without using any tools. Add an implementation to pip_install_wheel to centralise the code, and remove the duplicated code from the following recipes: - python3-flit-core - python3-pip - python3-setuptools - python3-wheel (From OE-Core rev: d5d702a2cd06f863340f8e4cdce0904c9d86384d) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-11python3-pip: remove redundant DEPENDS on python3-setuptools-nativeRoss Burton
This recipe inherits setuptools_build_meta which already depends on python3-setuptools-native. (From OE-Core rev: 5d514b5dbd09ce059047d849d5b7cc2b2327564d) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-11flit_core: remove redundant python3-pip-native DEPENDSRoss Burton
PIP is not needed by this class directly, but is used by pip_install_wheel which already depends on python3-pip-native. (From OE-Core rev: 2f18b35b8da5dad471c325138be52191412e4100) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-11m4: Fix build on musl/ppcKhem Raj
(From OE-Core rev: 41ccf5b38506608032754beaff393f74e0403fd1) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-11libtool: Recognise additional linker commandline options passed by clangKhem Raj
Like stdlib, these options are also used to select runtime libraries by clang driver (From OE-Core rev: 6d2035b9017552f050e53add0b3ef4090141fc5e) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-11unzip: Pass LDFLAGS to configure testsKhem Raj
Ensures the configure time tests are compiled/linked with the Options that it will be using to build. (From OE-Core rev: 6d01bb24f198710b7acb49c43a8a813b6e01ed14) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-11bitbake: toaster: Fix IMAGE_INSTALL issues with _append vs :appendRichard Purdie
After the override syntax change, toaster isn't working correctly. This is because it uses IMAGE_INSTALL_append instead of IMAGE_INSTALL:append. This tweaks the code accordingly to fix this. I have a suspicion that exiting toaster databases may struggle with the change and there are some migration steps missing for the whole overrides syntax change step. (Bitbake rev: befc93c3e03a9b1a2b630cd5badcda756fe6cd28) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-11bitbake: cooker: Fix environment history printingRichard Purdie
bitbake -e is not showing variable history correctly for all variables. The issue was triggered by the change to knotty to default to enabling variable tracking in the base datastore but that exposed another issue. The real problem is that calling reset() inside cooker reverts to the data tracking enabled by the UI for the base datastore, then turns off tracking. In the case of the environment printing code, it needs it to be left on. Tweak the code to ensure data store tracking really is enabled. The code here is clearly a bit of a mess but this at least fixes a clear regression until more invasive improvements can be made. (Bitbake rev: 9596bffc9903f023d1cc97ce531ddb1cf010c4d7) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-11bitbake: knotty.py: A little clean up of TerminalFilter::updateFooter()Peter Kjellerstedt
* Use max() to clamp progress to >= 0. * Be consistent when evaluating self.quiet (treat it as a boolean). (Bitbake rev: 160f71372ff93894d9314619e9d3b547c1f3cda3) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-11bitbake: knotty.py: Correct the width of the progress bar for the real tasksPeter Kjellerstedt
In commit 8055ec36 (knotty: Improve setscene task display) the setscene tasks got their own line in the task output. However, the progress bar code does not handle newlines in its widgets, so the length of the setscene line was included when calculating how much space is available for the progress bar of the running tasks, making it much too short. Instead of trying to teach the progress bar code to handle newlines, separate the output of the setscene tasks from the progress bar for the real tasks. (Bitbake rev: a41f7792f17acdba8c7ea83b79e413ae6a49da68) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-11bitbake: knotty.py: Improve the message while waiting for running tasks to ↵Peter Kjellerstedt
finish Use pluralise() to correct the grammar, and drop the colon at the end if runnning in quiet mode. (Bitbake rev: 57396289f935892390c11afe95f3eede28fd80e7) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-10bitbake: uievent: Fix import warning for python 3.10Richard Purdie
(Bitbake rev: bf1de5988698c797403ecd30edda99a76e9c02dd) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-10overlayfs-etc: add condition to package-management feature conflictClaudius Heine
The conflict with the `package-managment` only happens if the `overlayfs-etc` class overwrites `/sbin/init`, which is not the case when `OVERLAYFS_ETC_USE_ORIG_INIT_NAME` is set to `0`. (From OE-Core rev: c577382c6d155b3a784d06e4c916783cde7165c8) Signed-off-by: Claudius Heine <ch@denx.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-10overlayfs: add systemd unit path prefix to FILES:${PN} arrayClaudius Heine
The 'FILES:${PN}' array is missing the systemd unit dir prefix causing them to not be packaged and the build fails with the `installed-vs-shipped` error. This adds the `systemd_system_unitdir` variable in front of every unit file added with this class. (From OE-Core rev: d19166cbc567be0803eaf8d0a2a20f44758aae7b) Signed-off-by: Claudius Heine <ch@denx.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-10webkitgtk: Fix build when x11 is not in distro featuresKhem Raj
ANGLE's copy of khrplatform.h is not uptodate with mesa/khronos khrplatform.h which uses MESA_EGL_NO_X11_HEADERS which is now renamed in newer headers to EGL_NO_X11 from mesa/khronos headers, however this define is relatively new and 3D stacks do not have this adopted but apps like qemu and bunch of others depend on it, I guess they assume mesa. One can argue that its better to fix the 3D stacks to behave like mesa but this means every BSP using these stacks will need to carry such a fix. https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/include/EGL/eglplatform.h This patch helps with that (From OE-Core rev: 4f6b987705a624da3304cb559b885c4352f9b517) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-10qemu: Fix build when x11 is not in distro featuresKhem Raj
There is use of MESA_EGL_NO_X11_HEADERS which is now renamed in newer headers to EGL_NO_X11 from mesa/khronos headers, however this define is relatively new and 3D stacks do not have this adopted but apps like qemu and bunch of others depend on it, I guess they assume mesa. One can argue that its better to fix the 3D stacks to behave like mesa but this means every BSP using these stacks will need to carry such a fix. https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/include/EGL/eglplatform.h (From OE-Core rev: 8c9d0bc4eb2784a3defa047e509d96e0eb521c03) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-10conf/machine: fix QEMU x86 sound optionsMichael Opdenacker
This updates the QEMU sounds options for x86 emulation, when "runqemu" is called with the "audio" argument, to fix the below error: runqemu - ERROR - Failed to run qemu: qemu-system-x86_64: warning: '-soundhw ac97' is deprecated, please use '-device AC97' instead (From OE-Core rev: b802a5dd1a79c7be3bc790223a733ebc9be4f117) Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-10sudo: upgrade 1.9.9 -> 1.9.10wangmy
Changelog: ========= Added new log_passwords and passprompt_regex sudoers options. Added new log_passwords and passprompt_regex settings to sudo_logsrvd that operate like the sudoers options when logging terminal input. Fixed several few bugs in the cvtsudoers utility when merging multiple sudoers sources. Fixed a bug in sudo_logsrvd parsing the sudo_logsrvd.conf file, where the retry_interval in the [relay] section was not being recognized. Restored the pre-1.9.9 behavior of not performing authentication when sudo's -n option is specified. On systems with /proc, if the /proc/self/stat (Linux) or /proc/pid/psinfo (other systems) file is missing or invalid, sudo will now check file descriptors 0-2 to determine the user's terminal. Bug #1020. Fixed a compilation problem on Debian kFreeBSD. Bug #1021. Fixed a crash in sudo_logsrvd when running in relay mode if an alert message is received. Fixed an issue that resulting in "problem with defaults entries" email to be sent if a user ran sudo when the sudoers entry in the nsswitch.conf file includes "sss" but no sudo provider is configured in /etc/sssd/sssd.conf. Bug #1022. Updated the warning displayed when the invoking user is not allowed to run sudo. Fixed a bug where the user-specified command timeout was not being honored if the sudoers rule did not also specify a timeout. Added support for using POSIX extended regular expressions in sudoers rules. A user may now only run sudo -U otheruser -l if they have a "sudo ALL" privilege where the RunAs user contains either root or otheruser. The sudo lecture is now displayed immediately before the password prompt. Sudo now uses its own closefrom() emulation on Linux systems. (From OE-Core rev: cbb7ff3abf52f38fea471b9510ba8bcec70c3058) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-10stress-ng: upgrade 0.13.11 -> 0.13.12wangmy
(From OE-Core rev: 9bad841b5a97785bbe5c0de99c3b89037c9f97e8) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-10python3-pycairo: upgrade 1.20.1 -> 1.21.0wangmy
Changelog: ========= * Require Python 3.7+ :pr:'250' * Require meson 0.53+ * Using 'setup.py' directly to build/install pycairo is deprecated. Use meson instead. * 'setup.py' now requires setuptools. Previously it was optional. * The complete API reference is now included in the typing stubs, so it can be consumed/shown by IDEs. :pr:'236' :pr:'252' (From OE-Core rev: d83f8e31b929ea270a2cafda4ca3deaffbd7c54e) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-10gpgme: upgrade 1.17.0 -> 1.17.1wangmy
Changelog: ========= * configure.ac: Bump QT LT version to C15/A0/R0. (From OE-Core rev: 15cf6a0c74aacdb01626ae46963cb02a59b4c2c1) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-10python3-scons: remove redundant FILES:${PN}-docRoss Burton
mandir is in the default FILES:${PN}-doc, so there's no need to add it. (From OE-Core rev: 342641edee1e2c7d80184c3a9b649cccb8cf38b5) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-10pip_install_wheel: install wheel with a globRoss Burton
Now that the build systems that use pip_install_wheel are all building their wheel into a directory that we knew was empty before, we can just install *.whl and not need to know the precise names. By design a pyproject.toml will always build a single wheel, so there shouldn't be any way for this to end up installing more than expected. This obsoletes PIP_INSTALL_PACKAGE and PYPA_WHEEL, neither of which are needed anymore. (From OE-Core rev: e6e4c63bbdd09d91428e55cb5a852170511f05cc) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-10pip_install_wheel: generate the wheels in directory we control outside of SRoss Burton
Set the wheel distribution location, PIP_INSTALL_DIST_PATH, to a directory under WORKDIR to enhance out-of-tree builds. (From OE-Core rev: 8e7ae4246aa8dedd8a128c34450d4c1f60e2224a) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-10zip: Pass ldflags to configure tests using linkingKhem Raj
(From OE-Core rev: 118e4ca244a8ff48b126225b8f98b7c9f66b71f1) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-10zlib: Pass ldflags to configure tests using linkingKhem Raj
(From OE-Core rev: 86bc57eaa3d1016d8d99041e5bd115cf3d2e4ce3) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-10python3-scons: remove PIP_INSTALL_DIST_PATHRoss Burton
The default is good now, so remove this. (From OE-Core rev: eef037f199d458e31afb570f9a4930c75c778b68) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-10binutils-cross-canadian: enable gold for mingwSamuli Piippo
This reverts commit b5a595a4be09756b88e91f3353e3b221b165ab44, gold linker can now be built correctly for mingw SDKs. (From OE-Core rev: b2ab9ff4050ebd5efb273f44e62174efb22a214f) Signed-off-by: Samuli Piippo <samuli.piippo@qt.io> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-10meta/scripts: Improve internal variable namingSaul Wold
Update internal variable names to improve the terms used. (From OE-Core rev: f408068e5d7998ae165f3002e51bc54b380b8099) Signed-off-by: Saul Wold <saul.wold@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-09local.conf.sample: https and no newline for SSTATE_MIRRORSMichael Opdenacker
Both http and https work, but we will get fewer user questions with https Remove no longer necessary \n character in the sample definition (From meta-yocto rev: 2e707748b372dac4c007342cc80e65f2b0afc542) Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-09local.conf.sample: fix reference to extended configuration sampleMichael Opdenacker
The file name is local.conf.sample.extended, not local.conf.extended (From meta-yocto rev: dfff8de96dcbb6ea35f638a07c34cf5578e8d043) Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-09python3-pyyaml: use setuptools_build_metaRoss Burton
This project builds with setuptools_build_meta, so use that instead. (From OE-Core rev: 1ebc11c10379a10ddd974068cdd1ea322114a647) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-09python3-pyrsistent: use setuptools_build_metaRoss Burton
This project builds with setuptools_build_meta, so use that instead. (From OE-Core rev: f2bac34088256d52354f4ec7ab3bd69a6812708f) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-09python3-markdown: use setuptools_build_metaRoss Burton
This project builds with setuptools_build_meta, so use that instead. (From OE-Core rev: 58f7a34a227e2c2fb2fec99066d14ca0c842e97d) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-09bmap-tools: remove redundant PYPA_WHEELRoss Burton
The default is good, this doesn't need to be set. (From OE-Core rev: aa0dab28690e58929535952fa99ec67bda434ed7) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-09python3-wheel: clean up PYPA_WHEEL usageRoss Burton
Remove the use of PYPA_WHEEL in the native do_install() as this variable will be disappearing shortly. Remove the bbfatal_log in the native do_install(), if this breaks then something has gone very wrong and the user is not expected to fix it. Also flit_core inherits setuptools3-base, so no need to inherit it again. (From OE-Core rev: e2c7501645eec12d3168b6e8606549ce3e5f8db2) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-09python3-setuptools3: clean up PYPA_WHEEL usageRoss Burton
There's no need to set PYPA_WHEEL as the default is sufficient. Remove the use of PYPA_WHEEL in the native do_install() as this variable will be disappearing shortly. Remove the bbfatal_log in the native do_install(), if this breaks then something has gone very wrong and the user is not expected to fix it. (From OE-Core rev: c0a24279c740555a06a5c57e2a01ca7b20f8e668) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>