diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2022-03-01 22:34:50 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-03-02 18:43:24 +0000 |
commit | bffe5b26f8a83af38126555b43c4fd3143aee043 (patch) | |
tree | a33aec2450fee3a73b61b1e1b444d3f0cfd8ab58 /meta/recipes-devtools/perl | |
parent | fb0814a57b4ed7b2beedbcc306d65839a366c3d2 (diff) | |
download | poky-bffe5b26f8a83af38126555b43c4fd3143aee043.tar.gz |
perl: Makefile.PL: Fix _PATH_LOG for deterministic
It checks host's path such as /dev/log and uses it, this doesn't make sense for
cross build, and it causes undeterministic, for example, the contianer os
usually doesn't have /dev/log which leads to a different build result since
other host usually has /dev/log, so make it always use the default value to fix
the issue.
(From OE-Core rev: 977b493e5040db8e000c6565bb29f3ac260ca0e1)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/perl')
-rw-r--r-- | meta/recipes-devtools/perl/files/0001-cpan-Sys-Syslog-Makefile.PL-Fix-_PATH_LOG-for-determ.patch | 36 | ||||
-rw-r--r-- | meta/recipes-devtools/perl/perl_5.34.0.bb | 1 |
2 files changed, 37 insertions, 0 deletions
diff --git a/meta/recipes-devtools/perl/files/0001-cpan-Sys-Syslog-Makefile.PL-Fix-_PATH_LOG-for-determ.patch b/meta/recipes-devtools/perl/files/0001-cpan-Sys-Syslog-Makefile.PL-Fix-_PATH_LOG-for-determ.patch new file mode 100644 index 0000000000..63815d44fb --- /dev/null +++ b/meta/recipes-devtools/perl/files/0001-cpan-Sys-Syslog-Makefile.PL-Fix-_PATH_LOG-for-determ.patch | |||
@@ -0,0 +1,36 @@ | |||
1 | From a73fff1fcf0def4ce93964f1b63fe3ad0967259d Mon Sep 17 00:00:00 2001 | ||
2 | From: Robert Yang <liezhi.yang@windriver.com> | ||
3 | Date: Fri, 18 Feb 2022 09:44:26 +0000 | ||
4 | Subject: [PATCH] cpan/Sys-Syslog/Makefile.PL: Fix _PATH_LOG for deterministic | ||
5 | |||
6 | It checks host's path such as /dev/log and uses it, this doesn't make sense for | ||
7 | cross build, and it causes undeterministic, for example, the contianer os | ||
8 | usually doesn't have /dev/log which leads to a different build result since | ||
9 | other host usually has /dev/log, so make it always use the default value to fix | ||
10 | the issue. | ||
11 | |||
12 | Submitted a ticket to upstream: https://rt.cpan.org/Ticket/Display.html?id=141612 | ||
13 | |||
14 | Upstream-Status: Inappropriate [OE specific] | ||
15 | |||
16 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> | ||
17 | --- | ||
18 | cpan/Sys-Syslog/Makefile.PL | 2 ++ | ||
19 | 1 file changed, 2 insertions(+) | ||
20 | |||
21 | diff --git a/cpan/Sys-Syslog/Makefile.PL b/cpan/Sys-Syslog/Makefile.PL | ||
22 | index d09ba69..d44e58c 100644 | ||
23 | --- a/cpan/Sys-Syslog/Makefile.PL | ||
24 | +++ b/cpan/Sys-Syslog/Makefile.PL | ||
25 | @@ -130,6 +130,8 @@ else { | ||
26 | $_PATH_LOG = ""; | ||
27 | } | ||
28 | |||
29 | +# OE specific | ||
30 | +$_PATH_LOG = ""; | ||
31 | |||
32 | # if possible, generate the code that handles the constants with | ||
33 | # ExtUtils::Constant, otherwise use cached copy in fallback/ | ||
34 | -- | ||
35 | 2.31.1 | ||
36 | |||
diff --git a/meta/recipes-devtools/perl/perl_5.34.0.bb b/meta/recipes-devtools/perl/perl_5.34.0.bb index a97da87203..8a1db7ed35 100644 --- a/meta/recipes-devtools/perl/perl_5.34.0.bb +++ b/meta/recipes-devtools/perl/perl_5.34.0.bb | |||
@@ -20,6 +20,7 @@ SRC_URI = "https://www.cpan.org/src/5.0/perl-${PV}.tar.gz;name=perl \ | |||
20 | file://aacd2398e766500cb5d83c4d76b642fcf31d997a.patch \ | 20 | file://aacd2398e766500cb5d83c4d76b642fcf31d997a.patch \ |
21 | file://ea57297a58b8f10ab885c19eec48ea076116cc1f.patch \ | 21 | file://ea57297a58b8f10ab885c19eec48ea076116cc1f.patch \ |
22 | file://5bc1e5fdd87aa205011512cd1e6cc655bcf677fd.patch \ | 22 | file://5bc1e5fdd87aa205011512cd1e6cc655bcf677fd.patch \ |
23 | file://0001-cpan-Sys-Syslog-Makefile.PL-Fix-_PATH_LOG-for-determ.patch \ | ||
23 | " | 24 | " |
24 | SRC_URI:append:class-native = " \ | 25 | SRC_URI:append:class-native = " \ |
25 | file://perl-configpm-switch.patch \ | 26 | file://perl-configpm-switch.patch \ |