From fa75a0373fd568c38e3d4b1da36046dbc5c6a5510ae8683c16e89cc624ae7d1b Mon Sep 17 00:00:00 2001 From: Nicolas Morey-Chaisemartin Date: Thu, 25 Oct 2018 07:47:14 +0000 Subject: [PATCH] Accepting request 644077 from home:bmwiedemann:branches:science:HPC Extend reproducible.patch to fix all build dates to make the package build reproducible Upstream seems orphaned. OBS-URL: https://build.opensuse.org/request/show/644077 OBS-URL: https://build.opensuse.org/package/show/science:HPC/infinipath-psm?expand=0&rev=23 --- infinipath-psm.changes | 5 +++++ reproducible.patch | 14 ++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/infinipath-psm.changes b/infinipath-psm.changes index cacd76f..dfdb48e 100644 --- a/infinipath-psm.changes +++ b/infinipath-psm.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Oct 23 19:24:37 UTC 2018 - Bernhard Wiedemann + +- Extend reproducible.patch to fix all build dates + ------------------------------------------------------------------- Thu Aug 2 09:21:12 UTC 2018 - schwab@suse.de diff --git a/reproducible.patch b/reproducible.patch index 518bb41..8599cfd 100644 --- a/reproducible.patch +++ b/reproducible.patch @@ -26,3 +26,17 @@ index d79c4bd..99406ef 100644 $(CC) -c $(BASECFLAGS) $(INCLUDES) _revision.c -o _revision.o $(CC) $(LDFLAGS) -o $@ -Wl,-soname=${TARGLIB}.so.${MAJOR} -shared -Wl,--unique='*fastpath*' \ ${${TARGLIB}-objs} _revision.o -L$(build_dir)/ipath $(LDLIBS) + +Index: infinipath-psm-3.3.26.604758e/ipath/Makefile +=================================================================== +--- infinipath-psm-3.3.26.604758e.orig/ipath/Makefile ++++ infinipath-psm-3.3.26.604758e/ipath/Makefile +@@ -70,7 +70,7 @@ ${TARGLIB}.so.${MAJOR}: ${TARGLIB}.so.${ + # file around. Generate it such that the ident command can find it + # and strings -a | grep InfiniPath does a reasonable job as well. + ${TARGLIB}.so.${MAJOR}.${MINOR}: ${${TARGLIB}-objs} +- date +'static __attribute__ ((unused)) char __psc_infinipath_revision[] ="$$""Date: %F %R ${rpm_extra_description}InfiniPath $$";' > _revision.c ++ date -u -d@$${SOURCE_DATE_EPOCH:-$$(date +%s)} +'static __attribute__ ((unused)) char __psc_infinipath_revision[] ="$$""Date: %F %R ${rpm_extra_description}InfiniPath $$";' > _revision.c + $(CC) -c $(BASECFLAGS) $(INCLUDES) _revision.c -o _revision.o + $(CC) -o $@ -Wl,-soname=${TARGLIB}.so.${MAJOR} -shared \ + -Wl,--unique='*fastpath*' \