SHA256
1
0
forked from pool/libical

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
This commit is contained in:
Michal Vyskocil 2015-02-04 21:21:09 +00:00 committed by Git OBS Bridge
parent d0ae3a409d
commit ae6bdddbeb
3 changed files with 26 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Feb 3 19:04:34 UTC 2015 - coolo@suse.com
- add reproducible-generator.patch from debian bug report to
get reproducible builds (and predicatable API actually)
-------------------------------------------------------------------
Fri Dec 26 20:45:25 UTC 2014 - badshah400@gmail.com

View File

@ -1,7 +1,7 @@
#
# spec file for package libical
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -26,6 +26,7 @@ Group: Development/Libraries/C and C++
Url: http://sourceforge.net/projects/freeassociation/
Source: https://github.com/libical/libical/releases/download/v%{version}/%{name}-%{version}.tar.gz
Source2: baselibs.conf
Patch0: reproducible-generator.patch
BuildRequires: cmake >= 2.4
BuildRequires: gcc-c++
BuildRequires: pkg-config
@ -86,6 +87,7 @@ component properties, parameters, and subcomponents.
%prep
%setup -q
%patch0 -p1
%build
%cmake

View File

@ -0,0 +1,17 @@
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';