Hello community,

here is the log from the commit of package nss_ldap for openSUSE:Factory 
checked in at 2017-01-25 23:33:12
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/nss_ldap (Old)
 and      /work/SRC/openSUSE:Factory/.nss_ldap.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "nss_ldap"

Changes:
--------
--- /work/SRC/openSUSE:Factory/nss_ldap/nss_ldap.changes        2016-08-29 
15:43:03.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.nss_ldap.new/nss_ldap.changes   2017-01-25 
23:33:14.429191246 +0100
@@ -1,0 +2,5 @@
+Mon Jan 23 09:35:26 UTC 2017 - bwiedem...@suse.com
+
+- Add reproducible.patch to allow for reproducible builds
+
+-------------------------------------------------------------------

New:
----
  reproducible.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ nss_ldap.spec ++++++
--- /var/tmp/diff_new_pack.79U9Gi/_old  2017-01-25 23:33:15.085092406 +0100
+++ /var/tmp/diff_new_pack.79U9Gi/_new  2017-01-25 23:33:15.085092406 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package nss_ldap
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 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
@@ -43,6 +43,8 @@
 Patch9:         0009-fix-for-BUG-412-don-t-close-nested-contexts.patch
 Patch10:        0010-initialize-context-in-_nss_ldap_getbyname.patch
 Patch11:        0011-When-invoked-via-glibc-the-input-buffer-is-enlarged.patch
+# PATCH-FIX-TO-UPSTREAM -- is not opensuse specific
+Patch12:        reproducible.patch
 BuildRequires:  autoconf
 BuildRequires:  automake
 BuildRequires:  db-devel
@@ -75,6 +77,7 @@
 %patch9 -p1
 %patch10 -p1
 %patch11 -p1
+%patch12 -p1
 cp -v %{SOURCE1} .
 
 %build

++++++ reproducible.patch ++++++
could not be sent upstream. http://bugzilla.padl.com is broken
and support at padl.com returns User unknown

make build reproducible

see https://reproducible-builds.org/ for why this is good
and https://reproducible-builds.org/specs/source-date-epoch/ for the definition 
of this variable

Index: nss_ldap-265/vers_string
===================================================================
--- nss_ldap-265.orig/vers_string
+++ nss_ldap-265/vers_string
@@ -4,6 +4,7 @@
 #
 # Implementation of SGS vers_string which uses CVSVersionInfo.txt.
 
+use POSIX qw(strftime);
 require "cvslib.pl";
 
 $OUTFILE = (-f "version.h") ? "version.h" : "vers.c";
@@ -13,7 +14,8 @@ $HEADER = '$Id: vers_string,v 2.1 2009/1
 if ($ENV{'PROGRAM'}) { $PROGRAM = $ENV{'PROGRAM'}; }
 
 chop($AUTHOR);
-chop($DATE=`date -u`);
+$AUTHOR = "reproducible" if $ENV{SOURCE_DATE_EPOCH};
+$DATE = strftime("%Y-%m-%d %T", gmtime($ENV{SOURCE_DATE_EPOCH} || time));
 chop($CWD=`pwd`);
 
 ($PROJECT, $VERSION) = split(/\-/, &getCVSVersionInfo());

Reply via email to