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
This commit is contained in:
Nicolas Morey-Chaisemartin 2018-10-25 07:47:14 +00:00 committed by Git OBS Bridge
parent 0252ca5c6d
commit fa75a0373f
2 changed files with 19 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Oct 23 19:24:37 UTC 2018 - Bernhard Wiedemann <bwiedemann@suse.com>
- Extend reproducible.patch to fix all build dates
-------------------------------------------------------------------
Thu Aug 2 09:21:12 UTC 2018 - schwab@suse.de

View File

@ -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*' \