From: Matthias Klose Date: Thu, 17 Mar 2022 07:20:01 +0000 (+0000) Subject: reproducible-buildinfo X-Git-Tag: archive/raspbian/3.9.11-1+rpi1^2~12 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3d20e0cff2b72f5a11a961b49997d6275c8a51b6;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 903542d..fa3c07a 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -794,6 +794,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