File reproducible.patch of Package HSAIL-Tools

https://github.com/HSAFoundation/HSAIL-Tools/pull/54
https://bugzilla.opensuse.org/show_bug.cgi?id=1041090
Date: 2019-06-09
Author: Bernhard M. Wiedemann

sort hash keys for reproducible builds


diff --git a/libHSAIL/generate.pl b/libHSAIL/generate.pl
index b19d72f..a0d9d78 100644
--- a/libHSAIL/generate.pl
+++ b/libHSAIL/generate.pl
@@ -1376,7 +1376,7 @@ sub makeWrappers {
     print map { "class $_->{wname};\n" } grep { !$_->{nowrap} } @sortedStructs;
     print "\n\n";
 
-    for my $tname (keys %$typedefs) {
+    for my $tname (sort keys %$typedefs) {
 
         my $type = $typedefs->{$tname};
         my $prop = $type->{'bitmask'};
openSUSE Build Service is sponsored by