aboutsummary
aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/perl-deterministic-ordering.patch
blob: be63d5cde34872c8d8aa064edf41c5ff532d28cd (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From <https://bugs.debian.org/801523>.

From c01f602d1926b0671fd2c8d91f7e52c4e4c9fb24 Mon Sep 17 00:00:00 2001
From: Niko Tyni <ntyni@debian.org>
Date: Sun, 11 Oct 2015 19:27:56 +0300
Subject: [PATCH] Sort the list of XS code files when generating RealPPPort.xs

all_files_in_dir() uses readdir() ordering to make the list of
input files. This can vary between build systems, breaking build
reproducibility.
---
 cpan/Devel-PPPort/PPPort_xs.PL | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dist/Devel-PPPort/PPPort_xs.PL b/dist/Devel-PPPort/PPPort_xs.PL
index 5f18940..149f2fe 100644
--- a/dist/Devel-PPPort/PPPort_xs.PL
+++ b/dist/Devel-PPPort/PPPort_xs.PL
@@ -38,7 +38,7 @@ END
 my $file;
 my $sec;
 
-for $file (all_files_in_dir('parts/inc')) {
+for $file (sort(all_files_in_dir('parts/inc'))) {
   my $spec = parse_partspec($file);
 
   my $msg = 0;
-- 
2.5.1
scm10
1 files changed, 5 insertions, 5 deletions
diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm
index fd3993e900..dc6a37490e 100644
--- a/gnu/packages/freedesktop.scm
+++ b/gnu/packages/freedesktop.scm
@@ -1655,11 +1655,11 @@ wish to perform colour calibration.")
(base32 "0y3wz5hlxpnvqj67bihvzfi4dwx2m2nx9byppf4jjd80x0j2630m"))))
(build-system meson-build-system)
(arguments
- '(#:configure-flags
- (list (string-append "-Dudev_hwdb_dir=" (assoc-ref %outputs "out")
- "/lib/udev/hwdb.d")
- (string-append "-Dudev_rules_dir=" (assoc-ref %outputs "out")
- "/lib/udev/rules.d"))))
+ (list #:configure-flags
+ #~(list (string-append "-Dudev_hwdb_dir=" #$output
+ "/lib/udev/hwdb.d")
+ (string-append "-Dudev_rules_dir=" #$output
+ "/lib/udev/rules.d"))))
(native-inputs
(list `(,glib "bin") ; for {glib-,}mkenums
gobject-introspection