summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
Commit message (Collapse)AuthorAgeFilesLines
...
* gcc: Do not set -march for arm64 for libatomicKhem Raj2020-05-153-4/+43
| | | | | | | | | | | | | | libatomic has mind of its own when it comes to setting -march for arm64 which conflicts with -mcpu option we pass from environment in some cases since we always pass -march/-mcpu in OE, its safe to remove this option mcpu removal from cortex-a55 is no longer needed since the option conflict is now removed from libatomic instead (From OE-Core rev: a5331c5a8bbe63c6c2e56ebec496b28968d4663d) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* file: Remove unneccessary override of PACKAGECONFIG for nativePeter Kjellerstedt2020-05-141-1/+0
| | | | | | | | | | There is no reason to set PACKAGECONFIG_class-native to the same value as the default PACKAGECONFIG. (From OE-Core rev: 276a21cbbfc929f718fd758b64e3e0567534fd41) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-numpy: Remove workaround for host gcc < 5Adrian Bunk2020-05-141-3/+0
| | | | | | | (From OE-Core rev: 170ff91c90c17fe6615c1616c4298a9948b818a9) Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* gcc10: Revert using __getauxval in libgccKhem Raj2020-05-142-0/+48
| | | | | | | | | | This was added recently, but it seems be chewing more than what it should and causes non glibc packages also depend on it. (From OE-Core rev: 595d2df62b049e463568ab97cfe26d6df96a18a9) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* gcc10: Default back to -fcommonKhem Raj2020-05-141-0/+1
| | | | | | | | | | | For time being change back to -fcommon as default, helps us iron out other issues, eventually this should be removed as we fix the packages to work with -fno-common (From OE-Core rev: 951e859b1e8297970278c539e989b8a6d06a9cb3) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* gcc10: Update to GCC 10.1 ReleaseKhem Raj2020-05-1454-699/+492
| | | | | | | | | | | | | | | | | * Package new gomp header acc_prof.h * Package lto-dump which is a new tool in gcc10 * All Changes are here [1] * Porting apps to gcc 10 help is here [2] * Backport a patch to fix CET errors on cross builds * Add patch to fix mingw libstdc++ [1] https://gcc.gnu.org/gcc-10/changes.html [2] https://gcc.gnu.org/gcc-10/porting_to.html (From OE-Core rev: 44c3881b18f74eb64379818fc150f94398fb8a49) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* llvm: Remove -fcommonAdrian Bunk2020-05-141-2/+0
| | | | | | | | | I cannot reproduce the problem. (From OE-Core rev: 80cc6e60b98da7c9de9e9da629353cf1fb687197) Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* file: add PACKAGECONFIG for auto optionsKonrad Weihmann2020-05-121-2/+8
| | | | | | | | | | | | | | | | | A few options of file configure are set to auto, which can lead to unpredictable effects when something in the sysroot does provide things that satisfy the autotools checks. In the worst case this will lead to package-qa failures as libraries are not set in RDEPENDS but configured for the tool. To mitigate changes of accidental configure set explicit options via newly introduced PACKAGECONFIG variables for bzip, lzma and zlib support, where the default is just zlib, as it was before (From OE-Core rev: a2236917395239eba7a8358ca4de61fd0d25b27f) Signed-off-by: Konrad Weihmann <kweihmann@outlook.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* gcc-runtime: Avoid march conflicts with newer cortex-a55 CPUsKhem Raj2020-05-121-0/+4
| | | | | | | | | | | gcc-runtime/libatomic explicitly add -march=armv8-a+lse for all arch64 but cortex-a55 is armv8.2-a, which essentially conflicts, so let gcc override it by not forcing the -mcpu option from TUNE_CCARGS (From OE-Core rev: 882df891e13ce5c64718c364efb9ef2bf189eabf) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* binutils: add patch to fix issues with gcc 10Richard Leitner2020-05-122-0/+62
| | | | | | | | | | gcc 10 introduced "-fno-common" as default. Therefore backport the according binutils patch to fix this issue. (From OE-Core rev: fbeb572e1872cf64786d01d5c6408a6765f814ce) Signed-off-by: Richard Leitner <richard.leitner@skidata.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libcomps: update to 0.1.15Richard Leitner2020-05-124-47/+15
| | | | | | | | | | | | | In this update the 0001-Make-__comps_objmrtree_all-static-inline.patch was mainlined by commit 18f52cb. Furthermore mainline commit 3237f44 fixes a build problem with the default "-fno-common" of gcc 10. (From OE-Core rev: 90b942d01decbcff3b883ee6fb4bba67fb446817) Signed-off-by: Richard Leitner <richard.leitner@skidata.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* pseudo: Fix enum typedefJacob Kroon2020-05-122-0/+32
| | | | | | | | | | | 'pseudo_access_t' is a type, so use typedef. Fixes building pseudo with gcc 10 where -fno-common is the default. (From OE-Core rev: a7d519f742aadc9110c2401f359254210a784f6b) Signed-off-by: Jacob Kroon <jacob.kroon@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-git: 3.0.5 -> 3.1.2Kai Kang2020-05-121-2/+2
| | | | | | | (From OE-Core rev: 8cf74d626d562aa83acf0b05597b85392e4943c5) Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-setuptools: add the missing rdependsMingli Yu2020-05-091-0/+1
| | | | | | | | | | | | | | Add the missing rdepends to fix below error: # python3 [snip] >>> import setuptools [snip] ModuleNotFoundError: No module named 'json' (From OE-Core rev: f1dce04d2643352cd7a2c5a91eefc01d52926ecd) Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rpm: fix file conflicts for MIPS64 N32Changqing Li2020-05-092-0/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | The following error occurred when prefer_color set to 2: Error: Transaction check error: file /sbin/ldconfig conflicts between attempted installs of ldconfig-2.31+git0+71f2b249a2-r0.mips64_n32 and lib32-ldconfig-2.31+git0+71f2b249a2-r0.mips32r2 file /usr/bin/gencat conflicts between attempted installs of lib32-libc6-utils-2.31+git0+71f2b249a2-r0.mips32r2 ... This was because: transactions_color = 001 (ELF32) & 010 (ELF64) & 100 (ELF32 N32 MIPS64) FColor = Current file color (001) & transaction_color (111) oFcolor = Previous file color (100) & transaction_color (111) when "neither preferred" happened, handled as conflicts. this is too restrictive for three way conflicts(mips64/mips64 n32/mips(32)). Fixed by perform a 'last-in-wins' resolution when "neither is preferred". refer: https://github.com/rpm-software-management/rpm/issues/193 https://git.openembedded.org/openembedded-core/commit/meta/recipes-devtools/rpm?id=36c225704daa58b98a4b7f2ef315eb944d8628b5 (From OE-Core rev: f94511fe5c163de8fb34d00ff3ba995437c3922c) Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg-keyrings: check if opkg-key exists before run postinstYi Zhao2020-05-091-1/+4
| | | | | | | | | | | By default, the opkg-key command is not included in pokg package because it is only installed when gpg support is enabled. We'd better check if it exists before run 'opkg-key populate' in pkg_postinst. (From OE-Core rev: 096a03659cdfa99ca2b4b50ff37d6f2001d0bc90) Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* cdrtools-native: fix upstream version checkAlexander Kanavin2020-05-071-1/+0
| | | | | | | (From OE-Core rev: 07fb6fcf418a63de19db5d6ea49f88288b33646a) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* build-compare: update to latest revisionAlexander Kanavin2020-05-072-42/+3
| | | | | | | | | | | Drop the patch as upstream has refactored the code, and recent reproducible builds work has likely rendered it unnecessary. (From OE-Core rev: fb26d418fdf556dc28df8304d9856fedcb586041) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* e2fsprogs: update to 1.45.6Alexander Kanavin2020-05-077-230/+3
| | | | | | | | | | Drop backports, and also 0001-misc-create_inode.c-set-dir-s-mode-correctly.patch as upstream code has been refactored. (From OE-Core rev: da9fec8592db913d13af3a936ab518e93496be3e) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* meson: fix upstream version checkAlexander Kanavin2020-05-071-0/+1
| | | | | | | (From OE-Core rev: 95140100585311860446b053a046c16ff059b3c0) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* patchelf: switch to gitAlexander Kanavin2020-05-071-3/+4
| | | | | | | | | | | The tarball download website is full of broken links; while direct tarball download still works, exploring around and checking for latest versions does not. (From OE-Core rev: d1c11259464ba2d972e1e1ad5c540050ccc80c15) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* git: update to 2.26.2Alexander Kanavin2020-05-073-11/+11
| | | | | | | | | | Disable iconv, as configure.ac attempts to run a cross-compiled test program otherwise. (From OE-Core rev: 6b18acfbe61aef449743f5ce0dfd77f83f5cb2a5) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* jquery: Upgrade 3.4.1 -> 3.5.0Joshua Watt2020-05-051-4/+4
| | | | | | | (From OE-Core rev: d0f883c4cbdcf722767b437a69002244be4cf8d9) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libdnf: Use single-quotes around string literals used in SQL statementsPeter Kjellerstedt2020-05-052-0/+37
| | | | | | | | | | | | | | | If sqlite is built with -DSQLITE_DQS=0 in accordance with https://sqlite.org/quirks.html#dblquote, migration to version 1.2 of the history database would fail with: History database cannot be created: .../var/lib/dnf/history.sqlite. Error: SQLite error on ":memory:": Executing an SQL statement failed: no such column: 1.2 (From OE-Core rev: 61d34df201cf6498854fa9258c320437b97071a4) Signed-off-by: Peter Kjellerstedt <pkj@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* gptfdisk: update to 1.0.5Alexander Kanavin2020-05-052-3/+32
| | | | | | | | | Add a patch to correctly include curses header. (From OE-Core rev: 99078a950877787704ea92d4557cb8e0ab3827fe) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* dpkg: Add riscv32 CPU supportKhem Raj2020-05-032-0/+40
| | | | | | | (From OE-Core rev: 6fef4583a6b578427ffd776d0ec1488649e924a7) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-dbusmock: add recipe from meta-oeAlexander Kanavin2020-05-031-0/+16
| | | | | | | | | This is needed for glib ptests. (From OE-Core rev: 6dbe449ac2ed7c93f71f00d53237c6aba4ebbf81) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-gitdb: update to 4.0.4Alexander Kanavin2020-05-032-3/+2
| | | | | | | | | License-Update: text reformatting (From OE-Core rev: 0bba7e2ee81dc2a143d1a29395289a94ac31a672) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* dnf: add a patch for base-files installation failuresAlexander Kanavin2020-05-022-0/+30
| | | | | | | (From OE-Core rev: 742a1b71249f4da1c8d8e13e270b0eb6128a3f66) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* dnf: upgrade 4.2.2 -> 4.2.21Alexander Kanavin2020-05-022-36/+1
| | | | | | | | | Drop upstreamed patches. (From OE-Core rev: 7828bf903001413cb38d34f4a2525f718380b88f) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libdnf: upgrade 0.28.1 -> 0.47.0Alexander Kanavin2020-05-025-147/+54
| | | | | | | | | | | | | | Add a patch that avoids hardcoded sphinx dependency. Switch off a couple of new features (zchunk, html docs for hawkey library via sphinx) that both require new dependencies. Move from modulemd 1.x to 2.x, drop upstreamed patches. (From OE-Core rev: ce54462de6642935859421f2116e25ca5b2faa8c) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libmodulemd: move from 1.x to 2.x versionAlexander Kanavin2020-05-024-28/+57
| | | | | | | | | | New libdnf requires 2.x and is the only consumer in oe-core (or elsewhere). (From OE-Core rev: 2c518de672d8876ff96e49b498feb898a497e6a5) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rpm: upgrade to 4.15.1Alexander Kanavin2020-05-029-845/+90
| | | | | | | | | | | | | | | | | | Drop patches that were merged upstream. 0001-mono-find-provides-requires-do-not-use-monodis-from-.patch modifies a file that was removed upstream. Add a 0001-rpmfc.c-do-not-run-file-classification-in-parallel.patch as unfortunately the new parallel file classification feature from upstream trips over somewhere in libmagic when inspected files are compressed: https://github.com/rpm-software-management/rpm/issues/756 (From OE-Core rev: 67257ca87c6fa8e6050a20ecea50daf834c7e869) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* gcc-target: Ensure buildtools-extended-tarball doesn't use arch=nativeRichard Purdie2020-05-021-5/+5
| | | | | | | | | | | | | | A nativesdk BBCLASSEXTEND was added to gcc-target without realising this would pass arch=native through to it for x86-64. This heavily optimises gcc output for the host its running on meaning it can't be reused via sstate on other machines. Add class-target overrides here to get the desired behaviour. All targets have been covered for completeness. (From OE-Core rev: d0d4853dd773f7bbe0f72e50144559b80e80d67a) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* pseudo: add macro guard for seccompKai Kang2020-04-291-1/+14
| | | | | | | | | | | | | | | | It fails to compile pseudo-native on centos 7: | ports/linux/pseudo_wrappers.c: In function ‘prctl’: | ports/linux/pseudo_wrappers.c:129:14: error: ‘SECCOMP_SET_MODE_FILTER’ undeclared (first use in this function) | if (cmd == SECCOMP_SET_MODE_FILTER) { | ^ Add macro guard for the definition to avoid the failure. (From OE-Core rev: d1c4492cb9cf5a624bb996c94e9a1589133be014) Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-numpy: update to 1.18.3Alexander Kanavin2020-04-294-135/+80
| | | | | | | (From OE-Core rev: f31e3d2e55962472ba585736a7190e833b9bdf87) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-pyparsing: update to 2.4.7Alexander Kanavin2020-04-292-2/+3
| | | | | | | (From OE-Core rev: e73b429a3b32e319f0cdbb932a476ba96e40f5a5) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-cython: update to 0.29.16Alexander Kanavin2020-04-292-2/+2
| | | | | | | (From OE-Core rev: b3f2ed624e772997c356d2b9690dc65ebd551dc0) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-cython: add from meta-oeAlexander Kanavin2020-04-292-0/+59
| | | | | | | | | This is needed by new python3-numpy. (From OE-Core rev: 5b62f1c313d8b9a74f49ef30e7fa5ff489ae3e84) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-pyparsing: add from meta-oeAlexander Kanavin2020-04-292-0/+24
| | | | | | | | | This is needed for python3-cython, which is needed by new python3-numpy. (From OE-Core rev: 85c025a7072558e49e4cf77ce03b3d156b9377a0) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* perl: update to 5.30.2Alexander Kanavin2020-04-294-71/+3
| | | | | | | | | | | | | racefix.patch was merged to perl-cross determinism.patch was partially merged to perl-cross 0001-tests-adjust-to-correctly-exclude-unbuilt-extensions.patch is no longer needed as issue is addressed upstream. (From OE-Core rev: d263537bc0a0ad8736dea5e49b93188b123d4a9f) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3: fix CVE-2020-8492Trevor Gamblin2020-04-262-0/+249
| | | | | | | | | CVE: CVE-2020-8492 (From OE-Core rev: 7cf314f3eb83750ec70f5b86045a5f5d195cddef) Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-setuptools: change shebang to python3Changqing Li2020-04-262-0/+38
| | | | | | | | | | | | we have offcially dropped python2, so it is possible that our code run on python3 only host, so change shebang to python3 to avoid error like: python: command not found (From OE-Core rev: c49ea8d5640d984e28ad63919e0b9ee549a4e17f) Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-pip: change shebang to python3Changqing Li2020-04-262-0/+62
| | | | | | | | | | | | we have offcially dropped python2, so it is possible that our code run on python3 only host, so change shebang to python3 to avoid error like: python: command not found (From OE-Core rev: 4a4fabaa8f6915513a3b1ef2268c402e96eca888) Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-pbr: change shebang to python3Changqing Li2020-04-262-0/+44
| | | | | | | | | | | | we have offcially dropped python2, so it is possible that our code run on python3 only host, so change shebang to python3 to avoid error like: python: command not found (From OE-Core rev: a0b6ae56970aa53f65ed10bebd90fefa410a7099) Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* binutils: Install PIC version of libiberty.aKhem Raj2020-04-261-0/+5
| | | | | | | | | | | | some architectures e.g. mips complain in linking apps which have shared libs that are linking with libiberty.a fixes errors like below libiberty/../../libiberty/hashtab.c:285:(.text+0xf8): relocation R_MIPS_26 against `htab_create_typed_alloc' cannot be used when making a shared object; recompile with -fPIC (From OE-Core rev: 49eacd44ff65b524c02ab93401dc97745d28415f) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* binutils: Detect proper static-libstdc++ support when using clangKhem Raj2020-04-262-0/+49
| | | | | | | | | | Fixes configure time tests to ensure static-libstdc++ is enabled when using clang (From OE-Core rev: 0f2c415f50364e3b341e9b0d043ec973feacc2f1) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* gcc: Configure all gccs with --disable-install-libibertyKhem Raj2020-04-264-14/+1
| | | | | | | | | | | | | | | OE uses libiberty from binutils, since its properly compiled as pic archive and applications and other libraries needing libiberty can properly link with it. With this option applied, explicit delete of libiberty headers and libraries is not required in install step, since they wont get installed in first place. (From OE-Core rev: fa8a205c69770d23323c9a06373db958af4b34d3) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* go: Rely on go-runtime to provide needed modulesKhem Raj2020-04-261-2/+2
| | | | | | | | | | | | | | go compiler is including go/src/cmd modules in -dev package which is in conflict with go-runtime-dev which provides exact same copy of this module along with other runtime modules, as a result when both go-dev and go-runtime-dev are included in image then it results in rootfs failures, here lets make go depend on go-runtime and dont install the cmd module here explicitly. (From OE-Core rev: 307ad88822950e8523b313d70a1fbab87048fa8d) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* run-postinsts: Set RemainAfterExit on systemd unitAlex Kiernan2020-04-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | run-postinsts is only expected to run once, but during startup, but if any dependency is pulled into a transaction, even once it has been marked disabled, then it can be restarted. This leads to occasional failures during QA if an ssh session starts whilst the existing transaction is still running: Finished Run pending postinsts. run-postinsts.service: Succeeded. Condition check resulted in Commit a transient machine-id on disk being skipped. Condition check resulted in Bind mount volatile /srv being skipped. Condition check resulted in Bind mount volatile /var/spool being skipped. Condition check resulted in Bind mount volatile /var/lib being skipped. Condition check resulted in Bind mount volatile /var/cache being skipped. Condition check resulted in Platform Persistent Storage Archival being skipped. Condition check resulted in Rebuild Hardware Database being skipped. Starting Run pending postinsts... Condition check resulted in Kernel Configuration File System being skipped. Condition check resulted in FUSE Control File System being skipped. Condition check resulted in Load Kernel Modules being skipped. Condition check resulted in File System Check on Root Device being skipped. Condition check resulted in Huge Pages File System being skipped. Condition check resulted in Journal Audit Socket being skipped. dropbear@125-192.168.7.2:22-192.168.7.1:44226.service: Succeeded. Condition check resulted in Platform Persistent Storage Archival being skipped. Started SSH Per-Connection Server (192.168.7.1:44226). dropbear@124-192.168.7.2:22-192.168.7.1:44224.service: Succeeded. Started SSH Per-Connection Server (192.168.7.1:44224). Condition check resulted in Commit a transient machine-id on disk being skipped. Condition check resulted in Bind mount volatile /srv being skipped. Condition check resulted in Bind mount volatile /var/spool being skipped. Condition check resulted in Bind mount volatile /var/lib being skipped. Condition check resulted in Bind mount volatile /var/cache being skipped. Condition check resulted in Platform Persistent Storage Archival being skipped. Condition check resulted in Rebuild Hardware Database being skipped. Failed to start Run pending postinsts. run-postinsts.service: Failed with result 'start-limit-hit'. run-postinsts.service: Start request repeated too quickly. Setting RemainAfterExit ensures that the unit remains active and is not gratuitously restarted, unless done so explicitly using systemctl restart. (From OE-Core rev: 9f5830375064af920c807b57b5b36691ad346199) Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>