diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2023-09-06 18:56:22 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-09-07 14:36:30 +0100 |
commit | 5b18d7a0c04832aa0881272ff53e6e9a69545b1b (patch) | |
tree | 5f3a53f705809899a56912c72a8cc211f089ee46 | |
parent | 3b693d16747cecc98bd06cab5bce6a2423f3b796 (diff) | |
download | poky-5b18d7a0c04832aa0881272ff53e6e9a69545b1b.tar.gz |
perl: update 5.36.1 -> 5.38.0
Rebase perl-configpm-switch.patch.
Add a patch to perl-cross to unbreak perl's line numbers printing.
(From OE-Core rev: f90922cdeef5a6a4b711c5be2156c05bdb20d5b5)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-devtools/perl-cross/files/0001-cnf-configure_pfmt.sh-add-32-bit-integer-format-defi.patch | 28 | ||||
-rw-r--r-- | meta/recipes-devtools/perl-cross/perlcross_1.5.bb | 1 | ||||
-rw-r--r-- | meta/recipes-devtools/perl/files/CVE-2023-31484.patch | 29 | ||||
-rw-r--r-- | meta/recipes-devtools/perl/files/CVE-2023-31486-0001.patch | 217 | ||||
-rw-r--r-- | meta/recipes-devtools/perl/files/CVE-2023-31486-0002.patch | 36 | ||||
-rw-r--r-- | meta/recipes-devtools/perl/files/perl-configpm-switch.patch | 66 | ||||
-rw-r--r-- | meta/recipes-devtools/perl/perl_5.38.0.bb (renamed from meta/recipes-devtools/perl/perl_5.36.1.bb) | 13 |
7 files changed, 68 insertions, 322 deletions
diff --git a/meta/recipes-devtools/perl-cross/files/0001-cnf-configure_pfmt.sh-add-32-bit-integer-format-defi.patch b/meta/recipes-devtools/perl-cross/files/0001-cnf-configure_pfmt.sh-add-32-bit-integer-format-defi.patch new file mode 100644 index 0000000000..4de4a5b955 --- /dev/null +++ b/meta/recipes-devtools/perl-cross/files/0001-cnf-configure_pfmt.sh-add-32-bit-integer-format-defi.patch | |||
@@ -0,0 +1,28 @@ | |||
1 | From 920abf3dc39c851a655b719622c76a6f0dc9981d Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex@linutronix.de> | ||
3 | Date: Tue, 5 Sep 2023 19:47:33 +0200 | ||
4 | Subject: [PATCH] cnf/configure_pfmt.sh: add 32 bit integer format definitions | ||
5 | |||
6 | These started to matter in perl 5.38 where they are used to print | ||
7 | line numbers. | ||
8 | |||
9 | Upstream-Status: Submitted [https://github.com/arsv/perl-cross/pull/143] | ||
10 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> | ||
11 | --- | ||
12 | cnf/configure_pfmt.sh | 6 ++++++ | ||
13 | 1 file changed, 6 insertions(+) | ||
14 | |||
15 | diff --git a/cnf/configure_pfmt.sh b/cnf/configure_pfmt.sh | ||
16 | index 8f93da1..7bb4b6f 100644 | ||
17 | --- a/cnf/configure_pfmt.sh | ||
18 | +++ b/cnf/configure_pfmt.sh | ||
19 | @@ -52,3 +52,9 @@ else | ||
20 | define uvxformat '"lx"' | ||
21 | define uvXUformat '"lX"' | ||
22 | fi | ||
23 | + | ||
24 | +define i32dformat 'PRId32' | ||
25 | +define u32uformat 'PRIu32' | ||
26 | +define u32oformat 'PRIo32' | ||
27 | +define u32xformat 'PRIx32' | ||
28 | +define u32XUformat 'PRIX32' | ||
diff --git a/meta/recipes-devtools/perl-cross/perlcross_1.5.bb b/meta/recipes-devtools/perl-cross/perlcross_1.5.bb index d17945480e..7ca4977b97 100644 --- a/meta/recipes-devtools/perl-cross/perlcross_1.5.bb +++ b/meta/recipes-devtools/perl-cross/perlcross_1.5.bb | |||
@@ -15,6 +15,7 @@ SRC_URI = "${GITHUB_BASE_URI}/download/${PV}/perl-cross-${PV}.tar.gz;name=perl-c | |||
15 | file://0001-perl-cross-add-LDFLAGS-when-linking-libperl.patch \ | 15 | file://0001-perl-cross-add-LDFLAGS-when-linking-libperl.patch \ |
16 | file://determinism.patch \ | 16 | file://determinism.patch \ |
17 | file://0001-Makefile-check-the-file-if-patched-or-not.patch \ | 17 | file://0001-Makefile-check-the-file-if-patched-or-not.patch \ |
18 | file://0001-cnf-configure_pfmt.sh-add-32-bit-integer-format-defi.patch \ | ||
18 | " | 19 | " |
19 | GITHUB_BASE_URI = "https://github.com/arsv/perl-cross/releases/" | 20 | GITHUB_BASE_URI = "https://github.com/arsv/perl-cross/releases/" |
20 | 21 | ||
diff --git a/meta/recipes-devtools/perl/files/CVE-2023-31484.patch b/meta/recipes-devtools/perl/files/CVE-2023-31484.patch deleted file mode 100644 index 9a9117c53a..0000000000 --- a/meta/recipes-devtools/perl/files/CVE-2023-31484.patch +++ /dev/null | |||
@@ -1,29 +0,0 @@ | |||
1 | From a625ec2cc3a0b6116c1f8b831d3480deb621c245 Mon Sep 17 00:00:00 2001 | ||
2 | From: Stig Palmquist <git@stig.io> | ||
3 | Date: Tue, 28 Feb 2023 11:54:06 +0100 | ||
4 | Subject: [PATCH] Add verify_SSL=>1 to HTTP::Tiny to verify https server | ||
5 | identity | ||
6 | |||
7 | CVE: CVE-2023-31484 | ||
8 | |||
9 | Upstream-Status: Backport [https://github.com/andk/cpanpm/commit/9c98370287f4e709924aee7c58ef21c85289a7f0] | ||
10 | |||
11 | Signed-off-by: Soumya <soumya.sambu@windriver.com> | ||
12 | --- | ||
13 | cpan/CPAN/lib/CPAN/HTTP/Client.pm | 1 + | ||
14 | 1 file changed, 1 insertion(+) | ||
15 | |||
16 | diff --git a/cpan/CPAN/lib/CPAN/HTTP/Client.pm b/cpan/CPAN/lib/CPAN/HTTP/Client.pm | ||
17 | index 4fc792c..a616fee 100644 | ||
18 | --- a/cpan/CPAN/lib/CPAN/HTTP/Client.pm | ||
19 | +++ b/cpan/CPAN/lib/CPAN/HTTP/Client.pm | ||
20 | @@ -32,6 +32,7 @@ sub mirror { | ||
21 | |||
22 | my $want_proxy = $self->_want_proxy($uri); | ||
23 | my $http = HTTP::Tiny->new( | ||
24 | + verify_SSL => 1, | ||
25 | $want_proxy ? (proxy => $self->{proxy}) : () | ||
26 | ); | ||
27 | |||
28 | -- | ||
29 | 2.40.0 | ||
diff --git a/meta/recipes-devtools/perl/files/CVE-2023-31486-0001.patch b/meta/recipes-devtools/perl/files/CVE-2023-31486-0001.patch deleted file mode 100644 index 0531e1f099..0000000000 --- a/meta/recipes-devtools/perl/files/CVE-2023-31486-0001.patch +++ /dev/null | |||
@@ -1,217 +0,0 @@ | |||
1 | From 77f557ef84698efeb6eed04e4a9704eaf85b741d | ||
2 | From: Stig Palmquist <git@stig.io> | ||
3 | Date: Mon Jun 5 16:46:22 2023 +0200 | ||
4 | Subject: [PATCH] Change verify_SSL default to 1, add ENV var to enable | ||
5 | insecure default | ||
6 | |||
7 | - Changes the `verify_SSL` default parameter from `0` to `1` | ||
8 | |||
9 | Based on patch by Dominic Hargreaves: | ||
10 | https://salsa.debian.org/perl-team/interpreter/perl/-/commit/1490431e40e22052f75a0b3449f1f53cbd27ba92 | ||
11 | |||
12 | CVE: CVE-2023-31486 | ||
13 | |||
14 | - Add check for `$ENV{PERL_HTTP_TINY_SSL_INSECURE_BY_DEFAULT}` that | ||
15 | enables the previous insecure default behaviour if set to `1`. | ||
16 | |||
17 | This provides a workaround for users who encounter problems with the | ||
18 | new `verify_SSL` default. | ||
19 | |||
20 | Example to disable certificate checks: | ||
21 | ``` | ||
22 | $ PERL_HTTP_TINY_SSL_INSECURE_BY_DEFAULT=1 ./script.pl | ||
23 | ``` | ||
24 | |||
25 | - Updates to documentation: | ||
26 | - Describe changing the verify_SSL value | ||
27 | - Describe the escape-hatch environment variable | ||
28 | - Remove rationale for not enabling verify_SSL | ||
29 | - Add missing certificate search paths | ||
30 | - Replace "SSL" with "TLS/SSL" where appropriate | ||
31 | - Use "machine-in-the-middle" instead of "man-in-the-middle" | ||
32 | |||
33 | Upstream-Status: Backport [https://github.com/chansen/p5-http-tiny/commit/77f557ef84698efeb6eed04e4a9704eaf85b741d] | ||
34 | |||
35 | Signed-off-by: Soumya <soumya.sambu@windriver.com> | ||
36 | --- | ||
37 | cpan/HTTP-Tiny/lib/HTTP/Tiny.pm | 86 ++++++++++++++++++++++----------- | ||
38 | 1 file changed, 57 insertions(+), 29 deletions(-) | ||
39 | |||
40 | diff --git a/cpan/HTTP-Tiny/lib/HTTP/Tiny.pm b/cpan/HTTP-Tiny/lib/HTTP/Tiny.pm | ||
41 | index 83ca06d..ebc34a1 100644 | ||
42 | --- a/cpan/HTTP-Tiny/lib/HTTP/Tiny.pm | ||
43 | +++ b/cpan/HTTP-Tiny/lib/HTTP/Tiny.pm | ||
44 | @@ -40,10 +40,14 @@ sub _croak { require Carp; Carp::croak(@_) } | ||
45 | #pod * C<timeout> — Request timeout in seconds (default is 60) If a socket open, | ||
46 | #pod read or write takes longer than the timeout, the request response status code | ||
47 | #pod will be 599. | ||
48 | -#pod * C<verify_SSL> — A boolean that indicates whether to validate the SSL | ||
49 | -#pod certificate of an C<https> — connection (default is false) | ||
50 | +#pod * C<verify_SSL> — A boolean that indicates whether to validate the TLS/SSL | ||
51 | +#pod certificate of an C<https> — connection (default is true). Changed from false | ||
52 | +#pod to true in version 0.083. | ||
53 | #pod * C<SSL_options> — A hashref of C<SSL_*> — options to pass through to | ||
54 | #pod L<IO::Socket::SSL> | ||
55 | +#pod * C<$ENV{PERL_HTTP_TINY_SSL_INSECURE_BY_DEFAULT}> - Changes the default | ||
56 | +#pod certificate verification behavior to not check server identity if set to 1. | ||
57 | +#pod Only effective if C<verify_SSL> is not set. Added in version 0.083. | ||
58 | #pod | ||
59 | #pod An accessor/mutator method exists for each attribute. | ||
60 | #pod | ||
61 | @@ -111,11 +115,17 @@ sub timeout { | ||
62 | sub new { | ||
63 | my($class, %args) = @_; | ||
64 | |||
65 | + # Support lower case verify_ssl argument, but only if verify_SSL is not | ||
66 | + # true. | ||
67 | + if ( exists $args{verify_ssl} ) { | ||
68 | + $args{verify_SSL} ||= $args{verify_ssl}; | ||
69 | + } | ||
70 | + | ||
71 | my $self = { | ||
72 | max_redirect => 5, | ||
73 | timeout => defined $args{timeout} ? $args{timeout} : 60, | ||
74 | keep_alive => 1, | ||
75 | - verify_SSL => $args{verify_SSL} || $args{verify_ssl} || 0, # no verification by default | ||
76 | + verify_SSL => defined $args{verify_SSL} ? $args{verify_SSL} : _verify_SSL_default(), | ||
77 | no_proxy => $ENV{no_proxy}, | ||
78 | }; | ||
79 | |||
80 | @@ -134,6 +144,13 @@ sub new { | ||
81 | return $self; | ||
82 | } | ||
83 | |||
84 | +sub _verify_SSL_default { | ||
85 | + my ($self) = @_; | ||
86 | + # Check if insecure default certificate verification behaviour has been | ||
87 | + # changed by the user by setting PERL_HTTP_TINY_SSL_INSECURE_BY_DEFAULT=1 | ||
88 | + return (($ENV{PERL_HTTP_TINY_INSECURE_BY_DEFAULT} || '') eq '1') ? 0 : 1; | ||
89 | +} | ||
90 | + | ||
91 | sub _set_proxies { | ||
92 | my ($self) = @_; | ||
93 | |||
94 | @@ -1055,7 +1072,7 @@ sub new { | ||
95 | timeout => 60, | ||
96 | max_line_size => 16384, | ||
97 | max_header_lines => 64, | ||
98 | - verify_SSL => 0, | ||
99 | + verify_SSL => HTTP::Tiny::_verify_SSL_default(), | ||
100 | SSL_options => {}, | ||
101 | %args | ||
102 | }, $class; | ||
103 | @@ -2043,11 +2060,11 @@ proxy | ||
104 | timeout | ||
105 | verify_SSL | ||
106 | |||
107 | -=head1 SSL SUPPORT | ||
108 | +=head1 TLS/SSL SUPPORT | ||
109 | |||
110 | Direct C<https> connections are supported only if L<IO::Socket::SSL> 1.56 or | ||
111 | greater and L<Net::SSLeay> 1.49 or greater are installed. An error will occur | ||
112 | -if new enough versions of these modules are not installed or if the SSL | ||
113 | +if new enough versions of these modules are not installed or if the TLS | ||
114 | encryption fails. You can also use C<HTTP::Tiny::can_ssl()> utility function | ||
115 | that returns boolean to see if the required modules are installed. | ||
116 | |||
117 | @@ -2055,7 +2072,7 @@ An C<https> connection may be made via an C<http> proxy that supports the CONNEC | ||
118 | command (i.e. RFC 2817). You may not proxy C<https> via a proxy that itself | ||
119 | requires C<https> to communicate. | ||
120 | |||
121 | -SSL provides two distinct capabilities: | ||
122 | +TLS/SSL provides two distinct capabilities: | ||
123 | |||
124 | =over 4 | ||
125 | |||
126 | @@ -2069,24 +2086,17 @@ Verification of server identity | ||
127 | |||
128 | =back | ||
129 | |||
130 | -B<By default, HTTP::Tiny does not verify server identity>. | ||
131 | - | ||
132 | -Server identity verification is controversial and potentially tricky because it | ||
133 | -depends on a (usually paid) third-party Certificate Authority (CA) trust model | ||
134 | -to validate a certificate as legitimate. This discriminates against servers | ||
135 | -with self-signed certificates or certificates signed by free, community-driven | ||
136 | -CA's such as L<CAcert.org|http://cacert.org>. | ||
137 | +B<By default, HTTP::Tiny verifies server identity>. | ||
138 | |||
139 | -By default, HTTP::Tiny does not make any assumptions about your trust model, | ||
140 | -threat level or risk tolerance. It just aims to give you an encrypted channel | ||
141 | -when you need one. | ||
142 | +This was changed in version 0.083 due to security concerns. The previous default | ||
143 | +behavior can be enabled by setting C<$ENV{PERL_HTTP_TINY_SSL_INSECURE_BY_DEFAULT}> | ||
144 | +to 1. | ||
145 | |||
146 | -Setting the C<verify_SSL> attribute to a true value will make HTTP::Tiny verify | ||
147 | -that an SSL connection has a valid SSL certificate corresponding to the host | ||
148 | -name of the connection and that the SSL certificate has been verified by a CA. | ||
149 | -Assuming you trust the CA, this will protect against a L<man-in-the-middle | ||
150 | -attack|http://en.wikipedia.org/wiki/Man-in-the-middle_attack>. If you are | ||
151 | -concerned about security, you should enable this option. | ||
152 | +Verification is done by checking that that the TLS/SSL connection has a valid | ||
153 | +certificate corresponding to the host name of the connection and that the | ||
154 | +certificate has been verified by a CA. Assuming you trust the CA, this will | ||
155 | +protect against L<machine-in-the-middle | ||
156 | +attacks|http://en.wikipedia.org/wiki/Machine-in-the-middle_attack>. | ||
157 | |||
158 | Certificate verification requires a file containing trusted CA certificates. | ||
159 | |||
160 | @@ -2094,9 +2104,7 @@ If the environment variable C<SSL_CERT_FILE> is present, HTTP::Tiny | ||
161 | will try to find a CA certificate file in that location. | ||
162 | |||
163 | If the L<Mozilla::CA> module is installed, HTTP::Tiny will use the CA file | ||
164 | -included with it as a source of trusted CA's. (This means you trust Mozilla, | ||
165 | -the author of Mozilla::CA, the CPAN mirror where you got Mozilla::CA, the | ||
166 | -toolchain used to install it, and your operating system security, right?) | ||
167 | +included with it as a source of trusted CA's. | ||
168 | |||
169 | If that module is not available, then HTTP::Tiny will search several | ||
170 | system-specific default locations for a CA certificate file: | ||
171 | @@ -2115,13 +2123,33 @@ system-specific default locations for a CA certificate file: | ||
172 | |||
173 | /etc/ssl/ca-bundle.pem | ||
174 | |||
175 | +=item * | ||
176 | + | ||
177 | +/etc/openssl/certs/ca-certificates.crt | ||
178 | + | ||
179 | +=item * | ||
180 | + | ||
181 | +/etc/ssl/cert.pem | ||
182 | + | ||
183 | +=item * | ||
184 | + | ||
185 | +/usr/local/share/certs/ca-root-nss.crt | ||
186 | + | ||
187 | +=item * | ||
188 | + | ||
189 | +/etc/pki/tls/cacert.pem | ||
190 | + | ||
191 | +=item * | ||
192 | + | ||
193 | +/etc/certs/ca-certificates.crt | ||
194 | + | ||
195 | =back | ||
196 | |||
197 | An error will be occur if C<verify_SSL> is true and no CA certificate file | ||
198 | is available. | ||
199 | |||
200 | -If you desire complete control over SSL connections, the C<SSL_options> attribute | ||
201 | -lets you provide a hash reference that will be passed through to | ||
202 | +If you desire complete control over TLS/SSL connections, the C<SSL_options> | ||
203 | +attribute lets you provide a hash reference that will be passed through to | ||
204 | C<IO::Socket::SSL::start_SSL()>, overriding any options set by HTTP::Tiny. For | ||
205 | example, to provide your own trusted CA file: | ||
206 | |||
207 | @@ -2131,7 +2159,7 @@ example, to provide your own trusted CA file: | ||
208 | |||
209 | The C<SSL_options> attribute could also be used for such things as providing a | ||
210 | client certificate for authentication to a server or controlling the choice of | ||
211 | -cipher used for the SSL connection. See L<IO::Socket::SSL> documentation for | ||
212 | +cipher used for the TLS/SSL connection. See L<IO::Socket::SSL> documentation for | ||
213 | details. | ||
214 | |||
215 | =head1 PROXY SUPPORT | ||
216 | -- | ||
217 | 2.40.0 | ||
diff --git a/meta/recipes-devtools/perl/files/CVE-2023-31486-0002.patch b/meta/recipes-devtools/perl/files/CVE-2023-31486-0002.patch deleted file mode 100644 index 45452be389..0000000000 --- a/meta/recipes-devtools/perl/files/CVE-2023-31486-0002.patch +++ /dev/null | |||
@@ -1,36 +0,0 @@ | |||
1 | From a22785783b17cbaa28afaee4a024d81a1903701d | ||
2 | From: Stig Palmquist <git@stig.io> | ||
3 | Date: Sun Jun 18 11:36:05 2023 +0200 | ||
4 | Subject: [PATCH] Fix incorrect env var name for verify_SSL default | ||
5 | |||
6 | The variable to override the verify_SSL default differed slightly in the | ||
7 | documentation from what was checked for in the code. | ||
8 | |||
9 | This commit makes the code use `PERL_HTTP_TINY_SSL_INSECURE_BY_DEFAULT` | ||
10 | as documented, instead of `PERL_HTTP_TINY_INSECURE_BY_DEFAULT` which was | ||
11 | missing `SSL_` | ||
12 | |||
13 | CVE: CVE-2023-31486 | ||
14 | |||
15 | Upstream-Status: Backport [https://github.com/chansen/p5-http-tiny/commit/a22785783b17cbaa28afaee4a024d81a1903701d] | ||
16 | |||
17 | Signed-off-by: Soumya <soumya.sambu@windriver.com> | ||
18 | --- | ||
19 | cpan/HTTP-Tiny/lib/HTTP/Tiny.pm | 2 +- | ||
20 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
21 | |||
22 | diff --git a/cpan/HTTP-Tiny/lib/HTTP/Tiny.pm b/cpan/HTTP-Tiny/lib/HTTP/Tiny.pm | ||
23 | index ebc34a1..65ac8ff 100644 | ||
24 | --- a/cpan/HTTP-Tiny/lib/HTTP/Tiny.pm | ||
25 | +++ b/cpan/HTTP-Tiny/lib/HTTP/Tiny.pm | ||
26 | @@ -148,7 +148,7 @@ sub _verify_SSL_default { | ||
27 | my ($self) = @_; | ||
28 | # Check if insecure default certificate verification behaviour has been | ||
29 | # changed by the user by setting PERL_HTTP_TINY_SSL_INSECURE_BY_DEFAULT=1 | ||
30 | - return (($ENV{PERL_HTTP_TINY_INSECURE_BY_DEFAULT} || '') eq '1') ? 0 : 1; | ||
31 | + return (($ENV{PERL_HTTP_TINY_SSL_INSECURE_BY_DEFAULT} || '') eq '1') ? 0 : 1; | ||
32 | } | ||
33 | |||
34 | sub _set_proxies { | ||
35 | -- | ||
36 | 2.40.0 | ||
diff --git a/meta/recipes-devtools/perl/files/perl-configpm-switch.patch b/meta/recipes-devtools/perl/files/perl-configpm-switch.patch index 7ca7c7d12f..0be1d5a93c 100644 --- a/meta/recipes-devtools/perl/files/perl-configpm-switch.patch +++ b/meta/recipes-devtools/perl/files/perl-configpm-switch.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From e789c1a0c9de5928a3b49f5b9d81b63636f5c7bb Mon Sep 17 00:00:00 2001 | 1 | From c25d460a2f00e9af25087d40447fe1a81c89710c Mon Sep 17 00:00:00 2001 |
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
3 | Date: Sun, 27 May 2007 21:04:11 +0000 | 3 | Date: Sun, 27 May 2007 21:04:11 +0000 |
4 | Subject: [PATCH] perl: 5.8.7 -> 5.8.8 (from OE) | 4 | Subject: [PATCH] perl: 5.8.7 -> 5.8.8 (from OE) |
@@ -20,38 +20,38 @@ Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | |||
20 | 1 file changed, 16 insertions(+), 2 deletions(-) | 20 | 1 file changed, 16 insertions(+), 2 deletions(-) |
21 | 21 | ||
22 | diff --git a/configpm b/configpm | 22 | diff --git a/configpm b/configpm |
23 | index 94a4778..99b20c9 100755 | 23 | index 07219d8..01a23fa 100755 |
24 | --- a/configpm | 24 | --- a/configpm |
25 | +++ b/configpm | 25 | +++ b/configpm |
26 | @@ -687,7 +687,7 @@ sub FETCH { | 26 | @@ -718,7 +718,7 @@ $config_txt .= uncomment <<'ENDOFEND'; |
27 | my($self, $key) = @_; | 27 | # my($self, $key) = @_; |
28 | 28 | # | |
29 | # check for cached value (which may be undef so we use exists not defined) | 29 | # # check for cached value (which may be undef so we use exists not defined) |
30 | - return exists $self->{$key} ? $self->{$key} : $self->fetch_string($key); | 30 | -# return exists $self->{$key} ? $self->{$key} : $self->fetch_string($key); |
31 | + return $self->fetch_string($key); | 31 | +# return $self->fetch_string($key); |
32 | } | 32 | # } |
33 | 33 | # | |
34 | ENDOFEND | 34 | ENDOFEND |
35 | @@ -845,7 +845,21 @@ $config_txt .= sprintf <<'ENDOFTIE', $fast_config; | 35 | @@ -876,7 +876,21 @@ $config_txt .= sprintf uncomment <<'ENDOFTIE', $fast_config; |
36 | sub DESTROY { } | 36 | # sub DESTROY { } |
37 | 37 | # | |
38 | sub AUTOLOAD { | 38 | # sub AUTOLOAD { |
39 | - require 'Config_heavy.pl'; | 39 | -# require 'Config_heavy.pl'; |
40 | + my $cfgfile = 'Config_heavy.pl'; | 40 | +# my $cfgfile = 'Config_heavy.pl'; |
41 | + if (defined $ENV{PERLCONFIGTARGET} and $ENV{PERLCONFIGTARGET} eq "yes") | 41 | +# if (defined $ENV{PERLCONFIGTARGET} and $ENV{PERLCONFIGTARGET} eq "yes") |
42 | + { | 42 | +# { |
43 | + $cfgfile = 'Config_heavy-target.pl'; | 43 | +# $cfgfile = 'Config_heavy-target.pl'; |
44 | + } | 44 | +# } |
45 | + if (defined $ENV{PERL_ARCHLIB}) | 45 | +# if (defined $ENV{PERL_ARCHLIB}) |
46 | + { | 46 | +# { |
47 | + push @INC, $ENV{PERL_ARCHLIB}; | 47 | +# push @INC, $ENV{PERL_ARCHLIB}; |
48 | + require $cfgfile; | 48 | +# require $cfgfile; |
49 | + pop @INC; | 49 | +# pop @INC; |
50 | + } | 50 | +# } |
51 | + else | 51 | +# else |
52 | + { | 52 | +# { |
53 | + require $cfgfile; | 53 | +# require $cfgfile; |
54 | + } | 54 | +# } |
55 | goto \&launcher unless $Config::AUTOLOAD =~ /launcher$/; | 55 | # goto \&launcher unless $Config::AUTOLOAD =~ /launcher$/; |
56 | die "&Config::AUTOLOAD failed on $Config::AUTOLOAD"; | 56 | # die "&Config::AUTOLOAD failed on $Config::AUTOLOAD"; |
57 | } | 57 | # } |
diff --git a/meta/recipes-devtools/perl/perl_5.36.1.bb b/meta/recipes-devtools/perl/perl_5.38.0.bb index 87768cc7f7..2103a39dfa 100644 --- a/meta/recipes-devtools/perl/perl_5.36.1.bb +++ b/meta/recipes-devtools/perl/perl_5.38.0.bb | |||
@@ -17,9 +17,6 @@ SRC_URI = "https://www.cpan.org/src/5.0/perl-${PV}.tar.gz;name=perl \ | |||
17 | file://0002-Constant-Fix-up-shebang.patch \ | 17 | file://0002-Constant-Fix-up-shebang.patch \ |
18 | file://determinism.patch \ | 18 | file://determinism.patch \ |
19 | file://0001-cpan-Sys-Syslog-Makefile.PL-Fix-_PATH_LOG-for-determ.patch \ | 19 | file://0001-cpan-Sys-Syslog-Makefile.PL-Fix-_PATH_LOG-for-determ.patch \ |
20 | file://CVE-2023-31484.patch \ | ||
21 | file://CVE-2023-31486-0001.patch \ | ||
22 | file://CVE-2023-31486-0002.patch \ | ||
23 | " | 20 | " |
24 | SRC_URI:append:class-native = " \ | 21 | SRC_URI:append:class-native = " \ |
25 | file://perl-configpm-switch.patch \ | 22 | file://perl-configpm-switch.patch \ |
@@ -28,7 +25,7 @@ SRC_URI:append:class-target = " \ | |||
28 | file://encodefix.patch \ | 25 | file://encodefix.patch \ |
29 | " | 26 | " |
30 | 27 | ||
31 | SRC_URI[perl.sha256sum] = "68203665d8ece02988fc77dc92fccbb297a83a4bb4b8d07558442f978da54cc1" | 28 | SRC_URI[perl.sha256sum] = "213ef58089d2f2c972ea353517dc60ec3656f050dcc027666e118b508423e517" |
32 | 29 | ||
33 | B = "${WORKDIR}/perl-${PV}-build" | 30 | B = "${WORKDIR}/perl-${PV}-build" |
34 | 31 | ||
@@ -158,9 +155,10 @@ do_install:append:class-target() { | |||
158 | # This is used to substitute target configuration when running native perl via perl-configpm-switch.patch | 155 | # This is used to substitute target configuration when running native perl via perl-configpm-switch.patch |
159 | ln -s Config_heavy.pl ${D}${libdir}/perl5/${PV}/${TARGET_ARCH}-linux/Config_heavy-target.pl | 156 | ln -s Config_heavy.pl ${D}${libdir}/perl5/${PV}/${TARGET_ARCH}-linux/Config_heavy-target.pl |
160 | 157 | ||
161 | # This contains host-specific information used for building miniperl (a helper executable built with host compiler) | 158 | # xconfig.h contains references to build host architecture, and yet is included from various other places. |
162 | # and therefore isn't reproducible. I believe the file isn't actually needed on target. | 159 | # To make it reproducible let's make it a copy of config.h patch that is specific to the target architecture. |
163 | rm ${D}${libdir}/perl5/${PV}/${TARGET_ARCH}-linux/CORE/xconfig.h | 160 | # It is believed that the original header is the product of building miniperl (a helper executable built with host compiler). |
161 | cp ${D}${libdir}/perl5/${PV}/${TARGET_ARCH}-linux/CORE/config.h ${D}${libdir}/perl5/${PV}/${TARGET_ARCH}-linux/CORE/xconfig.h | ||
164 | } | 162 | } |
165 | 163 | ||
166 | do_install:append:class-nativesdk() { | 164 | do_install:append:class-nativesdk() { |
@@ -205,6 +203,7 @@ perl_package_preprocess () { | |||
205 | ${PKGD}${bindir}/pod2usage.perl \ | 203 | ${PKGD}${bindir}/pod2usage.perl \ |
206 | ${PKGD}${bindir}/podchecker.perl \ | 204 | ${PKGD}${bindir}/podchecker.perl \ |
207 | ${PKGD}${libdir}/perl5/${PV}/${TARGET_ARCH}-linux/CORE/config.h \ | 205 | ${PKGD}${libdir}/perl5/${PV}/${TARGET_ARCH}-linux/CORE/config.h \ |
206 | ${PKGD}${libdir}/perl5/${PV}/${TARGET_ARCH}-linux/CORE/xconfig.h \ | ||
208 | ${PKGD}${libdir}/perl5/${PV}/${TARGET_ARCH}-linux/CORE/perl.h \ | 207 | ${PKGD}${libdir}/perl5/${PV}/${TARGET_ARCH}-linux/CORE/perl.h \ |
209 | ${PKGD}${libdir}/perl5/${PV}/${TARGET_ARCH}-linux/CORE/pp.h \ | 208 | ${PKGD}${libdir}/perl5/${PV}/${TARGET_ARCH}-linux/CORE/pp.h \ |
210 | ${PKGD}${libdir}/perl5/${PV}/Config.pm \ | 209 | ${PKGD}${libdir}/perl5/${PV}/Config.pm \ |