poky/meta
Ross Burton 0652fb68b2 package_manager: don't race on a file when installing complementary packages
PackageManager.install_complementary() uses WORKDIR/installed_pkgs.txt as a
temporary file but if two tasks are executing for the same recipe which uses
this file (e.g. bitbake my-image my-image:do_populate_sdk) then it's possible
for the file to be overwritten or deleted.

Instead of using a static filename, use tempfile to generate a unique name and
ensure it is cleaned up when finished.

Also move the glob generation/expansion earlier in the function as if there are
no globs to install, we don't need to generate a package list.

(From OE-Core rev: f5a1013ffa9815f22e13989e2bcb83f966e7ce2c)

(From OE-Core rev: b02b54192ce71606aac30c21f3ff2199fa70a529)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[Fixup do to merge conflicts]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-04-05 15:13:47 +01:00
..
classes uninative: Add compatiblity version check 2018-03-15 15:48:00 -07:00
conf default-distrovars: don't rename locales for nativesdk 2018-04-05 15:13:47 +01:00
files kernel, license, sstate, rootfs.py: Remove deploy directory README 2017-08-29 23:43:50 +01:00
lib package_manager: don't race on a file when installing complementary packages 2018-04-05 15:13:47 +01:00
recipes-bsp gnu-efi: Fix build with gcc7 2018-03-04 11:12:12 +00:00
recipes-connectivity portmaper: checkuri fails. 2018-03-04 11:12:12 +00:00
recipes-core glibc: relocate locale paths in nativesdk 2018-04-05 15:13:47 +01:00
recipes-devtools unfs3: Fix libtirpc usage for unfs3-native version 2018-03-15 15:47:59 -07:00
recipes-extended libtirpc: Extend to native and nativesdk recipes 2018-03-15 15:47:59 -07:00
recipes-gnome adwaita-icon-theme: add a patch to speed up the do_install() task 2017-12-09 14:34:36 +00:00
recipes-graphics fontconfig: Fix namespace conflicts with glibc 2017-12-04 17:34:35 +00:00
recipes-kernel linux-firmware: Add reference to iwlwifi-8000C firmware 2018-03-19 15:58:33 +00:00
recipes-lsb4 libpng: lsb version 1.2.56 url fix 2017-10-10 17:27:40 +01:00
recipes-multimedia tiff: Security fix for CVE-2017-7593 2017-11-21 14:43:54 +00:00
recipes-rt rt-tests: fix the recipe version to match upstream 2016-11-16 10:37:57 +00:00
recipes-sato webkitgtk: update to 2.18.5 (includes Spectre mitigations; see commit description) 2018-01-14 22:10:54 +00:00
recipes-support gnutls_3.5.3.bb: Fix native build on distro with kernel < 3.4.17 2018-03-14 07:55:53 -07:00
site siteinfo.bbclass: Add mipsisa{32, 64}r6{el, } support 2016-10-07 16:43:57 +01:00
COPYING.GPLv2
COPYING.MIT
recipes.txt