Accepting request 548200 from home:bmwiedemann:branches:devel:languages:perl
Add perl-reproducible.patch to make build reproducible (boo#1047218) might be possible to upstream in generalized form (e.g. BSD date does not have -d but -r) OBS-URL: https://build.opensuse.org/request/show/548200 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl?expand=0&rev=154
This commit is contained in:
parent
5cd036dd55
commit
a555b0934d
24
perl-reproducible.patch
Normal file
24
perl-reproducible.patch
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
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
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Dec 4 17:50:10 UTC 2017 - bwiedemann@suse.com
|
||||||
|
|
||||||
|
- Add perl-reproducible.patch to make build reproducible (boo#1047218)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Sep 23 10:40:59 UTC 2017 - coolo@suse.com
|
Sat Sep 23 10:40:59 UTC 2017 - coolo@suse.com
|
||||||
|
|
||||||
|
@ -41,6 +41,8 @@ Patch7: perl-5.22.0_wrong_rpm_provides.diff
|
|||||||
Patch8: skip_time_hires.patch
|
Patch8: skip_time_hires.patch
|
||||||
Patch9: perl-incfix.diff
|
Patch9: perl-incfix.diff
|
||||||
Patch11: perl-5.18.2-overflow.diff
|
Patch11: perl-5.18.2-overflow.diff
|
||||||
|
# PATCH-FIX-OPENSUSE
|
||||||
|
Patch12: perl-reproducible.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
PreReq: perl-base = %version
|
PreReq: perl-base = %version
|
||||||
#PreReq: %fillup_prereq
|
#PreReq: %fillup_prereq
|
||||||
@ -182,6 +184,7 @@ cp -p %{S:3} .
|
|||||||
%endif
|
%endif
|
||||||
%patch9
|
%patch9
|
||||||
%patch11
|
%patch11
|
||||||
|
%patch12 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
cp -a lib savelib
|
cp -a lib savelib
|
||||||
|
Loading…
Reference in New Issue
Block a user