File perl-reproducible.patch of Package perl

PATCH-FIX-OPENSUSE
Author: Bernhard M. Wiedemann <bwiedemann suse de>
Date: 2017-12-04

replace hostname, username, time with fixed values

Index: perl-5.26.1/Configure
===================================================================
--- perl-5.26.1.orig/Configure
+++ perl-5.26.1/Configure
@@ -9234,6 +9234,13 @@ esac
 set $myhostname
 myhostname=$1
 
+if test -n "$SOURCE_DATE_EPOCH" ; then
+	cf_time="`LC_ALL=C LANGUAGE=C $date -u -d@$SOURCE_DATE_EPOCH`"
+	cf_by="reproducible"
+	myhostname="reproducible"
+	myuname="reproducible"
+fi
+
 : verify guess
 if $test "$myhostname" ; then
 	dflt=y
openSUSE Build Service is sponsored by