]> code.ossystems Code Review - openembedded-core.git/commit
perl: fix race issues for MakeMaker
authorRobert Yang <liezhi.yang@windriver.com>
Tue, 25 Sep 2018 08:23:57 +0000 (16:23 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 25 Sep 2018 22:15:42 +0000 (23:15 +0100)
commitf33d7124cd07f776e8b05a26703f6d551357ae09
treef633d47835b530f4a8c9411405fd1aee5e2775c1
parente8acef383767cfd1ef0c3d3c45d9d6eb1c83b3e7
perl: fix race issues for MakeMaker

Fixed a race issue when compile libhtml-parser-perl and others who use MakeMaker:
[snip]
chmod 755 blib/arch/auto/HTML/Parser/Parser.so
chmod 644 "Parser.bs"
[snip]

The rule INST_DYNAMIC removes '.bs' file which are generated by BOOTSTRAP, but
the have no dependencies, so there is a race issue:

BOOTSTRAP:
    touch foo.bs
    chmod 755 foo.bs

INST_DYNAMIC:
    rm -fr foo.bs

The error would happen when INST_DYNAMIC removes foo.bs after BOOTSTRAP touched
it but before chmod on it.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/perl/perl-native_5.24.4.bb
meta/recipes-devtools/perl/perl/0001-ExtUtils-MM_Unix.pm-fix-race-issues.patch [new file with mode: 0644]
meta/recipes-devtools/perl/perl_5.24.4.bb