From . From 98acae1a6f2c9b2e6014eac4070a817c9d0fd8a2 Mon Sep 17 00:00:00 2001 From: "Bernhard M. Wiedemann" Date: Sun, 23 Jul 2017 07:02:28 +0200 Subject: [PATCH] Allow to override build date in order to make builds reproducible. See https://reproducible-builds.org/ for why this is good and https://reproducible-builds.org/specs/source-date-epoch/ for the definition of this variable. Also uses UTC to be independent of timezone settings. --- Makefile | 2 +- ipath/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index d79c4bd..99406ef 100644 --- a/Makefile +++ b/Makefile @@ -270,7 +270,7 @@ ${TARGLIB}.so.${MAJOR}: ${TARGLIB}.so.${MAJOR}.${MINOR} # 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 +'char psmi_infinipath_revision[] ="$$""Date: %F %R ${rpm_extra_description}InfiniPath $$";' > ${lib_build_dir}/_revision.c + date -u -d@$${SOURCE_DATE_EPOCH:-$$(date +%s)} +'char psmi_infinipath_revision[] ="$$""Date: %F %R ${rpm_extra_description}InfiniPath $$";' > ${lib_build_dir}/_revision.c $(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) diff --git a/ipath/Makefile b/ipath/Makefile index 8c2cc6e..73abd6f 100644 --- a/ipath/Makefile +++ b/ipath/Makefile @@ -70,7 +70,7 @@ ${TARGLIB}.so.${MAJOR}: ${TARGLIB}.so.${MAJOR}.${MINOR} # 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*' \ oken.scm?id=1ef71f522577e8b796344e072463d87e5cbae889'>security-token.scm
AgeCommit message (Expand)Author
2020-01-10gnu: opensc: Eliminate obsolete test disablement....This follows up on commit 508d5c5fa883a3cee53f8da358d853d4b245496c, I guess. * gnu/packages/security-token.scm (opensc)[arguments]: Remove the ‘disable-broken-test’ phase. Tobias Geerinckx-Rice
2020-01-10gnu: pcsc-lite: Update to 1.8.26....* gnu/packages/security-token.scm (pcsc-lite): Update to 1.8.26. Tobias Geerinckx-Rice
2020-01-10gnu: pcsc-lite: Don't use NAME in source URI....* gnu/packages/security-token.scm (pcsc-lite)[source]: Hard-code NAME. Tobias Geerinckx-Rice
2019-12-03gnu: eid-mw: Update to 4.4.23....* gnu/packages/security-token.scm (eid-mw): Update to 4.4.23. Tobias Geerinckx-Rice
2019-10-27gnu: Add pam-u2f....* gnu/packages/security-token.scm (pam-u2f): New variable. Ricardo Wurmus
2019-10-27gnu: Add libu2f-server....* gnu/packages/security-token.scm (libu2f-server): New variable. Ricardo Wurmus
2019-08-24gnu: python-pyscard: Update to 1.9.9....* gnu/packages/security-token.scm (python-pyscard): Update to 1.9.9. Tobias Geerinckx-Rice
2019-08-13gnu: ccid: Update to 1.4.31....* gnu/packages/security-token.scm (ccid): Update to 1.4.31. Marius Bakke