summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/perl-sanity/files/fix-race-failures.patch
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2018-12-02 12:43:30 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-01-11 10:39:09 +0000
commitead379657b85dad0104661b9162b0b847b9391fd (patch)
tree8b6935d9d7c0a72dabd46637ce554042a654363d /meta/recipes-devtools/perl-sanity/files/fix-race-failures.patch
parentd94ac527b3a2bf1a8330b676513062bf699fbbe3 (diff)
downloadpoky-ead379657b85dad0104661b9162b0b847b9391fd.tar.gz
perl: add a version that builds the recipe using perl-cross, and update to 5.28.1
perl-cross is a build system overlay from buildroot project that aims to bring a bit of sanity to cross-building perl. The advantage of using that is that we can drop a lot of custom patches (that no one really understands), and simplify the perl recipe as well. Also the build time goes down from several minutes to about 30 seconds. The whole thing becomes maintainable again, in my opinion. When rewriting the recipe I had two goals in mind: 1. Stay with upstream defaults as much as possible 2. Add custom patches only when their necessity was proven through testing. http://arsv.github.io/perl-cross/ (From OE-Core rev: 52f2828314f851263ca3a6beb41ec936fab4d3ab) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/perl-sanity/files/fix-race-failures.patch')
-rw-r--r--meta/recipes-devtools/perl-sanity/files/fix-race-failures.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/meta/recipes-devtools/perl-sanity/files/fix-race-failures.patch b/meta/recipes-devtools/perl-sanity/files/fix-race-failures.patch
new file mode 100644
index 0000000000..f3bffd0abd
--- /dev/null
+++ b/meta/recipes-devtools/perl-sanity/files/fix-race-failures.patch
@@ -0,0 +1,36 @@
1From 3e2c1ddd06be97ba75104b1be4b6fdbd08e16bbe Mon Sep 17 00:00:00 2001
2From: Alex Suykov <alex.suykov@gmail.com>
3Date: Wed, 2 Jan 2019 20:37:47 +0200
4Subject: [PATCH] fix Yocto intermittent failures with modules
5
6Having -Ilib/ above -Idist/... in miniperl_top means miniperl may
7attempt to switch from dist/ to lib/ while the modules are being
8built, possibly picking incompletely-written files there.
9
10Any module available via -Idist/* should only be loaded from dist/
11and never from lib/ even if it gets installed into lib/ at some point.
12
13Upstream-Status: Submitted [https://github.com/arsv/perl-cross/issues/72]
14Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
15---
16 miniperl_top | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19diff --git a/miniperl_top b/miniperl_top
20index 96ab1a2..a0426b9 100755
21--- a/miniperl_top
22+++ b/miniperl_top
23@@ -25,7 +25,6 @@ top=$(cd $top; pwd)
24 exec $top/miniperl\
25 -I$top/cnf/stub\
26 -I$top/cnf/cpan\
27- -I$top/lib\
28 -I$top/cpan/AutoLoader/lib\
29 -I$top/dist/Exporter/lib\
30 -I$top/dist/Cwd\
31@@ -50,4 +49,5 @@ exec $top/miniperl\
32 -I$top/cpan/parent/lib\
33 -I$top/cpan/version/lib\
34 -I$top/dist/Pod-Simple/lib\
35+ -I$top/lib\
36 "$@"