summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
Commit message (Collapse)AuthorAgeFilesLines
* cve-update: handle baseMetricV2 as optionalKonrad Weihmann2020-07-271-4/+9
| | | | | | | | | | | Currently in NVD DB an item popped up, which hasn't set baseMetricV2. Let the parser handle it as an optional item. In case use baseMetricV2 before baseMetricV3 (From OE-Core rev: fdcbf3f28289188c5a97664d1421d4a5c4991eda) Signed-off-by: Konrad Weihmann <kweihmann@outlook.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* initscripts: Fix populate-volatile.sh bug when file/dir existsAndrei Gherzan2020-07-271-12/+12
| | | | | | | | | | | | | | | The blocks which test for entry exitence (file or directory) use a `A && B || C` syntax. This form is not behaving as a if-then-else block even the code logic assumes that. C may run when A is true which breaks the case where VERBOSE is 'no' but the file/directory exists. Along with fixing these specific issues, this patch fixes the other instances where blocks of form `A && B || C` are used as if-then-else. (From OE-Core rev: 1b9ea22acb66554925720e04cf24100664234574) Signed-off-by: Andrei Gherzan <andrei@gherzan.ro> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* initscripts: Fix various shellcheck warnings in populate-volatile.shAndrei Gherzan2020-07-271-29/+29
| | | | | | | (From OE-Core rev: 0a128a238f63d52aa82f8c63ee2f84ab528b3346) Signed-off-by: Andrei Gherzan <andrei@gherzan.ro> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: Secruity fix for CVE-2020-6096Armin Kuster2020-07-253-0/+308
| | | | | | | | | | | | | | Source: glibc.org MR: 104799 Type: Security Fix Disposition: Backport from beea361050728138b82c57dda0c4810402d342b9 ChangeID: 29df826fb697fdd2742c3bace33388bda962c5f1 Description: (From OE-Core rev: ffa4fa35e1f6132b19788166a2b87517d9e17d95) Signed-off-by: Armin Kuster <akuster@gmvista.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: make hwclock compatible with glibc 2.31Sakib Sajal2020-07-222-0/+84
| | | | | | | | | | | | | | | settimeofday(2) has been deprecated as of glibc 2.31 which hwclock makes use of. This patch makes hwclock compatible with glibc v2.31 See patch for more details: busybox/0001-hwclock-make-glibc-2.31-compatible.patch Fixes [YOCTO #13981] (From OE-Core rev: 524fff214a6adc823a99358248b3891ba7c0b915) Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* expat: Added ptestOleksandr2020-07-223-4/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For ptest support of expat package: - expat_2.2.9.bb recipe was switched on cmake-based building system to avoid cahnges in autotools build system which considered in upstream as potentially deprecated (https://github.com/libexpat/libexpat/issues/330). - cmake-native_3.17.3.bb recipe was forced to use bundled version of expat from CMake source tree. Therefore expat-native package has been removed from DEPENDS variable for cmake-native recipe. Without these changes, next dependency loop appears: Dependency loop #1 found: Task /home/opopovych/repos/poky/meta/recipes-devtools/cmake/cmake-native_3.17.3.bb:do_compile (dependent Tasks ['cmake-native_3.17.3.bb:do_configure']) Task /home/opopovych/repos/poky/meta/recipes-devtools/cmake/cmake-native_3.17.3.bb:do_install (dependent Tasks ['cmake-native_3.17.3.bb:do_compile']) Task /home/opopovych/repos/poky/meta/recipes-devtools/cmake/cmake-native_3.17.3.bb:do_populate_sysroot (dependent Tasks ['cmake-native_3.17.3.bb:do_install']) Task virtual:native:/home/opopovych/repos/poky/meta/recipes-core/expat/expat_2.2.9.bb:do_prepare_recipe_sysroot (dependent Tasks ['cmake-native_3.17.3.bb:do_populate_sysroot', 'ninja_1.10.0.bb:do_populate_sysroot', 'expat_2.2.9.bb:do_fetch']) Task virtual:native:/home/opopovych/repos/poky/meta/recipes-core/expat/expat_2.2.9.bb:do_configure (dependent Tasks ['expat_2.2.9.bb:do_patch', 'expat_2.2.9.bb:do_prepare_recipe_sysroot', 'expat_2.2.9.bb:do_generate_toolchain_file', 'expat_2.2.9.bb:do_deploy_source_date_epoch']) Task virtual:native:/home/opopovych/repos/poky/meta/recipes-core/expat/expat_2.2.9.bb:do_compile (dependent Tasks ['expat_2.2.9.bb:do_configure']) Task virtual:native:/home/opopovych/repos/poky/meta/recipes-core/expat/expat_2.2.9.bb:do_install (dependent Tasks ['expat_2.2.9.bb:do_compile']) Task virtual:native:/home/opopovych/repos/poky/meta/recipes-core/expat/expat_2.2.9.bb:do_populate_sysroot (dependent Tasks ['expat_2.2.9.bb:do_install']) Task /home/opopovych/repos/poky/meta/recipes-devtools/cmake/cmake-native_3.17.3.bb:do_prepare_recipe_sysroot (dependent Tasks ['expat_2.2.9.bb:do_populate_sysroot', 'xz_5.2.5.bb:do_populate_sysroot', 'bzip2_1.0.8.bb:do_populate_sysroot', 'ncurses_6.2.bb:do_populate_sysroot', 'zlib_1.2.11.bb:do_populate_sysroot', 'cmake-native_3.17.3.bb:do_fetch', 'curl_7.71.1.bb:do_populate_sysroot']) Task /home/opopovych/repos/poky/meta/recipes-devtools/cmake/cmake-native_3.17.3.bb:do_configure (dependent Tasks ['cmake-native_3.17.3.bb:do_deploy_source_date_epoch', 'cmake-native_3.17.3.bb:do_patch', 'cmake-native_3.17.3.bb:do_prepare_recipe_sysroot']) - run-ptest script that initalizes testing, copies testing executables' output to log file and measures execution time of each testing executable was added. - patch that implements output of each testcase result in testing exectutable was added. (From OE-Core rev: 3adba877e1b5e5f69a6d1501611624e2d3789a9b) Signed-off-by: Oleksandr Popovych <oleksandr.s.popovych@globallogic.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: whitelist CVE-2010-10029akuster2020-07-211-0/+2
| | | | | | | | | | | The update via Commit https://git.openembedded.org/openembedded-core/commit/meta/recipes-core/glibc?id=2c7e0e0bf32eb1ed0b7d8acddb16c0d1e93f2aa1 should have added the whitelist for this CVE removed (From OE-Core rev: 213ac2d345ec6d4ef0daf7a7d8237038a914c491) Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Update to latest tipKhem Raj2020-07-192-2/+2
| | | | | | | | | | | | | | | | | License-Update: Added copyright for AArch64 memcpy and memset code [1] Details changelog is here [2] [1] https://git.musl-libc.org/cgit/musl/commit/?id=fdf8b2ad9c5ae6adf3a91c0043eb898badee46d1 [2] https://git.musl-libc.org/cgit/musl/log/?qt=range&q=fca7428c096066482d8c3f52450810288e27515c..0a005f499cf39822166dd4db3d2d31f0639f1b1b (From OE-Core rev: d340f02ad2df0a29b1a1cc0b36f2099a3e64f5c2) Signed-off-by: Khem Raj <raj.khem@gmail.com> s Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* init-ifupdown: always make machine-specificRoss Burton2020-07-181-1/+1
| | | | | | | | | | | | | We make this recipe machine-specific for all qemu targets, but otherwise defaults to tune-specific. However the network configuration is typically machine-specific, so do this in the recipe directly so that BSPs don't need to do it themselves. (From OE-Core rev: 02b3e8f43f72d83904272c15c8f15cf03c763c94) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* init-system-helpers: upgrade 1.57 -> 1.58Richard Purdie2020-07-181-1/+1
| | | | | | (From OE-Core rev: fd0cae10e4b769d80b036ed2325965bdd30d7e09) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* cml1: Move find_cfgs() helper to cml1.bbclassRasmus Villemoes2020-07-121-10/+0
| | | | | | | | | | | | | u-boot.inc and busybox.inc contain identical copies of this little helper. They both inherit the cml1 class and use cml1_do_configure right after having used this helper, and other recipes that want to write similar logic for doing Kconfig via fragments will also need it or something equivalent. (From OE-Core rev: af687c9137a3e8efe48afa6fd12866cf656ae913) Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* util-linux: Set license for library sub packagesChristian Eggers2020-07-121-1/+9
| | | | | | | | | | | | | | - libblkid is exclusively licensed under LGPL-2.1+ (libblkid/COPYING) - libfdisk is exclusively licensed under LGPL-2.1+ (libfdisk/COPYING) - libmount is exclusively licensed under LGPL-2.1+ (libmount/COPYING) - libsmartcols is exclusively licensed under LGPL-2.1+ (libsmartcols/COPYING) - libuuid is exclusively licensed under BSD-3-Clause (libuuid/COPYING) (From OE-Core rev: d5f0b4be44e082a1b05b17403b21f89ad4b1b615) Signed-off-by: Christian Eggers <ceggers@arri.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glib-2.0: upgrade 2.64.3 -> 2.64.4Wang Mingyu2020-07-121-2/+2
| | | | | | | (From OE-Core rev: 42a809829c434460f6f838d5c56ef93a14eeef0c) Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* dbus: upgrade 1.12.18 -> 1.12.20Wang Mingyu2020-07-123-2/+2
| | | | | | | (From OE-Core rev: bfaef91e77cd54e4f642e966903aac3f3291c325) Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* coreutils: don't split stdbuf to own package with single-binaryRasmus Villemoes2020-07-081-2/+13
| | | | | | | | | | | | | | | | | | | | | | | | | Commit 992cec44 (coreutils: Move stdbuf into an own package coreutils-stdbuf) breaks package-qa when the single-binary PACKAGECONFIG is used: ERROR: coreutils-8.32-r0 do_package_qa: QA Issue: /usr/bin/stdbuf contained in package coreutils-stdbuf requires /usr/bin/coreutils, but no providers found in RDEPENDS_coreutils-stdbuf? [file-rdeps] ERROR: coreutils-8.32-r0 do_package_qa: QA run found fatal errors. Please consider fixing them. With that PACKAGECONFIG, /usr/bin/stdbuf is just a simple "script" containing the single line #!/usr/bin/coreutils --coreutils-prog-shebang=stdbuf Since there's no point splitting stdbuf to its own package when all the functionality is in the single big coreutils binary anyway, fix this by not creating the separate stdbuf package for the single-binary case. But also make sure that the coreutils-stdbuf item always exists so recipes can always RDEPEND on coreutils-stdbuf. (From OE-Core rev: 74d24b5b895198898944260136d05e991a203c11) Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: remove kernel-install from base pkgKonrad Weihmann2020-07-081-1/+0
| | | | | | | | | | as this is already packaged in kernel-install package, it shouldn't be part of the base package (From OE-Core rev: ed04241f30e12e7c0479026a9e354e49dfa4119c) Signed-off-by: Konrad Weihmann <kweihmann@outlook.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* dropbear: update to 2020.80Andrej Valek2020-07-033-4/+4
| | | | | | | | | License-Update: changed date and added info about existence LICENSE files in libtomcrypt and libtommath folders (From OE-Core rev: 0954933a7cc61307df1a840318c9a553050ecdb6) Signed-off-by: Andrej Valek <andrej.valek@siemens.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: 1.31.1 -> 1.32.0Andrej Valek2020-07-038-367/+15
| | | | | | | | | | - update to last stable version 1.32.0 - remove and refresh already merged patches (From OE-Core rev: 2ccac58c2346b5a253dd065e5456c5bdaee2c99d) Signed-off-by: Andrej Valek <andrej.valek@siemens.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* deploy.bbclass: Clean DEPLOYDIR before do_deployDaniel Klauer2020-06-302-3/+0
| | | | | | | | | | | | | | | | | | | | | | do_deploy should clean up ${DEPLOYDIR} before running, just like do_install cleans up ${D} before running. This reduces the risk of DEPLOYDIR being accidentally contaminated by files from previous runs, possibly even with different config, in case of incremental builds. It is convenient to have this in deploy.bbclass, so it doesn't have to be duplicated in every recipe, considering for example meta-freescale, which has 23 affected recipes. All recipes using deploy.bbclass (grep -r 'inherit .*deploy') in poky, meta-openembedded and meta-freescale look like they either benefit from this or are at least not affected negatively by it. The only exception I've noticed was uboot-sign.bbclass, which was however fixed by the previous patch. (From OE-Core rev: 7083a7d56f4d90c81d2e6652ee291d20fd908bbe) Signed-off-by: Daniel Klauer <daniel.klauer@gin.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* initscripts: update postinstChangqing Li2020-06-301-1/+1
| | | | | | | | | | | | | | in container image, it don't have init system, install package initscripts will report error: systemctl: command not found fix by use same way as systemd.bbclass to decide if systemctl mask will run (From OE-Core rev: 790276bde066ecc9876120c3097dcd57a9936f00) Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* ovmf: build natively everywhereRoss Burton2020-06-281-1/+1
| | | | | | | | | | | | | The OVMF target binaries are (currently) x86-specific, but the native tools to build them are not. Make the COMPATIBLE_HOST assignment target-specific, so that the native tools can be built on an arm64 build server. (From OE-Core rev: 58ebb47688fc98fdaeb78b4033bd31100218d5d6) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* dropbear: update 2019.78 -> 2020.79Alexander Kanavin2020-06-284-29/+19
| | | | | | | | | | | Refresh dropbear-disable-weak-ciphers.patch as some weak items have been dropped upstream. License-Update: curve25519 changed to public domain (From OE-Core rev: 1620a815f6fbe20e5b570ed254187856bb37c184) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Update to tip of masterKhem Raj2020-06-283-21/+7
| | | | | | | | | | | | Detailed changelog [1] Refresh patches [1] https://git.musl-libc.org/cgit/musl/log/?qt=range&q=1b4e84c56df0f8ca30f6bc05962a860f869e71df..fca7428c096066482d8c3f52450810288e27515c (From OE-Core rev: 4ce9fbb9802cb802110a684b59fdf5c9c8e7e77e) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* tools-profile: disable valgrind for powerpc soft-floatValentin Longchamp2020-06-231-0/+1
| | | | | | | | | | | Since valgrind does not build for powerpc soft-float, disable it from the tools-profile packagegroup so that it can still be enabled for such architectures (but without valgrind of course). (From OE-Core rev: ad78ff1c362ecc281c797ce3bb083e532a0bb483) Signed-off-by: Valentin Longchamp <valentin@longchamp.me> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* grub: Remove native version of grub-efiJacob Kroon2020-06-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The native version of grub-efi only installs the tools /usr/bin/grub-editenv /usr/bin/grub-mkimage to sysroots-components/, but equivalent tools are already provided by grub-native, the difference on x86_64 being 4 hardwired paths in grub-mkimage (values taken from grub-native): LOCALEDIR = $TMPDIR/work/x86_64-linux/grub-native/2.04-r0/recipe-sysroot-native/usr/share/locale GRUB_DATADIR = $TMPDIR/work/x86_64-linux/grub-native/2.04-r0/recipe-sysroot-native/usr/share GRUB_LIBDIR = $TMPDIR/work/x86_64-linux/grub-native/2.04-r0/recipe-sysroot-native/usr/lib GRUB_SYSCONFDIR = $TMPDIR/work/x86_64-linux/grub-native/2.04-r0/recipe-sysroot-native/etc If grub-native and grub-efi-native are built with the following patch --- grub-2.04.orig/configure.ac +++ grub-2.04/configure.ac @@ -1980,10 +1980,10 @@ grub_libdir="$(eval echo "$libdir")" grub_localedir="$(eval echo "$localedir")" grub_datadir="$(eval echo "$datadir")" grub_sysconfdir="$(eval echo "$sysconfdir")" -AC_DEFINE_UNQUOTED(LOCALEDIR, "$grub_localedir", [Locale dir]) -AC_DEFINE_UNQUOTED(GRUB_LIBDIR, "$grub_libdir", [Library dir]) -AC_DEFINE_UNQUOTED(GRUB_DATADIR, "$grub_datadir", [Data dir]) -AC_DEFINE_UNQUOTED(GRUB_SYSCONFDIR, "$grub_sysconfdir", [Configuration dir]) +AC_DEFINE_UNQUOTED(LOCALEDIR, "/non-existent", [Locale dir]) +AC_DEFINE_UNQUOTED(GRUB_LIBDIR, "/non-existent", [Library dir]) +AC_DEFINE_UNQUOTED(GRUB_DATADIR, "/non-existent", [Data dir]) +AC_DEFINE_UNQUOTED(GRUB_SYSCONFDIR, "/non-existent", [Configuration dir]) the produced grub-editenv/grub-mkimage binaries become binary equivalent, assuming reproducible builds is active. Since the unpatched values of LOCALEDIR/GRUB_DATADIR/GRUB_LIBDIR/GRUB_SYSCONFDIR point to directories that are not expected to exist at runtime, they can be ignored. Therefore: * remove grub-efi-native and instead rely on the same tools from grub-native * replace references to grub-efi-native with grub-native * remove unused grub-efi-native security flags overrides (From OE-Core rev: 7044181df7487f047d175242f7ebbc3c35bf5402) Signed-off-by: Jacob Kroon <jacob.kroon@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd-serialgetty: do not use BindsToChen Qi2020-06-231-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This unit was changed from 'BindsTo' in the following commit. """ commit f0f359ec9210759f6b4dbfb35d3fba8af208c43a Author: Jason Wessel <jason.wessel@windriver.com> Date: Thu Aug 29 07:00:31 2019 -0700 serial-getty@.service: Allow device to fast fail if it does not exist """ It was changed back to 'BindTo' in the following commit. """ commit 63bbff61b78c651339c4b18d8376187379ec3b3c Author: Otavio Salvador <otavio.salvador@gmail.com> Date: Fri Jun 12 14:30:44 2020 -0300 systemd: Sync systemd-serialgetty@.service with upstream """ This is now causing runtime problem for qemuarm64. The default.target is not reached until a timeout. Output is like below. """ root@qemuarm64:~# systemd-analyze Bootup is not yet finished (org.freedesktop.systemd1.Manager.FinishTimestampMonotonic=0). Please try again later. Hint: Use 'systemctl list-jobs' to see active jobs root@qemuarm64:~# systemctl list-jobs JOB UNIT TYPE STATE 102 getty.target start waiting 1 multi-user.target start waiting 95 systemd-update-utmp-runlevel.service start waiting 110 serial-getty@hvc0.service start waiting 111 dev-hvc0.device start running """ We can see that we are waiting for /dev/hvc0, while in fact there's no /dev/hvc0. Jason's commit actually solves such problem. So restore to use Jason's method. Do not use 'BindsTo'. (From OE-Core rev: 43b989c1231d3d867303ccebceda72364a9519ee) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* dbus,dbus-test: Move common parts to dbus.incOvidiu Panait2020-06-233-64/+47
| | | | | | | | | | | | | | | | | | dbus and dbus-test share the same source code and base configuration options, so factor out the common parts into dbus.inc. This way we can eliminate the need to keep the two recipes in sync. When they are not properly in sync (e.g. when dbus recipe has extra patches/config options that are not duplicated in dbus-test) ptest testsuite will actually test a slightly different codebase. This is due to the fact that dbus-test does not run the testsuite against the system libdbus library, but instead it generates a local libdbus.so that needs to configured/compiled as close as possible to the system one. (From OE-Core rev: 1cde2935526d2eec7d6b17a6c622647b0c132439) Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* dbus-test: Remove EXTRA_OECONF_X configsOvidiu Panait2020-06-231-4/+0
| | | | | | | | | | | | | | | X specific configs are already handled through PACKAGECONFIG: PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd x11', d)}" ... PACKAGECONFIG[x11] = "--with-x --enable-x11-autolaunch,--without-x --disable-x11-autolaunch, virtual/libx11 libsm" Remove duplicated EXTRA_OECONF_X args. (From OE-Core rev: 7dc107b05a29f8a3e8903d73f84ef8069f68af6f) Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* ell: upgrade 0.31 -> 0.32Pierre-Jean Texier2020-06-231-2/+1
| | | | | | | | | | | | This is a bugfix release: ver 0.32: Fix issue with handling D-Bus watch removal. (From OE-Core rev: 98d97384167a8d297650e49f9cabf4fae823b4a0) Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd-conf: Accept MTU from DHCPDaniel McGregor2020-06-171-0/+1
| | | | | | | | | | Many local cloud deployments use MTUs other than 1500. To support them, accept MTU from DHCP by default. (From OE-Core rev: 60ff220548125bbdc6812669af711fb3650d87aa) Signed-off-by: Daniel McGregor <daniel.mcgregor@vecima.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: Sync systemd-serialgetty@.service with upstreamOtavio Salvador2020-06-151-4/+10
| | | | | | | | | | | | | | | | | | The systemd upstream has been doing some improvements in the service which were not in sync, with the forked file. Mainly: - Use BindsTo to bind the service with the required serial device - Add of getty-pre.target as dependency so we can run things before getty@.service and serial-getty@.service - Add conflicts to rescue to avoid issues with sulogin We did not change the ExecStart and Environment fields so we don't have side effects of this change. (From OE-Core rev: 63bbff61b78c651339c4b18d8376187379ec3b3c) Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* buildtools-tarball: export OPENSSL_CONF in environment setupSteve Sakoman2020-06-151-0/+1
| | | | | | | | | | | The autobuilder has been experiencing SSL: CERTIFICATE_VERIFY_FAILED errors during error report uploads when using buildtools due to looking for certs in /opt/poky (From OE-Core rev: 197f1d5d14b8e57295f5a81c03c86abba5328614) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: fix CVE-2020-13776Joe Slater2020-06-152-0/+97
| | | | | | | | | Backport from systemd.git. (From OE-Core rev: a1b22b2263da6d11a4e0cbfa792d2bd1e56f5346) Signed-off-by: Joe Slater <joe.slater@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sysvinit-inittab: Add support for tty devices with 10 or more number.Yuki Hoshino2020-06-151-2/+2
| | | | | | | | | | | | | | "start_getty" support for tty devices with under 10 number. When SERIAL_CONSOLES has tty devices with 10 or more number, do not't start getty and output the following message. ---------- sh 1: unknown operand ---------- (From OE-Core rev: 39dc49523f5d24db8f8053444c543c371c32d10c) Signed-off-by: Yuki Hoshino <yuki.hoshino@miraclelinux.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* meta: Don't inherit 'features_check' in recipes that don't utilize itJacob Kroon2020-06-123-3/+3
| | | | | | | (From OE-Core rev: e5591eb5165b1b7287a12928e2b179ae2b5ce5d6) Signed-off-by: Jacob Kroon <jacob.kroon@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glib-networking/btrfs-tools/dosfstools/parted/bmap-tools/libsoup-2.4: add ↵Hongxu Jia2020-06-121-1/+1
| | | | | | | | | | | | | | | nativesdk support In order to make wic tool work in sdk which is out of an existed Yocto build, it needs to port wic tool as a nativesdk recipe. First, make these runtime depends recipes to support nativesdk (From OE-Core rev: cb4f7f078e1d3b1afbf93ca4dc5e690f60c59412) Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* build-sysroots: add sysroot paths with native binaries to PATHAlexander Kanavin2020-06-091-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | staging_populate_sysroot_dir() collects postinsts from the sysroot and executes them. These postinsts, in turn, may call binaries that are only available from the sysroot. This works fine with recipe-specific sysroots, as all necessary paths are already in PATH, but breaks down in this recipe which imitates the old global sysroot way but doesn't adjust the PATH to include the binary paths from global sysroot. To reproduce the failure: $ bitbake docbook-xml-dtd4-native $ bitbake -c build_native_sysroot build-sysroots ... Exception: subprocess.CalledProcessError: Command '/home/akanavin/build/tmp/sysroots/x86_64/usr/bin/postinst-docbook-xml-dtd4-native-xmlcatalog' returned non-zero exit status 127. Subprocess output: /home/akanavin/build/tmp/sysroots/x86_64/usr/bin/postinst-docbook-xml-dtd4-native-xmlcatalog: 5: /home/akanavin/build/tmp/sysroots/x86_64/usr/bin/postinst-docbook-xml-dtd4-native-xmlcatalog: xmlcatalog: not found /home/akanavin/build/tmp/sysroots/x86_64/usr/bin/postinst-docbook-xml-dtd4-native-xmlcatalog: 8: /home/akanavin/build/tmp/sysroots/x86_64/usr/bin/postinst-docbook-xml-dtd4-native-xmlcatalog: xmlcatalog: not found (From OE-Core rev: 6b5f7bda4204d45cd29670cefcd53dc5da031095) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* init-system-helpers: use https for fetchingAlexander Kanavin2020-06-091-1/+1
| | | | | | | | | git:// protocol seems to be down. (From OE-Core rev: 97da539d49de979c9a303a5ecda09515d188673e) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* ovmf: update to 202005Alexander Kanavin2020-06-091-2/+2
| | | | | | | (From OE-Core rev: f8bf6b5f9aedcc4490008000250e69f74529db75) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* initramfs-framework: check successful mount using mountpointStefan Agner2020-06-091-2/+2
| | | | | | | | | | | | | Instead of checking for existence of /dev in the mounted file system use mountpoint to check if a root file system has been mounted. This allows to use the rootfs module for OSTree based rootfs as well, where the file system rootfs does not have any of the regular directories (at least when using the modern layout). (From OE-Core rev: efdfd0d5dde4dde43cb67ef28a90d5f5fe3e0ac6) Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: move ld.so.conf back to main packageRasmus Villemoes2020-06-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are cases where one doesn't want ldconfig on target (e.g. for read-only root filesystems, it's rather pointless), yet one still needs ld.so.conf to be present at image build time: When some recipe installs libraries to a non-standard location, and dutifully drops in a file in /etc/ld.so.conf.d/foo.conf, we need the ld.so.conf containing the include /etc/ld.so.conf.d/*.conf stanza to get those other locations picked up. So change the packaging logic so that there's always an ld.so.conf present when the build-time ldconfig runs. The ld.so.conf and ld.so.conf.d/*.conf files don't take up much room (at least not compared to the 700K binary ldconfig), and they might be needed in case ldconfig is installable, so leave them alone. In case of a read-only rootfs, one could add some logic to remove them if one really wants to shave those few dozens of bytes off. While here, fix typos in the bb.note (add spaces) so one can just copy-paste the line from the log-file and redo the command. (From OE-Core rev: a4cdda012f613d8d80203b9f5fc737d8511d16ce) Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* dbus-test: upgrade 1.12.16 -> 1.12.18Wang Mingyu2020-06-041-2/+2
| | | | | | | (From OE-Core rev: 839695e0c1b0c0fcfbb924c2b174c4a638067a32) Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* dbus: upgrade 1.12.16 -> 1.12.18Wang Mingyu2020-06-041-2/+2
| | | | | | | (From OE-Core rev: 8d33a2a4e4b6ff8f831523e5b1b16ead6b29cc79) Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glib-networking: 2.64.2 -> 2.64.3Lee Chee Yang2020-06-041-2/+2
| | | | | | | | | | update to 2.64.3 which include fix for CVE-2020-13645, see: https://gitlab.gnome.org/GNOME/glib-networking/-/issues/135 (From OE-Core rev: 752310aaee91f017907bb4a7c0f4eaa1f41fda6e) Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* init-system-helpers: avoid superfluous update-rc.dJens Rehsack2020-06-041-7/+2
| | | | | | | | | | | | | Debians init-system-helpers bundle an own, perl written update-rc.d which doesn't fulfill embedded/cross-build requirements as our own in meta/recipes-core/update-rc.d does. To avoid unnecessary conflicts or questions, do not bundle it by default. Whoever wants it is invited to have an .bbappend. (From OE-Core rev: 4e5a55c7ecf7100bb87dcad31723ee27b7006ac2) Signed-off-by: Jens Rehsack <sno@netbsd.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* initscripts/init-system-helpers: fix mountnfs.sh dependencyJens Rehsack2020-06-042-0/+47
| | | | | | | | | | | | | | | | | | | | | | | | With commit c9fc9110be33fe0f24bc3a7c242b584a4ca33e04 Author: Yue Tao <Yue.Tao@windriver.com> Date: Fri May 25 10:48:08 2018 +0800 initscripts: Avoid starting rpcbind daemon twice Check the status before start it to avoid duplicates. the use of a script {/usr/sbin/}service is introduced - maybe earlier provided by systemd, nowadays mostly by init-system-helpers from debian project. For the very first shot, maybe discussions and improvements based on that script collection, use just the init-system-helpers-service in initscripts/mountnfs.sh to avoid problems mounting NFS in later boot stage. (From OE-Core rev: db690c3bf4664ce71fc21650fbcd8b6ac2eb71f1) Signed-off-by: Jens Rehsack <sno@netbsd.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glib-2.0: 2.64.2 -> 2.64.3Lee Chee Yang2020-06-042-56/+2
| | | | | | | | | | remove patch which already upstream https://gitlab.gnome.org/GNOME/glib/-/commit/3c5512222c203d916a0a2a02312d8415f921dce9 (From OE-Core rev: 265a19308ad7dad1970c2d439103b7b485c4fbfc) Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: upgrade v245.5 -> v245.6Alex Kiernan2020-06-045-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commits: aa0cb635f1f6 network: L2TP fix crash 9774347b5775 Fix typo. 2cac801f0f37 stat-util: trivial empty_or_null() tweaks b054e69bf98e Check ambient set against bounding set prior to applying ambient set bed695375abc udev: when the BSD lock on a block device is taken, don't complain 66fcfdfde7d9 core: add forgotten return in error path 05dd19fad320 shared/efi-loader: remove check that uses absolute tick value 753a71ad1d0e gpt: include homed GPT partition type in well-known partition table 366872204933 units: don't set PrivateNetwork= in systemd-homed.service 2bca2d77d37d resolved-dns-query: remove dns_query_candidate_is_routable a3f60204325a sd-network: fix inverted error message a7a9fe3c930d network: allow empty assignment to PreferredLifetime= 8df6fc1241d1 Update resolvectl zsh completion c1a83277d086 shared: treat generator units as vendor units 1f382d818dd0 tree-wide: fix bad errno checks 667c2076838f bus-message: immediately reject messages with invalid type 116a8eadb6ad bus-message: fix negative offset with ~empty message 4d5779d886d0 load-fragment: fix a typo c8b6de003a07 NEWS: retroactively document Family= cf6b8e6ec524 man: fix dir name in sysctl.d(5) 6d009b7a25b1 journalctl,elsewhere: make sure --file=foo fails with sane error msg if foo is not readable cf786ef1643e makefs: log about OOM condition 0b1839822f9e blockdev: propagate one more unexpected error d78ce949d001 repart: don't insist on coming up on partition label ourselves 9e1363fcc65f journal: fix dropping first record during upload to remote journal 50cb4e418dab meson: initialize time-epoch to reproducible builds compatible value 76abe079b79a limit-util: quieten a very common debug message that is misleading b3e484a3b133 shared: fix integer overflow in calendarspec 0c29eea9691d repart: suppress complaints about lack of BLKRRPART when operating on regular file 3db52f5ed840 repart: explain when we exit early and don't do a thing d99cba3aaa8c mount: introduce mount_is_nofail() helper 7bc4bcea15aa mount: default startup dependencies and default network ones are orthogonal 7fe617fa5381 mount: introduce mount_add_default_ordering_dependencies() e1c091b6d4c5 automount: fix handling of default dependencies for automount units ae05a137c9d4 mount: let pid1 alone handle the default dependencies for mount units f1fb1971767d mount: mount unit activated by automount unit should be only ordered against the automount unit c9bcc69703c1 generator: don't generate device dependencies for extrinsic mounts ebac09ea0a4e fstab-util: introduce fstab_is_extrinsic() a20e4ea0ed98 device: drop refuse_after 2799fffac1eb man: drop some left-over mentions of StandardOutput=syslog 144aff9c3beb sd-netlink: remove unused RTNL_WQUEUE_MAX define 34ca8df8e131 test: Add return 0 to main() function (even it is not strictly necessary) 6e03f328a939 network: 'cur' variable cannot be null, so simplify code 8d0c97f6ca3c tree-wide: Initialize _cleanup_ variables if needed 4f174e49aef8 netlink: Fix assert condition on n_containers 3905ce532c86 journald: Increase stdout buffer size sooner, when almost full 5a37eb7c6155 core: don't bind varlink socket if running in test mode 33fff72ce665 pam_systemd: also print debug lines when ending a session ba9af79ccbab pam_systemd_home: use correct macro for converting ptr to fd 619923548961 Fix misuse of PAM_PROMPT_ECHO_OFF in systemd-homed c180a2c4520e shared/ethtool-util: hush gcc warnings about array bounds 1addba4aac47 core: fix compilation with gcc -O3 9c46b97161c7 random-util: use ERRNO_IS_NOT_SUPPORTED() macro d85f9093d2f5 tmpfiles: clarify that "!" lines are filtered before collisions are checked 2fac966a5ca3 man: mention the exclamation mark and minus sign literally, to make things searchable 4f61be3373e3 man: clarify that exit status name mappings are unaffected by SuccessExitStatus= b747d74a4102 seccomp-util: add new syscalls from kernel 5.6 to syscall filter table c30d8caf8b3d tree-wide: Replace assert() by assert_se() when there is side effect b6e8e3be7e48 networkctl: use uint64_t for link speed throughout be66ce60891d tree-wide: use CMSG_SPACE() (and not CMSG_LEN()) to allocate control buffers 1cb197798a40 man: suffix pam options with "=" where arg is required too a5fe01d3da4c test: Use assert_se() where variables are only checked by assert 6960efd19892 tree-wide: Fix, replace assert() by assert_se() when there is side effect 93c1b0307496 tree-wide: Mark as _unused_ variables that are only used in assert() c7679d7a9f01 tree-wide: Workaround -Wnonnull GCC bug 073b257fd760 man: bring example PAM snippet of pam_systemd and pam_systemd_home back in sync 855291a81ca6 man: highlight relevant lines in pam_systemd_home.so example PAM snippet f89ad7c0fdd9 login: include pam_systemd_home.so in the default PAM snippet we ship for user@.service 9357f9466f80 test: Skip test-boot-timestamps on permission denied cad4ebe14e9e sysusers: be extra careful when locking accounts 551e6f233a52 shared/install: print name of offending file in error c6a2e5123206 systemctl: fix --root support in querying presets 6f1eedbfdda5 systemctl: fix hint when 'systemctl help' is given 925521df7c86 shared/unit-file: fix resolution of absoulute symlinks with --root 756ba362e873 man: mention that ProtectSystem= also takes care of /efi 4f77cf43b5de man: systemd.service: systemd-analyze exit-codes -> exit-status 7c6ea7a0534c man: expand on the star…end/repetition time expressions e06b9407928c calendarspec: be more graceful with two kinds of calendar expressions f3dd0b476d9d calendarspec: minor simplification 3581c16d5681 shutdown: fix spacing in shutdown error message 9556255349ff nspawn: mount custom paths before writing to /etc 37447b7e78ad repart: fix partition maximum size segfault 7f231ba503e7 link: Add units and fix typo in (Rx|Tx)BufferSize= manpage. Clean up the implementation slightly e75d2cdb0b22 main: bump RLIMIT_MEMLOCK by physical RAM size e16b9a1e31bf nspawn: be more careful with creating/chowning directories to overmount 765d184a6976 homectl: say "home area" in more places c11bff4fa72b userdbctl: make --help fit in 80 columns 0e56c2ef3fe3 shell-completion/zsh: update systemd-analyze completions 2bb580f9942d zsh: fix disable/enable completion 607a19a30936 cgroup-util: check for SYSFS_MAGIC when detecting cgroup format ddb3c38efce1 stat-util: no need to open a file to check fs type bd8842304c87 sysusers,tmpfiles: always mention error when failing to replace specifiers bdea9b65d21a sysusers: add accidentally forgotten 'return' 17b059774dd4 man: document binfmt's new --unregister switch 560380d8ec94 binfmt: also unregister binfmt entries from unit 80835d9c51bd binfmt: modernize code a bit a1745741b82f shutdown: unregister all binfmt_misc entries before entering shutdown loop b637445950c8 shared: add common helper for unregistering all binfmt entries 0215625e9927 home: fix strv NUL termination 038988baa14e networkd: don't do lldp rx nor tx on bond devices 9512d576d9f3 sd-bus: Fix typo in sd_bus_message_append_array docs 63cef71dd068 shared: add NULL callback check in one more place 6b91ca22a2e5 core: fix unused variable warning when !HAVE_SECCOMP f7c1c79c576d udev: prepare memory for extra NUL termination for NULSTR 69e0ef0d99ec tree-wide: use recvmsg_safe() at various places cd0a84d4e956 socket-util: add recvmsg_safe() wrapper that handles MSG_CTRUNC 2bb48c704b8d sd-bus: work around ubsan warning c147bba1fb4a shared: Don't try calling NULL callback in bus_wait_for_units_clear f907491463ac run: don't wait for start job to complete when running interactively anyway d3d1550a5d98 man: Fix typo "multiplied with" -> "multiplied by" ae5a9f27c5e5 core: make sure we don't get confused when setting TERM for a tty fd a07d3eaf7657 man: document that VirtualEthernetExtra= has nothing to do with Bridge= 35fe81078eb1 core: add debug log when a job in the activation queue is not runnable a0cd882be891 core: add log_get_max_level check optimization in log_unit_full 2a6ad1093c3c util: return the correct correct wd from inotify helpers 9ec244c5c121 core: minor error code handling fixes a799283c91f6 man: document how to get the boot menu with zero time-out 7263e86c8dd8 resolved: return org.freedesktop.resolve1.DnsError.NXDOMAIN on LLMNR resolution failure 6eab4c2b3ece man: use manpages.ubuntu.com for resolvconf(8) link 75ccec5cde54 man: add a note that resolvconf updates /etc/resolv.conf in specific circumstances 3e3a31743a45 resolvectl: fix indentation of hexdump'ed packets 6576058fab75 journald: add configuration option for enabling/disabling audit during journald startup 52c5909f15ff man/systemd-service: clarify env variable expansion ac08df59c0db resolved: fix typo in an unused function and add comment (From OE-Core rev: 2ffe399df1670cc8e41cc5e0e854dadd5766a800) Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sysfsutils: rem leftover settings for libsysfs-devKonrad Weihmann2020-06-041-2/+0
| | | | | | | | | | | 22af6a2595dbec98ce4a2e3b1324ad8d400390ad removed the PACKAGES setting, but left the FILES-assignments of libsysfs-dev and -staticdev. As these have no use anymore they can be safely removed (From OE-Core rev: 941cc0cd0a69e95ca571a9a8cb0732bb06fa2b3a) Signed-off-by: Konrad Weihmann <kweihmann@outlook.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* gettext: update 0.20.1 -> 0.20.2Alexander Kanavin2020-06-0425-370/+319
| | | | | | | (From OE-Core rev: 2419443c02496c2f58f2d6ce093a3c2aa71eedb4) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>