mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
There was a problem where Python would not properly include the faketime timestamp sometimes. This patch replaces faketime with a patch that is used by Ubuntu for reproducible builds by exporting BUILD_DATE and BUILD_TIME with the desired values. ----- taken from Electron-Cash/Electron-Cash@9532508a3f
13 lines
536 B
Diff
13 lines
536 B
Diff
# DP: Build getbuildinfo.o with DATE/TIME values when defined
|
|
|
|
--- a/Makefile.pre.in
|
|
+++ b/Makefile.pre.in
|
|
@@ -741,6 +741,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
|