generic-poky/meta/recipes-devtools
Robert Yang e53c8719ba gcc-source.inc: fix STAMPCLEAN to avoid race issue
Fixed race issue when build more than one gcc-source and inherit
rm_work, for example:
$ bitbake gcc-source-4.9.2 gcc-source-5.1.0

File "/path/to/bitbake/lib/bb/build.py", line 512, in exec_task
  return _exec_task(fn, task, d, quieterr)
File "/path/to/bitbake/lib/bb/build.py", line 489, in _exec_task
  make_stamp(task, localdata)
File "/path/to/bitbake/lib/bb/build.py", line 599, in make_stamp
  os.unlink(name)
OSError: [Errno 2] No such file or directory: '/path/to/tmp/stamps/work-shared/gcc-4.9.2-r0.do_rm_work_all.02cf1ed9b79d4edb0a51d3b913b7f9ba'

This is because make_stamp() uses glob.glob() to remove the old stamps
before create the new one, when gcc-source-5.1.0 removes gcc-4.9.2-r0's
stamp, we may get the error.

We can't use deltask do_rm_work_all as do_rm_work since it is a
recrdeptask, otherwise:
ERROR: Command execution failed: Traceback (most recent call last):
  File "/path/to/bitbake/lib/bb/command.py", line 102, in runAsyncCommand
    commandmethod(self.cmds_async, self, options)
  File "/path/to/bitbake/lib/bb/command.py", line 324, in generateDotGraph
    command.cooker.generateDotGraphFiles(pkgs_to_build, task)
  File "/path/to/bitbake/lib/bb/cooker.py", line 847, in generateDotGraphFiles
    depgraph = self.generateTaskDepTreeData(pkgs_to_build, task)
  File "/path/to/bitbake/lib/bb/cooker.py", line 672, in generateTaskDepTreeData
    rq.rqdata.prepare()
  File "/path/to/bitbake/lib/bb/runqueue.py", line 587, in prepare
    generate_recdeps(dep)
  File "/path/to/bitbake/lib/bb/runqueue.py", line 575, in generate_recdeps
    add_resolved_dependencies([taskData.tasks_fnid[t]], tasknames, newdeps)
TypeError: list indices must be integers, not NoneType

Update STAMPCLEAN to contain ${PV} to fix the problem.

