summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/perl/files/determinism.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/perl/files/determinism.patch')
-rw-r--r--meta/recipes-devtools/perl/files/determinism.patch45
1 files changed, 14 insertions, 31 deletions
diff --git a/meta/recipes-devtools/perl/files/determinism.patch b/meta/recipes-devtools/perl/files/determinism.patch
index ccdd52a0d0..bdb9a928bb 100644
--- a/meta/recipes-devtools/perl/files/determinism.patch
+++ b/meta/recipes-devtools/perl/files/determinism.patch
@@ -1,4 +1,7 @@
1Fixes to make the perl build reproducible: 1From 5c4fd57daf125357262aa796057d7be8e78d378e Mon Sep 17 00:00:00 2001
2From: Richard Purdie <richard.purdie@linuxfoundation.org>
3Date: Wed, 5 Feb 2020 23:54:02 +0000
4Subject: [PATCH] Fixes to make the perl build reproducible:
2 5
3a) Remove the \n from configure_attr.sh since it gets quoted differently depending on 6a) Remove the \n from configure_attr.sh since it gets quoted differently depending on
4 whether the shell is bash or dash which can cause the test result to be incorrect. 7 whether the shell is bash or dash which can cause the test result to be incorrect.
@@ -8,9 +11,9 @@ b) Sort the order of the module lists from configure_mods.sh since otherwise
8 the result isn't the same leading to makefile differences. 11 the result isn't the same leading to makefile differences.
9 Reported upstream: https://github.com/arsv/perl-cross/issues/88 12 Reported upstream: https://github.com/arsv/perl-cross/issues/88
10 13
11c) Sort the Encode::Byte byte_t.fnm file output (and the makefile depends whilst 14c) Sort the Encode::Byte byte_t.fnm file output (and the makefile depends whilst
12 there for good measure) 15 there for good measure)
13 This needs to go to upstream perl (not done) 16 Submitted to upstream perl: https://github.com/dankogai/p5-encode/pull/179
14 17
15d) Use bash for perl-cross configure since otherwise trnl gets set to "\n" with bash 18d) Use bash for perl-cross configure since otherwise trnl gets set to "\n" with bash
16 and "" with dash 19 and "" with dash
@@ -18,26 +21,16 @@ d) Use bash for perl-cross configure since otherwise trnl gets set to "\n" with
18 21
19RP 2020/2/7 22RP 2020/2/7
20 23
21Upstream-Status: Pending [75% submitted] 24Upstream-Status: Submitted [see links above]
22Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org 25Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org
26---
27 cpan/Encode/Byte/Makefile.PL | 4 ++--
28 1 file changed, 2 insertions(+), 2 deletions(-)
23 29
24Index: perl-5.30.1/cnf/configure_mods.sh 30diff --git a/cpan/Encode/Byte/Makefile.PL b/cpan/Encode/Byte/Makefile.PL
25=================================================================== 31index 6824bbb..4af4a50 100644
26--- perl-5.30.1.orig/cnf/configure_mods.sh 32--- a/cpan/Encode/Byte/Makefile.PL
27+++ perl-5.30.1/cnf/configure_mods.sh 33+++ b/cpan/Encode/Byte/Makefile.PL
28@@ -82,7 +82,7 @@ extonlyif() {
29 }
30
31 definetrimspaces() {
32- v=`echo "$2" | sed -r -e 's/\s+/ /g' -e 's/^\s+//' -e 's/\s+$//'`
33+ v=`echo "$2" | sed -r -e 's/\s+/ /g' -e 's/^\s+//' -e 's/\s+$//' | xargs -n1 | LANG=C sort | xargs`
34 define $1 "$v"
35 }
36
37Index: perl-5.30.1/cpan/Encode/Byte/Makefile.PL
38===================================================================
39--- perl-5.30.1.orig/cpan/Encode/Byte/Makefile.PL
40+++ perl-5.30.1/cpan/Encode/Byte/Makefile.PL
41@@ -171,7 +171,7 @@ sub postamble 34@@ -171,7 +171,7 @@ sub postamble
42 my $lengthsofar = length($str); 35 my $lengthsofar = length($str);
43 my $continuator = ''; 36 my $continuator = '';
@@ -56,13 +49,3 @@ Index: perl-5.30.1/cpan/Encode/Byte/Makefile.PL
56 { 49 {
57 print FILELIST $self->catfile($dir,$file) . "\n"; 50 print FILELIST $self->catfile($dir,$file) . "\n";
58 } 51 }
59Index: perl-5.30.1/cnf/configure
60===================================================================
61--- perl-5.30.1.orig/cnf/configure
62+++ perl-5.30.1/cnf/configure
63@@ -1,4 +1,4 @@
64-#!/bin/sh
65+#!/bin/bash
66
67 base=${0%/*}; test -z "$base" && base=.
68