]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
gcc-shared-source: do not use ${S}/.. in deploy_source_date_epoch
authorPeter Marko <peter.marko@siemens.com>
Thu, 23 Mar 2023 12:25:16 +0000 (13:25 +0100)
committerSteve Sakoman <steve@sakoman.com>
Thu, 30 Mar 2023 14:10:26 +0000 (04:10 -1000)
commit6134af5739c8a373db709bdbe2ba897d1ccaf39a
tree9094fea304187cbaea332c1d5b5dc8678c65185d
parenta9fdbd8d5a2017248f519784e4236b3983e5ecac
gcc-shared-source: do not use ${S}/.. in deploy_source_date_epoch

This function is referencing '${S}/..'.
It uses ${S} only as good known directory path to start
traversing from, and it does not need it to exist or be populated.
If ${S} does not exist yet, the function will fail because
it cannot evaluate path .. from non-existing directory.

Reproducer (verified in master and kirkstone):
  bitbake gcc -c deploy_source_date_epoch
  bitbake gcc -c cleansstate
  rm -rf build/tmp
  bitbake gcc -c deploy_source_date_epoch

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
(cherry picked from commit 42661a59cda164b2d236ffc35b4d8cf43312b677)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-devtools/gcc/gcc-shared-source.inc