From: Matthias Klose Date: Sun, 1 Dec 2024 12:12:57 +0000 (+0200) Subject: reproducible-buildinfo X-Git-Tag: archive/raspbian/3.9.2-1+rpi1+deb11u2^2~41 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5a3ec4ca5713bb2fce3d5535c6e4aff5475e10bc;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