SHA256
1
0
forked from pool/libical
libical/reproducible-generator.patch
Michal Vyskocil ae6bdddbeb Accepting request 283976 from home:coolo:branches:openSUSE:Factory
- add reproducible-generator.patch from debian bug report to
  get reproducible builds (and predicatable API actually)

OBS-URL: https://build.opensuse.org/request/show/283976
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libical?expand=0&rev=33
2015-02-04 21:21:09 +00:00

18 lines
641 B
Diff

Description: Sort keys to generate reproducible source code.
Author: Dimitri John Ledkov <dimitri.j.ledkov@linux.intel.com>
Bug-Debian: http://bugs.debian.org/773916
Index: libical-1.0.1/scripts/mkderivedvalues.pl
===================================================================
--- libical-1.0.1.orig/scripts/mkderivedvalues.pl
+++ libical-1.0.1/scripts/mkderivedvalues.pl
@@ -141,7 +141,7 @@ if($opt_c){
my $count = scalar(keys %h) + 1;
print "static const struct icalvalue_kind_map value_map[$count]={\n";
- foreach $value (keys %h) {
+ foreach $value (sort keys %h) {
next if $value eq 'NO' or $value eq 'ANY';