From 4b7ba49bfbb051904cc3db8f85cc2d092c34028c2d53e815f6ba795246db361e Mon Sep 17 00:00:00 2001 From: Atri Bhattacharya Date: Sat, 11 Jul 2020 22:03:09 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/modglue?expand=0&rev=5 --- modglue.changes | 5 +++++ modglue.spec | 3 +++ modglue-1.19-reproducible.patch | 13 +++++++++++++ 3 files changed, 21 insertions(+) create mode 100644 modglue-1.19-reproducible.patch diff --git a/modglue.changes b/modglue.changes index 4bcdf38..7eaddc8 100644 --- a/modglue.changes +++ b/modglue.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Feb 20 09:36:37 UTC 2018 - bwiedemann@suse.com + +- Add modglue-1.19-reproducible.patch to make build reproducible + ------------------------------------------------------------------- Wed Dec 11 23:55:21 UTC 2013 - badshah400@gmail.com diff --git a/modglue.spec b/modglue.spec index 3c13740..6f9a138 100644 --- a/modglue.spec +++ b/modglue.spec @@ -26,6 +26,8 @@ License: GPL-2.0 Group: Development/Libraries/C and C++ Url: http://cadabra.phi-sci.com/index.html Source: http://cadabra.phi-sci.com/%{name}-%{version}.tar.gz +# PATCH-FIX-OPENSUSE -- dont add build date (boo#1047218) +Patch0: modglue-1.19-reproducible.patch BuildRequires: gcc-c++ BuildRequires: libtool BuildRequires: pkg-config @@ -90,6 +92,7 @@ This package provides the header and source files for development with %prep %setup -q +%patch0 -p1 %build ./configure --prefix=%{_prefix} --libdir=/%{_lib} diff --git a/modglue-1.19-reproducible.patch b/modglue-1.19-reproducible.patch new file mode 100644 index 0000000..537d885 --- /dev/null +++ b/modglue-1.19-reproducible.patch @@ -0,0 +1,13 @@ +Index: modglue-1.19/src/Makefile.in +=================================================================== +--- modglue-1.19.orig/src/Makefile.in ++++ modglue-1.19/src/Makefile.in +@@ -27,7 +27,7 @@ MPHASE = ${LIBTOOL} --tag=CXX --mode=lin + IPHASE = ${LIBTOOL} --mode=install @INSTALL@ + FPHASE = ${LIBTOOL} --mode=finish @prefix@/@libdir@ + +-TIMESTAMP = -D"DATETIME=\"`date | sed -e 's/ / /'`\"" -DHOSTNAME=\"`hostname`\" ++TIMESTAMP = -D"DATETIME=\"`date -u -d @$${SOURCE_DATE_EPOCH:-$$(date +%s)} | sed -e 's/ / /'`\"" -DHOSTNAME=\"`hostname`\" + + all: library tests tools +