diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-11-21 14:47:54 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-11-24 10:28:10 +0000 |
commit | 451af0105bc934c6be239a79821193139e49ab1a (patch) | |
tree | e8667310fd2fe3c454acb12f902deafa3acb9044 | |
parent | 670b1be774e19bbc0d4a93f4b7c1c5ba9efa7374 (diff) | |
download | poky-451af0105bc934c6be239a79821193139e49ab1a.tar.gz poky-451af0105bc934c6be239a79821193139e49ab1a.tar.bz2 poky-451af0105bc934c6be239a79821193139e49ab1a.zip |
e2fsprogs: Fix a ptest permissions determinism issue
When comparing builds built with different host umasks, this file jumped out.
The umask from do_compile was influencing ${D} and as cp was used to add the
file it wasn't deterministic. Fix the file mode to ensure determinism.
(From OE-Core rev: 37f37f4a52de3711973b372160f23672b61ff6ad)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-devtools/e2fsprogs/e2fsprogs_1.45.6.bb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.45.6.bb b/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.45.6.bb index 15054768dd..e6a4bd1f8c 100644 --- a/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.45.6.bb +++ b/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.45.6.bb @@ -125,6 +125,8 @@ do_compile_ptest() { } do_install_ptest() { + # This file's permissions depends on the host umask so be deterministic + chmod 0644 ${B}/tests/test_data.tmp cp -R --no-dereference --preserve=mode,links -v ${B}/tests ${D}${PTEST_PATH}/test cp -R --no-dereference --preserve=mode,links -v ${S}/tests/* ${D}${PTEST_PATH}/test sed -e 's!../e2fsck/e2fsck!e2fsck!g' \ |