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*' \
AgeCommit message (Expand)Author
2022-01-14gnu: aspell-dictionary: Try to find new releases....* gnu/packages/aspell.scm (aspell-dictionary)[properties]: New field. Efraim Flashner
2021-12-13gnu: Simplify package inputs....This commit was obtained by running: ./pre-inst-env guix style without any additional argument. Ludovic Courtès
2021-06-05gnu: ispell: Update to 3.4.04....* gnu/packages/aspell.scm (ispell): Update to 3.4.04. Tobias Geerinckx-Rice
2021-06-02gnu: ispell: Update to 3.4.03....* gnu/packages/aspell.scm (ispell): Update to 3.4.03. Tobias Geerinckx-Rice
2021-05-18gnu: hunspell-dict-en & variants: Make reproducible....* gnu/packages/aspell.scm (aspell-word-list)[arguments]: Add a new 'make-reproducible phase. Fixes <http://issues.guix.gnu.org/48499>. Tobias Geerinckx-Rice
2021-05-06gnu: aspell-dict-en: Update to 2020.12.07-0....* gnu/packages/aspell.scm (aspell-dict-en): Update to 2020.12.07-0. Tobias Geerinckx-Rice
2021-04-30gnu: Add aspell-dict-ro....* gnu/packages/aspell.scm (aspell-dict-ro): New variable. Signed-off-by: Julien Lepiller <julien@lepiller.eu> Sergiu Ivanov
2021-01-12gnu: ispell: Update to 3.4.02....* gnu/packages/aspell.scm (ispell): Update to 3.4.02. Tobias Geerinckx-Rice
2021-01-06gnu: ispell: Update to 3.4.01....* gnu/packages/aspell.scm (ispell): Update to 3.4.01. Tobias Geerinckx-Rice