(From OE-Core rev: 9099d46a46ee511d1b7e496472c5b973e8e8feaf)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-06-11 23:59:18 +01:00
..
apt apt: upgrade to 1.0.9.9 2015-05-29 10:17:15 +01:00
autoconf autoconf: simplify perl location forcing logic 2015-05-15 22:08:02 +01:00
autogen autogen: redirect the log file to build dir 2015-06-08 17:34:05 +01:00
automake automake: simplify perl location forcing logic 2015-05-15 22:08:03 +01:00
binutils binutils: Update to tip of 2.25 branch 2015-06-03 16:38:47 +01:00
bison bison: fix parallel issue 2015-04-30 23:04:16 +01:00
bootchart2 bootchart2: fix to find collector correctly in case of multilib 2014-12-05 18:01:05 +00:00
btrfs-tools btrfs-tools: 3.18.2 -> 4.0.1 2015-06-03 16:38:48 +01:00
build-compare build-compare: update Rename-rpm-check.sh-to-pkg-diff.sh.patch 2015-02-21 22:05:36 +00:00
ccache ccache: 3.1.9 -> 3.1.11 2015-04-21 07:20:23 +01:00
cdrtools cdrtools-native: fix HOMEPAGE and SRC_URI 2015-02-03 14:53:51 +00:00
chrpath chrpath: upgrade to 0.16 2014-03-02 17:25:28 +00:00
cmake cmake: fix B != S 2015-01-16 23:08:25 +00:00
desktop-file-utils Replace one-line DESCRIPTION with SUMMARY 2014-01-02 12:50:18 +00:00
devel-config recipes: convert remaining SUMMARY/DESCRIPTION cosmetic issues 2014-02-17 15:28:59 +00:00
diffstat diffutils & diffstat: fix up EXTRA_OECONF 2014-12-31 08:14:19 +00:00
distcc distcc:Include missing fcntl.h in zeroconf 2015-04-21 07:20:25 +01:00
dmidecode dmidecode: add powerpc64 to compatible host 2015-01-29 15:36:49 +00:00
docbook-dsssl-stylesheets sgml-common-native: fix the generation of sgml-docbook.cat 2014-03-19 14:42:43 +00:00
docbook-sgml-dtd sgml-common-native: fix the generation of sgml-docbook.cat 2014-03-19 14:42:43 +00:00
docbook-utils docbook-utils-native: Unbreak the build after source and build dir split 2013-03-25 20:51:19 +00:00
docbook-xml docbook-xsl-stylesheets: fix do_configure typo 2014-11-12 15:38:33 +00:00
dosfstools dosfstools: Add recipe for v3.0.28 2015-06-03 16:38:49 +01:00
dpkg dpkg: upgrade to 1.17.25 2015-04-30 23:04:15 +01:00
e2fsprogs e2fsprogs: fix the CVE-2015-1572 2015-05-07 13:40:37 +01:00
elfutils elfutils: Disable the unnecessary check in iconv.m4 2015-05-14 11:43:56 +01:00
expect expect: separate B and S 2015-01-16 23:08:26 +00:00
fdisk gptfdisk: add 0.8.10+git version 2014-11-12 15:38:31 +00:00
file file: add -P prompt into usage info 2015-04-09 07:43:50 +01:00
flex flex: fix the deps for ptest builds 2014-09-22 13:04:21 +01:00
gcc gcc-source.inc: fix STAMPCLEAN to avoid race issue 2015-06-11 23:59:18 +01:00
gdb gdb: Minor upgrade to 7.9.1 2015-06-03 16:38:47 +01:00
git git: 2.3.7 -> 2.4.2 2015-05-30 22:26:11 +01:00
gnu-config base: Improve makefile clean handling, introduce CLEANBROKEN variable 2014-11-09 10:21:19 +00:00
guile guile: fix installed-vs-shipped error 2015-01-23 11:36:28 +00:00
guilt guilt-native: tidy up recipe 2014-01-02 12:50:24 +00:00
help2man help2man: Upgrade to 1.46.4 2014-11-09 10:21:21 +00:00
i2c-tools i2c-tools: create i2c-tools-misc package for perl scripts 2014-09-16 22:14:06 +01:00
icecc-create-env icecc-create-env-native: add SUMMARY and tweak DESCRIPTION 2014-01-02 12:50:23 +00:00
icon-naming-utils icon-naming-utils: separate B and S 2015-01-16 23:08:27 +00:00
installer adt-installer: Fix to work with meta-environment changes 2014-10-06 15:15:50 +01:00
intltool intltool: Define DATADIRNAME=share for uclibc based systems 2014-03-17 14:01:41 +00:00
json-c meta: enable parallel build for several recipes 2015-02-15 21:58:27 +00:00
kconfig-frontends recipes: Delete superfluous assignments, S = ${WORKDIR}/${BP} 2015-02-24 17:41:44 +00:00
libtool libtool: remove libltdl-dev libltdl-dbg libltdl-staticdev from PACKAGES 2015-04-13 22:33:21 +01:00
linuxdoc-tools linuxdoc-tools-native: Makedoc.sh uses /tmp and fails w/ noexec mount 2014-10-06 16:03:13 +01:00
m4 recipes: Fix charset.alias for musl 2015-04-21 07:20:25 +01:00
make make: upgrade to 4.1 2014-12-23 10:18:20 +00:00
makedevs makedevs: set and handle S in a proper way 2015-01-23 11:36:27 +00:00
mkelfimage mkelfimage: set CLEANBROKEN 2015-01-16 23:08:24 +00:00
mklibs mklibs-native: upgrade to 0.1.40 2015-01-23 11:36:25 +00:00
mmc mmc-utils: remove unnecessary 'protocol=git' from SRC_URI 2015-03-20 11:27:51 +00:00
mtd mtd-utils: enable mtd-utils-fix-corrupt-cleanmarker-with-flash_erase--j-command.patch 2015-04-24 11:14:38 +01:00
mtools mtools: add PACKAGECONFIG for libbsd 2015-06-11 23:59:17 +01:00
nasm nasm: 2.11.06 -> 2.11.08 2015-05-30 22:26:12 +01:00
openjade sgml-common-native: fix the generation of sgml-docbook.cat 2014-03-19 14:42:43 +00:00
opensp opensp: replace obsolete automake macros with working ones 2013-01-15 08:10:12 +00:00
opkg opkg: remove libopkg-dev and libopkg-staticdev from PACKAGES 2015-04-13 22:33:21 +01:00
opkg-utils opkg-utils: Update SRCREV 2014-12-23 10:18:16 +00:00
orc openssl/orc: virtclass-native -> class-native 2015-05-14 11:43:56 +01:00
ossp-uuid ossp-uuid: obey LDFLAGS 2014-09-22 13:04:22 +01:00
packagegroups packagegroup-*: add RREPLACES/RCONFLICTS 2012-09-04 18:03:18 +01:00
patch recipes: Fix charset.alias for musl 2015-04-21 07:20:25 +01:00
patchelf patchelf: Add patchelf recipe 2014-08-28 15:12:42 +01:00
pax-utils pax-utils: 0.9.2 -> 1.0.3 2015-04-21 07:20:24 +01:00
perl liberror-perl: 0.17023 -> 0.17024 2015-06-03 16:38:48 +01:00
pkgconfig pkgconfig: Upgrade to latest git tip 2015-04-27 14:59:50 +01:00
postinst-intercept postinst-intercept: rename recipe for nativesdk only 2014-11-20 14:08:14 +00:00
prelink prelink_git.bb: Update to latest cross-prelink version 2015-04-08 10:53:20 +01:00
pseudo pseudo 1.6.5: less pointlessly chatty 2015-05-05 22:15:17 +01:00
python python-smartpm: change "already installed" warnings into info messages 2015-06-11 23:59:10 +01:00
qemu qemu: Add support for UUID 2015-06-11 23:59:13 +01:00
quilt quilt: 0.63 -> 0.64 2015-02-21 22:05:34 +00:00
remake remake: fix build error 2014-08-11 10:53:05 +01:00
rpm rpm: remove extra dev and dbg packages 2015-06-08 17:34:03 +01:00
rsync rsync: backport a patch to fix CVE-2014-8242 2015-06-03 16:38:47 +01:00
run-postinsts meta: set proper S value 2015-01-23 11:36:27 +00:00
sgml-common sgml-common-native: fix the generation of sgml-docbook.cat 2014-03-19 14:42:43 +00:00
sgmlspl sgmlspl-native: 1.03ii -> 1.1 2015-06-08 17:34:03 +01:00
squashfs-tools squashfs-tools: build and install unsquashfs as well 2015-05-24 07:19:19 +01:00
strace strace: add PACKAGECONFIG for bluez 2015-05-14 11:43:59 +01:00
subversion subversion: remove 1.6.X recipes 2015-04-30 23:04:17 +01:00
swabber Replace one-line DESCRIPTION with SUMMARY 2014-01-02 12:50:18 +00:00
syslinux syslinux: Fix syslinux-nomtools permissions 2015-04-19 13:34:41 +01:00
tcf-agent meta: fix no newline at end of file 2014-07-03 17:41:16 +01:00
tcltk tcl: 8.6.3 -> 8.6.4 2015-04-21 07:20:25 +01:00
unfs3 recipes: convert remaining SUMMARY/DESCRIPTION cosmetic issues (part 2) 2014-02-20 14:28:13 +00:00
unifdef unifdef: remove fork, package upstream 2014-10-24 17:36:17 +01:00
vala vala: upgrade to version 0.28.0 2015-05-20 21:41:08 +01:00
valgrind valgrind: remove arm tests that don't compile 2015-05-24 07:19:20 +01:00
xmlto xmlto-native: fixes slow creation of yocto docs 2015-02-03 14:53:54 +00:00
yasm yasm: 1.2.0 -> 1.3.0 2015-06-11 23:59:15 +01:00
zisofs-tools Revert "zisofs-tools-native: Add missing dependency on zlib-native" 2014-03-31 23:04:35 +01:00