Skip to content

Commit

Permalink
replace DATE, TIME and COMPILER by fixed definitions to aid reproduci…
Browse files Browse the repository at this point in the history
…ble builds

Patch: python-3.3.0b1-fix_date_time_compiler.patch
  • Loading branch information
mcepl committed Apr 4, 2024
1 parent 1faece6 commit a4fff8a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile.pre.in
Original file line number Diff line number Diff line change
Expand Up @@ -738,11 +738,18 @@ Modules/getbuildinfo.o: $(PARSER_OBJS) \
$(MODOBJS) \
$(srcdir)/Modules/getbuildinfo.c
$(CC) -c $(PY_CORE_CFLAGS) \
-DDATE="\"`date -u -r Makefile.pre.in +"%b %d %Y"`\"" \
-DTIME="\"`date -u -r Makefile.pre.in +"%T"`\"" \
-DGITVERSION="\"`LC_ALL=C $(GITVERSION)`\"" \
-DGITTAG="\"`LC_ALL=C $(GITTAG)`\"" \
-DGITBRANCH="\"`LC_ALL=C $(GITBRANCH)`\"" \
-o $@ $(srcdir)/Modules/getbuildinfo.c

Python/getcompiler.o: $(srcdir)/Python/getcompiler.c Makefile
$(CC) -c $(PY_CORE_CFLAGS) \
-DCOMPILER='"[GCC]"' \
-o $@ $(srcdir)/Python/getcompiler.c

Modules/getpath.o: $(srcdir)/Modules/getpath.c Makefile
$(CC) -c $(PY_CORE_CFLAGS) -DPYTHONPATH='"$(PYTHONPATH)"' \
-DPREFIX='"$(prefix)"' \
Expand Down

0 comments on commit a4fff8a

Please sign in to comment.