From 58785e1d3b8f5e0a802eb0cd477f4f38fc3c22c45983a0d7e7d794a5c0a896ed Mon Sep 17 00:00:00 2001 From: OBS User mrdocs Date: Mon, 16 Jan 2017 23:31:54 +0000 Subject: [PATCH] Accepting request 450552 from home:bmwiedemann:branches:devel:languages:misc Add reproducible.patch to allow for reproducible builds OBS-URL: https://build.opensuse.org/request/show/450552 OBS-URL: https://build.opensuse.org/package/show/devel:languages:misc/guile1?expand=0&rev=30 --- guile1.changes | 5 +++++ guile1.spec | 3 +++ reproducible.patch | 13 +++++++++++++ 3 files changed, 21 insertions(+) create mode 100644 reproducible.patch diff --git a/guile1.changes b/guile1.changes index a9386b6..6290116 100644 --- a/guile1.changes +++ b/guile1.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jan 16 16:27:26 UTC 2017 - bwiedemann@suse.com + +- Add reproducible.patch to allow for reproducible builds + ------------------------------------------------------------------- Mon Oct 17 13:36:19 UTC 2016 - pgajdos@suse.com diff --git a/guile1.spec b/guile1.spec index 2db0b8d..3757d8d 100644 --- a/guile1.spec +++ b/guile1.spec @@ -36,6 +36,8 @@ Patch7: guile-socket-test.patch # fix failures with texinfo 5.2 Patch8: guile-texinfo.patch Patch9: guile1-CVE-2016-8605.patch +# PATCH-FIX-OPENSUSE (version is obsolete upstream / from 2010) +Patch10: reproducible.patch BuildRequires: automake BuildRequires: gc-devel BuildRequires: gmp-devel @@ -159,6 +161,7 @@ contains the files necessary to link against the guile libraries. %patch7 -p1 %patch8 -p1 %patch9 -p1 +%patch10 -p1 # guile-1.8.1: The code is not so good for -Werror (unused results of write()). sed -i s/-Werror// configure.in configure diff --git a/reproducible.patch b/reproducible.patch new file mode 100644 index 0000000..8dfadee --- /dev/null +++ b/reproducible.patch @@ -0,0 +1,13 @@ +Index: guile-1.8.8/libguile/Makefile.am +=================================================================== +--- guile-1.8.8.orig/libguile/Makefile.am ++++ guile-1.8.8/libguile/Makefile.am +@@ -265,7 +265,7 @@ libpath.h: $(srcdir)/Makefile.in $(top_ + >> libpath.tmp + @echo ' { "LIBS", "@GUILE_LIBS@" }, \' >> libpath.tmp + @echo ' { "CFLAGS", "@GUILE_CFLAGS@" }, \' >> libpath.tmp +- @echo ' { "buildstamp", "'"`date`"'" }, \' >> libpath.tmp ++ @echo ' { "buildstamp", "'"`date -u -d \"@$${SOURCE_DATE_EPOCH:-$$(date +%s)}\" `"'" }, \' >> libpath.tmp + @echo '}' >> libpath.tmp + @mv libpath.tmp libpath.h +