Files
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
..
2015-05-29 10:17:15 +01:00
2015-04-30 23:04:16 +01:00
2015-06-03 16:38:48 +01:00
2015-04-21 07:20:23 +01:00
2014-03-02 17:25:28 +00:00
2015-01-16 23:08:25 +00:00
2015-04-30 23:04:15 +01:00
2015-01-16 23:08:26 +00:00
2014-11-12 15:38:31 +00:00
2015-04-09 07:43:50 +01:00
2014-09-22 13:04:21 +01:00
2015-06-03 16:38:47 +01:00
2015-05-30 22:26:11 +01:00
2014-01-02 12:50:24 +00:00
2014-11-09 10:21:21 +00:00
2015-04-21 07:20:25 +01:00
2014-12-23 10:18:20 +00:00
2015-01-16 23:08:24 +00:00
2015-01-23 11:36:25 +00:00
2015-05-30 22:26:12 +01:00
2014-12-23 10:18:16 +00:00
2014-09-22 13:04:22 +01:00
2015-04-21 07:20:25 +01:00
2014-08-28 15:12:42 +01:00
2015-04-21 07:20:24 +01:00
2015-06-03 16:38:48 +01:00
2015-06-11 23:59:13 +01:00
2015-02-21 22:05:34 +00:00
2014-08-11 10:53:05 +01:00
2015-01-23 11:36:27 +00:00
2015-06-08 17:34:03 +01:00
2015-04-21 07:20:25 +01:00
2015-05-20 21:41:08 +01:00
2015-06-11 23:59:15 +01:00