gnu: glib: Fix CVE-2021-27218 and CVE-2021-27219.
[jackhill/guix/guix.git] / gnu / packages / patches / perl-deterministic-ordering.patch
CommitLineData
4187fe75
LC
1From <https://bugs.debian.org/801523>.
2
3From c01f602d1926b0671fd2c8d91f7e52c4e4c9fb24 Mon Sep 17 00:00:00 2001
4From: Niko Tyni <ntyni@debian.org>
5Date: Sun, 11 Oct 2015 19:27:56 +0300
6Subject: [PATCH] Sort the list of XS code files when generating RealPPPort.xs
7
8all_files_in_dir() uses readdir() ordering to make the list of
9input files. This can vary between build systems, breaking build
10reproducibility.
11---
12 cpan/Devel-PPPort/PPPort_xs.PL | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
f94a8654 15diff --git a/dist/Devel-PPPort/PPPort_xs.PL b/dist/Devel-PPPort/PPPort_xs.PL
4187fe75 16index 5f18940..149f2fe 100644
f94a8654
MB
17--- a/dist/Devel-PPPort/PPPort_xs.PL
18+++ b/dist/Devel-PPPort/PPPort_xs.PL
4187fe75
LC
19@@ -38,7 +38,7 @@ END
20 my $file;
21 my $sec;
22
23-for $file (all_files_in_dir('parts/inc')) {
24+for $file (sort(all_files_in_dir('parts/inc'))) {
25 my $spec = parse_partspec($file);
26
27 my $msg = 0;
28--
292.5.1