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 30 31 32 33
|
From c602a943fa712771b819dafed5658b9641f0c83c Mon Sep 17 00:00:00 2001
From: Niko Tyni <ntyni@debian.org>
Date: Thu, 20 Aug 2015 22:11:23 +0300
Subject: [PATCH] Generate the XS code in a deterministic way
Sort the list of classes when writing out XS code, so that it stays
stable between builds. This makes it possible to build reproducible
binaries from the generated code.
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=796251
Forwarded: no, as Clownfish::CFC is no longer bundled in the current (0.4.2)
upstream release, and the code in the separate dist has been reorganized in
non-obvious (to me) ways
---
clownfish/perl/lib/Clownfish/CFC/Binding/Perl.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/clownfish/perl/lib/Clownfish/CFC/Binding/Perl.pm b/clownfish/perl/lib/Clownfish/CFC/Binding/Perl.pm
index e782270..c5f819b 100644
--- a/clownfish/perl/lib/Clownfish/CFC/Binding/Perl.pm
+++ b/clownfish/perl/lib/Clownfish/CFC/Binding/Perl.pm
@@ -133,7 +133,7 @@ sub write_bindings {
}
# Hand-rolled XS.
- for my $class_name ( keys %has_xs_code ) {
+ for my $class_name ( sort keys %has_xs_code ) {
my $class_binding
= Clownfish::CFC::Binding::Perl::Class->singleton($class_name);
$hand_rolled_xs .= $class_binding->get_xs_code . "\n";
--
2.1.4
|