From: Matthias Klose Date: Sun, 10 Jan 2021 15:42:50 +0000 (+0000) Subject: reproducible-buildinfo X-Git-Tag: archive/raspbian/3.9.1-2+rpi1^2~10 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=60880cac7961aba57d4379711d0debb851a96ee6;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