Skip to contentSkip to conversation

perl: fix race issues for MakeMaker

PATCH New Robert Yang 1 participant 2 messages Sep 25, 2018

lore
Share & tools
lore
#0 lore raw

cover perl: fix race issues for MakeMaker

The following changes since commit e3f5ceec690379d64bd38330111a32f6c8fc6353:

build-appliance-image: Update to master head revision (2018-09-24 12:31:28 +0100)

are available in the git repository at:

git://git.openembedded.org/openembedded-core-contrib rbt/perl
http://cgit.openembedded.org/openembedded-core-contrib/log/?h=rbt/perl

Robert Yang (1):
perl: fix race issues for MakeMaker

 meta/recipes-devtools/perl/perl-native_5.24.4.bb   |  1 +
 .../0001-ExtUtils-MM_Unix.pm-fix-race-issues.patch | 52 ++++++++++++++++++++++
 meta/recipes-devtools/perl/perl_5.24.4.bb          |  1 +
 3 files changed, 54 insertions(+)
 create mode 100644 meta/recipes-devtools/perl/perl/0001-ExtUtils-MM_Unix.pm-fix-race-issues.patch
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 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.

---
 meta/recipes-devtools/perl/perl-native_5.24.4.bb   |  1 +
 .../0001-ExtUtils-MM_Unix.pm-fix-race-issues.patch | 52 ++++++++++++++++++++++
 meta/recipes-devtools/perl/perl_5.24.4.bb          |  1 +
 3 files changed, 54 insertions(+)
 create mode 100644 meta/recipes-devtools/perl/perl/0001-ExtUtils-MM_Unix.pm-fix-race-issues.patch
meta/recipes-devtools/perl/perl-native_5.24.4.bb +1 -0
index affc9d5..81d3fd4 100644
@@ -16,6 +16,7 @@ SRC_URI += "\
            file://perl-PathTools-don-t-filter-out-blib-from-INC.patch \
            file://0001-Configure-Remove-fstack-protector-strong-for-native-.patch \
            file://perl-5.26.1-guard_old_libcrypt_fix.patch \
+           file://0001-ExtUtils-MM_Unix.pm-fix-race-issues.patch \
           "
 
 SRC_URI[md5sum] = "04622bc4d3941dc7eb571c52b7c02993"
meta/recipes-devtools/perl/perl/0001-ExtUtils-MM_Unix.pm-fix-race-issues.patch new file +52 -0

52 lines not on this page · raw message

meta/recipes-devtools/perl/perl_5.24.4.bb +1 -0
index 28f1c24..cc5aae9 100644
@@ -65,6 +65,7 @@ SRC_URI += " \
         file://perl-test-customized.patch \
         file://perl-5.26.1-guard_old_libcrypt_fix.patch \
         file://CVE-2018-12015.patch \
+        file://0001-ExtUtils-MM_Unix.pm-fix-race-issues.patch \
 "
 
 # Fix test case issues
Signature · 1 line
2.7.4