]> code.ossystems Code Review - openembedded-core.git/commit
vulkan-samples: Fix reproducibility issue
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 13 Jan 2021 23:07:16 +0000 (23:07 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 15 Jan 2021 13:39:21 +0000 (13:39 +0000)
commit410dbfd1f82b4862ced6fca88789edf0fd9d65df
treeaa5bdea8e96138dd40659769b5300d712ce87674
parent204aa9cfa6ac99846ac494778dd143a13746ac7e
vulkan-samples: Fix reproducibility issue

There is code to remove the prefix CMAKE_SOURCE_DIR from __FILENAME__ paths
used for logging with LOGE() in the code. We need to make this match the value we use
in the debug source remapping from CFLAGS. If we don't, the code is firstly removing
the incorrect prefix and possibly moving outside the string, secondly, it causes a
reproducibility issue depending on the length of path the build happens in.

Add a small patch and configuration to avoid the issue.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-graphics/vulkan/vulkan-samples/debugfix.patch [new file with mode: 0644]
meta/recipes-graphics/vulkan/vulkan-samples_git.bb