summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
Commit message (Collapse)AuthorAgeFilesLines
...
* util-linux: fix alternatives setting for switch-rootRandy MacLeod2018-10-181-2/+4
| | | | | | | | | | | | | The alternative setting for switch_root belongs to the util-linux-switch-root package instead of the util-linux package. Fix this problem to avoid a dangling symlink: /usr/bin/switch_root-> /usr/bin/switch_root.util-linux on target and in the sdk. (From OE-Core rev: b8366a7057da8b880ca36c38999ef658594f4fde) Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glib.inc: drop duplicate locale-base-fr-fr runtime dependencyMartin Jansa2018-10-141-1/+0
| | | | | | | (From OE-Core rev: 7535797e0df1e5f88d8b4bf251e6eab3279707d6) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: Do not use thumb1 ISA on armv6Khem Raj2018-10-142-0/+2
| | | | | | | | | | | | This does not work and is unsupported so lets compile glibc in ARM mode always on armv6 SOCs Fixes [YOCTO #12929] (From OE-Core rev: de01490695c70ae29b4f2f82aecbffaf5667449e) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* initscripts: populate-volatiles: Speed up processingJoshua Watt2018-10-141-4/+33
| | | | | | | | | | | | | | | | | | | | | | | | Checking the requirements for each volatiles file in the populate-volatiles script can be very slow when there are a large number of volatiles files, easily consuming over 80% of the processing time. These checks don't usually uncover any problems so concatenate all the volatiles files together and process them as one large file for a "fast path" option. This ensures that the penalty for checking the requirements is only incurred once. In the event that checking the requirements for the unified file fails, fall back to the slow process of checking each one individually so that the offending one can be skipped. The core file is handled separately because it is responsible for creating the temp directory used by check_requirements and thus must always run first and without having its requirements checked. [YOCTO #12949] (From OE-Core rev: f380fac8a43a75861f3157777b12a317b985a5e1) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* nativesdk-packagegroup-sdk-host: add nativesdk-flexChen Qi2018-10-121-0/+1
| | | | | | | | | | | nativesdk-flex is needed for kernel development inside traidtional SDK environment, more particularly, `make scripts' under /usr/src/kernel. So add it to nativesdk-packagegroup-sdk-host. (From OE-Core rev: 6f8b2a9e03f4e54befe4df0fcfca24e676aef7b5) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* initscripts: read-only-rootfs-hook: Use overlay if availableJoshua Watt2018-10-121-2/+7
| | | | | | | | | | | | Copying files from the read-only /var/lib to tmpfs can be slow and waste memory. If the kernel supports the overlay file system, use it to mount a writable tmpfs on top of the read-only /var/lib and avoid the file copy. (From OE-Core rev: 370fda1b2e8d5dc011522131bba4106de26bfb19) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* util-linux: fix alternatives setting for unshareChen Qi2018-10-121-2/+4
| | | | | | | | | | | The alternative setting for unshare belongs to the util-linux-unshare package instead of the util-linux package. Fix this problem to avoid a dead symlink /usr/bin/unshare -> /usr/bin/unshare.util-linux on target. (From OE-Core rev: 5c4922d5a3bc4a5aaa807d9e65210d0c01c9bdef) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: add ALTERNATIVE for rebootAnuj Mittal2018-10-121-2/+5
| | | | | | | | | | reboot is provided by busybox too. Add ALTERNATIVE to ensure that there are no conflicts when both are installed. (From OE-Core rev: a27a197ad4bb32fa93aa95e685e9e70ffe755811) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: move reboot out of init.cfgAnuj Mittal2018-10-122-2/+1
| | | | | | | | | | | | | | | | | | | | | | | reboot is needed for initramfs where no init manager is set. This partially reverts: commit b6fbb3f3d4d6367b0fd7921078f67057551c7ede Author: Chen Qi <Qi.Chen@windriver.com> Date: Mon Jul 30 17:41:57 2018 +0800 busybox: move init related configs to init.cfg Move init related configs to init.cfg. These config items do not make much sense unless busybox is selected as the init manager. They should belong to init.cfg. We would need to set up ALTERNATIVES for reboot in this case. (From OE-Core rev: 239a4fc1db530f201e1f7069b2045135699a85a7) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* init-install-efi.sh: improve info messageAnuj Mittal2018-10-121-1/+1
| | | | | | | | | | Let users know that the installation was successful and that pressing Enter would lead to a reboot. (From OE-Core rev: a5993d9afab060d07213c14c0188422c9e258693) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libxml2: Make it compatible with externalsrcPeter Kjellerstedt2018-10-101-3/+3
| | | | | | | | | | | | | Fetch the test tar ball to a subdirectory in ${S}. This avoids the following error after having done `devtool modify libxml2`: | DEBUG: Executing shell function do_configure | find: ‘.../build/tmp/work/mips32r2el-nf-poky-linux/libxml2/2.9.4-r0/xmlconf/’: No such file or directory (From OE-Core rev: d0d55add6cb01252a46d829ade75666920b676fa) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glib-2.0: add missing locale dependencies to PN-ptestRoss Burton2018-10-101-0/+14
| | | | | | | | | | | | The test suite skips several tests if the required locales are not found, so add them as dependencies of glib-2.0-ptest. (From OE-Core rev: b9317997bd4527b7873eb4f903cc4890b5b3580f) (From OE-Core rev: f1c122fdc14624a659f8d4b07e1ff1f21e472e50) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glib: fix Lithuanian strings in GDate test suiteRoss Burton2018-10-102-0/+21
| | | | | | | | | | | | This test suite has hard-coded strings which don't match the new translations in glibc 2.28, so update the test suite. (From OE-Core rev: e1fa8611de2df3a1a15ae795c34f32e4e7fdbc79) (From OE-Core rev: fe3eb823cded89acb123308e56a5c888ffa1409b) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libxml2: move xmlcatalog and xmllint back into libxml2-utilsAndre McCurdy2018-10-101-3/+4
| | | | | | | | | | | Packaging of libxml2-utils has been broken since 2011: http://git.openembedded.org/openembedded-core/commit/?id=76052861cc95fd4ad4c4b9eb6ce4cd1065ad4dc9 (From OE-Core rev: 6f49e72dbb36d0a42993e7c788c17ff03571ece7) Signed-off-by: Andre McCurdy <armccurdy@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: unify recipe styleAndrej Valek2018-10-101-49/+49
| | | | | | | | | - change spaces to tabs and unify indent level (From OE-Core rev: 38f8c4725da016df100e7ed434eece26ba77bf5f) Signed-off-by: Andrej Valek <andrej.valek@siemens.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: do not write grep outputs into logAndrej Valek2018-10-101-8/+8
| | | | | | | | | Make grep quiet for prevent to write information into logs. (From OE-Core rev: f9f150fa38b188b279b65886cad187b15bae0ce6) Signed-off-by: Andrej Valek <andrej.valek@siemens.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: fix conflict with runlevel appletAndrej Valek2018-10-104-15/+2
| | | | | | | | | | - remove OE runlevel script which conflicts with busybox's applet - don't install empty directories (From OE-Core rev: dca804a9595002ddc3893720a96b7f1a67b6e6c4) Signed-off-by: Andrej Valek <andrej.valek@siemens.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* util-linux: Use update-alternatives for fsfreeze, nsenterMax Krummenacher2018-10-091-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | busybox may also provide a fsfreeze and nsenter implementation, so use u-a to allow installing them side by side. If one installs both, busybox and util-linux, one gets the following error (seen on a populate-sdk run): | ERROR: Postinstall scriptlets of ['busybox'] have failed. If the intention is to defer them to first boot, | then please place them into pkg_postinst_ontarget_${PN} (). | Deferring to first boot via 'exit 1' is no longer supported. And the coresponding do_populate_sdk extract: | ... | update-alternatives: Error: not linking ...sdk/image/usr/local/oecore-x86_64/sysroots/armv7at2hf-neon-angstrom-linux-gnueabi/usr/sbin/fsfreeze | to /bin/busybox.nosuid /bin/busybox.nosuid since ...sdk/image/usr/local/oecore-x86_64/sysroots/armv7at2hf-neon-angstrom-linux-gnueabi/usr/sbin/fsfreeze | exists and is not a link | ... (From OE-Core rev: 94e3fdff76452d3acde42b164d3ffa6b72540a40) Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glib-2.0: Include the complete license information for pcrePeter Kjellerstedt2018-10-091-2/+1
| | | | | | | | | | | | | | | | | For some reason, the copyright part was left out of the license information for pcre in LIC_FILES_CHKSUM, preventing it from being used in, e.g., documentation to satisfy the requirements of the license. Also drop pcre/COPYING from LIC_FILES_CHKSUM as it does not really contain any licensing information, it only refers to a LICENSE file that does not exist. License-Update: Include the complete license information for pcre (From OE-Core rev: 2f5a7e7a04cbdc75d1b9607903889b1fd6c5e1ba) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libxml2: refresh CVE-2017-8872Ross Burton2018-10-041-23/+50
| | | | | | | | | | | The patch associated with the CVE-2017-8872 report was never merged into libxml2, but a slightly different patch for the same problem was. Cherry-pick that as a backport, which also fixes the failing test suite. (From OE-Core rev: 512869aea6dde1bb2374601f7c4d793ac9edaa42) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* nativesdk-packagegroup-sdk-host.bb: remove nativesdk-dnfChen Qi2018-10-041-1/+0
| | | | | | | | | | | | | | | | | Currently the dnf command inside SDK does not work. We will get error message like below: ImportError: No module named 'dnf' So remove it from nativesdk-packagegroup-sdk-host, otherwise, users will get unpleasant experience if they are working inside SDK environment on some distros like Fedora. (From OE-Core rev: a7005a4fc5f29db796b1d258b7c259b9433848ce) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* nativesdk-bison: Add to nativesdk-packagegroup-sdk-host and set BISON_PKGDATADIRHe Zhe2018-10-041-0/+1
| | | | | | | | | | | bison is needed when building kernel. Add it to nativesdk-packagegroup-sdk-host and set BISON_PKGDATADIR for bison to use its components. (From OE-Core rev: 8aa27e4eb2f08281329ca1a1da421c6fc376bc8d) Signed-off-by: He Zhe <zhe.he@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: Fix glibc reproducibility issuesRichard Purdie2018-10-042-0/+260
| | | | | | | | | | | | | Currently for non-IA platforms, glibc is not reproducible as host system paths are being injected into target binaries. These spread through all target binaries on the system which link to the libc. Add a patch which injects .file directives into the assembly pieces and works around this issue until a better solution can be found. (From OE-Core rev: 4d6fd8178da75f9a1870db290bbe24de5af752c9) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* meta-ide-support: add cmake-nativeChin Huat Ang2018-10-041-1/+1
| | | | | | | | | | | Include cmake as part of build tree toolchain so that it is populated into meta-ide-support's recipe-sysroot-native which is prepended to $PATH, this ensures cmake-native is picked up first before host cmake. (From OE-Core rev: 0b51e0b2ac6f3cc95af4061253dc76a91df91349) Signed-off-by: Chin Huat Ang <chin.huat.ang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: bump SRCREV to latest 2.28Martin Jansa2018-10-0438-375/+512
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * drop one patch already applied in upstream * this is still only partial fix for issues with -O0 and the bigger issue might be detected in runtime as described in: https://sourceware.org/glibc/wiki/FAQ#Why_do_I_get:.60.23error_.22glibc_cannot_be_compiled_without_optimization.22.27.2C_when_trying_to_compile_GNU_libc_with_GNU_CC.3F https://sourceware.org/bugzilla/show_bug.cgi?id=19444 and tested in glibc build: https://sourceware.org/git/?p=glibc.git;a=blob;f=include/libc-symbols.h;h=8b9273c13a19f2658105c7997267d9086adae716;hb=HEAD#l74 * restore the anonymous python to trigger fatal error when -O0 is used (but don't restore the notes for -O, -O1, -Os * git log --oneline 3c03baca37fdcb52c3881e653ca392bba7a99c2b..044c96f0d5595aeb0bb4e79355081c5a7f4faca5 | tee 044c96f0d5 Fix misreported errno on preadv2/pwritev2 (BZ#23579) 3a67c72c15 Fix stack overflow in tst-setcontext9 (bug 23717) 2339d6a55e i386: Use ENTRY and END in start.S [BZ #23606] 0ef2f4400c Fix strstr bug with huge needles (bug 23637) a55e109709 Fix tst-setcontext9 for optimized small stacks. 307d04334d misc: New test misc/tst-gethostid e7d22db29c Linux gethostid: Check for NULL value from gethostbyname_r [BZ #23679] 1fe2b9ca8a Fix segfault in maybe_script_execute. 0b79004569 regex: Add test tst-regcomp-truncated [BZ #23578] 58559f1443 regex: fix uninitialized memory access aa8a3e4cde pthread_cond_broadcast: Fix waiters-after-spinning case [BZ #23538] c87b5bab24 Improve ChangeLog message. 66fdfd57fe Regen RISC-V rvd ULPs b0aa03dfff RISC-V: Fix rounding save/restore bug. 2f498f3d14 nss_files: Fix file stream leak in aliases lookup [BZ #23521] bfcfa22589 nscd: Deallocate existing user names in file parser d05b05d157 error, error_at_line: Add missing va_end calls 4b25485f03 Linux: Rewrite __old_getdents64 [BZ #23497] 726e1554ce hurd: Avoid PLTs for __pthread_get/setspecific 7f11842e74 hurd: Add missing symbols for proper libc_get/setspecific * update 0031-sysdeps-ieee754-prevent-maybe-uninitialized-errors-w.patch based on review comments in upstream and extend it to cover PPC based on: http://lists.openembedded.org/pipermail/openembedded-core/2018-September/156258.html * update 0032-sysdeps-ieee754-soft-fp-ignore-maybe-uninitialized-w.patch based on review comments in upstream * add 0033-locale-prevent-maybe-uninitialized-errors-with-Os-BZ.patch with a fix for aarch64 build with -Os * build tested with qemuarm, qemuarm64, qemux86, qemux86-64, qemuppc, qemumips, qemumips64 with -O, -O1, -Os. (From OE-Core rev: f1f38df91975f9b53933c2d2fbdca291d1872d5f) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc-package.inc: correct intention for deleting /usr/lib as neededAwais Belal2018-09-271-3/+4
| | | | | | | | | | | | | | | | In case the baselib is lib64 we would want to delete /usr/lib after removing the /usr/lib/locale dir and the implementation wanted to do that earlier as well but the fault was checking an already removed dir (/usr/lib/locale) before trying to remove /usr/lib as that check would always fail. Now we simply try to delete /usr/lib after deleting /usr/lib/locale to make sure it deletes cleanly and is empty at the time of deletion. (From OE-Core rev: 4dad1568f8f84ec9de4bf7235822f77a8ee6a413) Signed-off-by: Awais Belal <awais_belal@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* util-linux: Fix packaging of util-linux-unshareOtavio Salvador2018-09-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Below commit has added the unshare to alternatives but did not fix the packaging of the changed file. ,----[ Offending commit ] | commit 147da8fe7458a38598845958cb358bb094eba57b | Author: Ioan-Adrian Ratiu <adrian.ratiu@ni.com> | Date: Thu Jul 5 11:57:19 2018 +0300 | | util-linux.inc: add fallocate & unshare to alternatives | | These binaries can be provided by busybox triggering a conflict in | do_rootfs so update-alternatives needs to know about them to properly | create the symlinks. | | Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com> | Signed-off-by: Ross Burton <ross.burton@intel.com> `---- (From OE-Core rev: a68f1cacb560632382f8f8ff0c7e03e39a891b29) Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glib-2.0: Drop allow /run/media for root patchAlex Kiernan2018-09-252-38/+0
| | | | | | | | | | | | | | | Upstream implemented an equivalent fix in: c672fcc0a8d6 ("gunixmounts: Allow root to display mounts under /run/media/$username") As a result, this change is completely broken when running as root, as user_name is unitialised when testing strcmp(user_name, "root") so just segfaults. (From OE-Core rev: 547e81b678a616ebbdf2e5cc86e918966fafb894) Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* build-appliance-image: Update to master head revision2.6_M3Richard Purdie2018-09-241-1/+1
| | | | | | (From OE-Core rev: e3f5ceec690379d64bd38330111a32f6c8fc6353) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* build-appliance-image: Update to master head revisionRichard Purdie2018-09-241-2/+2
| | | | | | (From OE-Core rev: f010915f06c1b6c72089b56fb610f60e4fbc5065) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Bring in patches post 1.20 releaseKhem Raj2018-09-244-109/+2
| | | | | | | | | | | | | | | | | There have been regressions found in 1.20 release, this is cumulative update to bring these changes and drops the local patches which have been upstreamed in this delta https://git.musl-libc.org/cgit/musl/log/?qt=range&q=0fa1e638e87cf257e9f96b4019b2076afd674a19..c50985d5c8e316c5c464f352e79eeebfed1121a9 License-Update: Dropped BSD Prng implementation https://git.musl-libc.org/cgit/musl/commit/COPYRIGHT?id=c50985d5c8e316c5c464f352e79eeebfed1121a9 (From OE-Core rev: 0e1f892ed34d4c84f2a9164f10efad94f9282c49) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: fix Segmentation fault in gethostid.cMingli Yu2018-09-212-0/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Linux gethostid: Check for NULL value from gethostbyname_r [BZ #23679] A NULL value can happen with certain gethostbyname_r failures. Before this patch, there is a Segmentation fault as below: # /mybuild/hostid Segmentation fault # gdb /mybuild/hostid GNU gdb (GDB) 8.2 Copyright (C) 2018 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-wrs-linux". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /mybuild/hostid...done. (gdb) r Starting program: /mybuild/hostid Program received signal SIGSEGV, Segmentation fault. 0x00007ffff7f0330e in gethostid () at ../sysdeps/unix/sysv/linux/gethostid.c:125 125 memcpy (&in, hp->h_addr, (gdb) bt #0 0x00007ffff7f0330e in gethostid () at ../sysdeps/unix/sysv/linux/gethostid.c:125 #1 0x0000555555555159 in main () # cat /mybuild/hostid.c #include <stdio.h> #include <unistd.h> int main(int argc, char *argv[]) { long hostid; hostid = gethostid(); printf("the hostid is %ld\n", hostid); } (From OE-Core rev: 92c266fd9b1c4034a13bd5b102d1817df388a7b5) Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libgloss_3.0.0.bb: Ensure ${D}${libdir} exists installing contentNathan Rossi2018-09-211-0/+1
| | | | | | | | | | | Some targets do not populate any content into libdir, so make sure it is created before attempting to move files/directories into it. (From OE-Core rev: f8d7394f314041de7bcbf06ccb6405f64c68fad0) Signed-off-by: Nathan Rossi <nathan@nathanrossi.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: Add util-linux-fsck to RDEPENDSAlex Kiernan2018-09-211-2/+2
| | | | | | | | | | | | | | | systemd-fsck expects util-linux-fsck passing a number of options that busybox fsck doesn't interpret. It then continues silently when run, so disks end up not having fsck run at all. Move util-linux-fsck from RRECOMMENDS to RDEPENDS to ensure we have the fsck which systemd expects. (From OE-Core rev: 409c3424250d55d1c5549841ddae22288aaa4859) Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libgloss_3.0.0.bb: Consolidate rmdir with -pNathan Rossi2018-09-211-2/+1
| | | | | | | | | | | Consolidate the rmdir of multiple directories with the use of -p to delete the leaf empty directory and any empty ancestor directories. (From OE-Core rev: ba2f5ad890ecf94f541d84cc04669a6b02990d39) Signed-off-by: Nathan Rossi <nathan@nathanrossi.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* dropbear: remove localoptions.h in source searchingAndrej Valek2018-09-212-52/+0
| | | | | | | | | | - localoptions.h is automatically searched in build directory (From OE-Core rev: 40fe89027e1b9ed63c65ff026bc6cce5de1b814a) Signed-off-by: Andrej Valek <andrej.valek@siemens.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* dbus-test: fix ptest failed problem when multilib is enabledChangqing Li2018-09-212-1/+2
| | | | | | | | | | | | | | | | | Fix some failed info like: | ./test/test-bus: relocation error: ./test/test-bus: symbol | _dbus_threads_init_debug, version LIBDBUS_PRIVATE_1.10.10 not defined | in file libdbus-1.so.3 with link time reference | FAIL: test/test-bus In run-ptest, LD_LIBRARY_PATH is set to /usr/lib, but when multilib is enabled, /usr/lib64 will be used. fix by replace with correct path. (From OE-Core rev: d1bdf962dc3f121066bd7efb451dd9072b881718) Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Add aliases for glibc provided librariesKhem Raj2018-09-211-0/+16
| | | | | | | | | | | | | | This is a step towards running pebuilt applications for glibc on musl There are many realworld applications which are not always built from source, especially provided by third party Package the glibc symlinks into new package musl-glibc-compat (From OE-Core rev: 8ea0680462c506e01244d3fd3d35e6b2f805ada6) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* dummy-sdk-package.inc: work around MACHINE_ARCH SSTATE_MANMACHMartin Jansa2018-09-201-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * since following change: allarch: only enable allarch when multilib is not used the sstate-diff-machines.sh reports different signature for target-sdk-provides-dummy when multilib is enabled === Comparing signatures for task do_populate_sysroot.sigdata between qemux86 and qemux86copy === ERROR: lib32-target-sdk-provides-dummy different signature for task do_populate_sysroot.sigdata between qemux86 and qemux86copy basehash changed from b0a44b2c7003b6b4aa3a023d9cb9fe82 to 3a59fa25ddb6a95aff079d477ebf3457 Variable SSTATE_MANMACH value changed from 'qemux86' to 'qemux86copy' ERROR: target-sdk-provides-dummy different signature for task do_populate_sysroot.sigdata between qemux86 and qemux86copy basehash changed from 9e44f1deb3d15886ee96db1a3332764c to 6b417d08a5113c9b06d13b3681f5ab4f Variable SSTATE_MANMACH value changed from 'qemux86' to 'qemux86copy' It's using: inherit allarch python() { # Put the package somewhere separate to ensure it's never used except # when we want it # (note that we have to do this in anonymous python here to avoid # allarch.bbclass disabling itself) d.setVar('PACKAGE_ARCH', '${DUMMYARCH}') } and DUMMYARCH = "sdk-provides-dummy-target" The difference as shown with bitbake -e before and after reverting allarch.bbclass commit: before revert: $SSTATE_MANMACH [2 operations] set? oe-core/meta/classes/sstate.bbclass:61 "${SSTATE_PKGARCH}" set sstate.bbclass:100 [__anon_111_oe_core_meta_classes_sstate_bbclass] "machineName" pre-expansion value: "machineName" SSTATE_MANMACH="machineName" $SSTATE_PKGARCH set oe-core/meta/classes/sstate.bbclass:11 "${PACKAGE_ARCH}" SSTATE_PKGARCH="sdk-provides-dummy-target" $PACKAGE_ARCH [3 operations] set oe-core/meta/conf/bitbake.conf:150 [_defaultval] "${TUNE_PKGARCH}" set oe-core/meta/conf/documentation.conf:304 [doc] "The architecture of the resulting package or packages." set dummy-sdk-package.inc:12 [__anon_12_oe_core_meta_recipes_core_meta_dummy_sdk_package_inc] "${DUMMYARCH}" pre-expansion value: "${DUMMYARCH}" PACKAGE_ARCH="sdk-provides-dummy-target" after revert: $SSTATE_MANMACH set? oe-core/meta/classes/sstate.bbclass:61 "${SSTATE_PKGARCH}" SSTATE_MANMACH="allarch" $SSTATE_PKGARCH [2 operations] set oe-core/meta/classes/sstate.bbclass:11 "${PACKAGE_ARCH}" set sstate.bbclass:98 [__anon_111__oe_core_meta_classes_sstate_bbclass] "allarch" pre-expansion value: "allarch" SSTATE_PKGARCH="allarch" $PACKAGE_ARCH [4 operations] set oe-core/meta/conf/bitbake.conf:150 [_defaultval] "${TUNE_PKGARCH}" set oe-core/meta/conf/documentation.conf:304 [doc] "The architecture of the resulting package or packages." set oe-core/meta/classes/allarch.bbclass:5 "all" set dummy-sdk-package.inc:12 [__anon_12_oe_core_meta_recipes_core_meta_dummy_sdk_package_inc] "${DUMMYARCH}" pre-expansion value: "${DUMMYARCH}" PACKAGE_ARCH="sdk-provides-dummy-target" the relevant part of the anonymous python in sstate.bbclass: elif bb.data.inherits_class('allarch', d) and d.getVar("PACKAGE_ARCH") == "all": d.setVar('SSTATE_PKGARCH', "allarch") else: d.setVar('SSTATE_MANMACH', d.expand("${PACKAGE_ARCH}")) So with allarch.bbclass change, the PACKAGE_ARCH isn't set to "all" because multilib is enabled, but that causes sstate.bbclass to set SSTATE_MANMACH to MACHINE instead of SSTATE_PKGARCH allarch, where it got MACHINE is still a bit of mystery to me. (From OE-Core rev: f25cc92cfd692fd23f21fd736243b81f116fd37a) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* coreutils: update printenv's ALTERNATIVE_LINK_NAMEMartin Jansa2018-09-201-5/+8
| | | | | | | | | * use base_bindir like busybox does to prevent conflicting u-a configs (From OE-Core rev: ae947ffd0c1531b6a3df250199bff38cce2f5533) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: fix build with -OMartin Jansa2018-09-204-12/+169
| | | | | | | | | | * tested for qemuarm, qemux86 with -O, -O0, -Os, with gcc * to build with -O0 I had to remove restriction from systemtap first (From OE-Core rev: be3d12c6b1003348f1dabec9d2253f22b42f0387) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* initramfs-framework/udev: call settle before killAnuj Mittal2018-09-201-0/+1
| | | | | | | | | | | | | | | | | | | | | | When mount command is executed in rootfs module of initrd, eudev creates a loop0 device node, applies rules and adds a inotify watch to it. Right after this step, we execute finish which first tries to kill any running udevd daemon before doing a switch_root. In some cases, it is possible that switch_root is executed before inotify_add_watch was actually processed which would lead to errors like: | inotify_add_watch(6, /dev/loop0, 10) failed: No such file or directory Make sure that we process all the events in queue before actually trying to kill udevd to prevent this race. Fixes [YOCTO #12861] (From OE-Core rev: a85c34d263fcf1542bbedcaf1634302466bb20cf) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* udev-extraconf: Add systemd-mount to udev-extraconf/mount.shHongzhi.Song2018-09-172-17/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Udev-extraconf works correctly with sysvinit in the aspect of automounting block devices. But it has a serious problem in case of systemd. Block devices automounted by udev is unaccessible to host space(out of udevd's private namespace). For example, we cannot format those block devices. e.g. root@qemux86:~# mkfs.ext4 /dev/sda1 mke2fs 1.43.8 (1-Jan-2018) /dev/sda1 contains a ext4 file system last mounted on Tue Apr 3 06:22:41 2018 Proceed anyway? (y,N) y /dev/sda1 is apparently in use by the system; will not make a filesystem here! Other distributions has no such problem, because they use a series of rules to manager block devices. Different types of block devices match different rules. But udev-extraconf just use one rule, automount.rules, which results in this problem. The 'systemd-mount' command is recommended by the systemd community to solve such problems. This patch makes use of 'systemd-mount' to solve the above problem. [YOCTO #12644] (From OE-Core rev: a0b3389c5afc23f622f793cbad8b4135093e6f08) (From OE-Core rev: 4af22800a7af4fcb80cafe08d982a4850d9dd2ad) Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Add MAX_HANDLE_SZKhem Raj2018-09-172-0/+30
| | | | | | | | | (From OE-Core rev: d24bafa872cd1915ca23468bb37be98518347e02) (From OE-Core rev: a5b0265e83f3c5a222c1b08bc853bec40e5a5148) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Wire-up name_to_handle_at and name_to_handle_at syscallsKhem Raj2018-09-172-0/+77
| | | | | | | | | (From OE-Core rev: c70bb5a24e8923a34adb9c7b8298ae12702e3f27) (From OE-Core rev: a74faf487545df16c7395ee6f6a302f989c1341b) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* initramfs-framework: Don't use 'tr'Andrew Bresticker2018-09-131-1/+1
| | | | | | | | | tr is available in busybox, but not in toybox. Just use sed instead. (From OE-Core rev: 518cca6711f737f44ff74a5ac1308de8c9b49e78) Signed-off-by: Andrew Bresticker <abrestic@waymo.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* coreutils: add alternative target for niceJens Rehsack2018-09-131-5/+9
| | | | | | | | | | | | | Avoid coreutils conflicts with nice from other recipes, like busybox - even if that's not enabled by default. In situations, where coreutils is a dependency for -dev images and small busybox nice is available always, it avoids extra effort for coreutils for those users. (From OE-Core rev: 57b1b20abca7d6821e99802147b93f4f577cfad0) Signed-off-by: Jens Rehsack <sno@netbsd.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* eudev: set configure option --with-rootlibexecdirKai Kang2018-09-131-1/+2
| | | | | | | | | | | | | | Set configure option '--with-rootlibexecdir' for eudev to fix udev.pc file conflict: | file /usr/share/pkgconfig/udev.pc conflicts between attempted installs of eudev-dev-3.2.5-r0.core2_64 and lib32-eudev-dev-3.2.5-r0.x86 It alway sets 'udevdir' in udev.pc with value '/lib/udev' that systemd does the same thing. (From OE-Core rev: 2585f4252a3831bf9c5e6ab69d9da2c1325e6bc0) Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libgloss_3.0.0.bb: Fix up mv pattern to include libnosysNathan Rossi2018-09-111-1/+2
| | | | | | | | | | | | | | | | | | | | | | When installing libgloss libraries handle the ${TARGET_SYS}/lib contents so that it is placed in ${libdir} instead of ${libdir}/lib. This resolves a packaging QA issue. ERROR: libgloss-3.0.0-r0 do_package: QA Issue: libgloss: Files/directories were installed but not shipped in any package: /usr/lib/lib /usr/lib/lib/libnosys.a /usr/lib/lib/nosys.specs Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install. libgloss: 3 installed and not shipped files. [installed-vs-shipped] (From OE-Core rev: 69ce8ba6cc610f310ae28d988d487918906e6ef9) Signed-off-by: Nathan Rossi <nathan@nathanrossi.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: set split-bin to true by defaultAnton Gerasimov2018-09-111-0/+1
| | | | | | | | | | | | | Not doing so will make meson chose where to install init binary based on irrelevant features of the build machine. PACKAGECONFIG option is defined to override this behavior. (From OE-Core rev: 4ff2282a7dc421c3ea6578c73fbbba768eeed146) Signed-off-by: Anton Gerasimov <tossel@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>