From: Matthias Klose Date: Fri, 5 Feb 2021 13:46:56 +0000 (+0000) Subject: reproducible-buildinfo X-Git-Tag: archive/raspbian/3.9.1-4+rpi1^2~11 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e0dd2e937272062fe4fd83d1e61c77f07ae46dc5;p=python3.9.git reproducible-buildinfo # DP: Build getbuildinfo.o with DATE/TIME values when defined # DP: Build getbuildinfo.o with DATE/TIME values when defined Gbp-Pq: Name reproducible-buildinfo.diff --- diff --git a/Makefile.pre.in b/Makefile.pre.in index 5544b20..ed4015f 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -785,6 +785,8 @@ Modules/getbuildinfo.o: $(PARSER_OBJS) \ -DGITVERSION="\"`LC_ALL=C $(GITVERSION)`\"" \ -DGITTAG="\"`LC_ALL=C $(GITTAG)`\"" \ -DGITBRANCH="\"`LC_ALL=C $(GITBRANCH)`\"" \ + $(if $(BUILD_DATE),-DDATE='"$(BUILD_DATE)"') \ + $(if $(BUILD_TIME),-DTIME='"$(BUILD_TIME)"') \ -o $@ $(srcdir)/Modules/getbuildinfo.c Modules/getpath.o: $(srcdir)/Modules/getpath.c Makefile