Skip to content

Commit c0f5bca

Browse files
committed
python3: add reproducible-buildinfo.diff
1 parent b70c93a commit c0f5bca

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

pythonforandroid/recipes/python3/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ class Python3Recipe(TargetPythonRecipe):
6262

6363
patches = [
6464
'patches/pyconfig_detection.patch',
65+
'patches/reproducible-buildinfo.diff',
6566

6667
# Python 3.7.1
6768
('patches/py3.7.1_fix-ctypes-util-find-library.patch', version_starts_with("3.7")),
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# DP: Build getbuildinfo.o with DATE/TIME values when defined
2+
3+
--- a/Makefile.pre.in
4+
+++ b/Makefile.pre.in
5+
@@ -785,6 +785,8 @@ Modules/getbuildinfo.o: $(PARSER_OBJS) \
6+
-DGITVERSION="\"`LC_ALL=C $(GITVERSION)`\"" \
7+
-DGITTAG="\"`LC_ALL=C $(GITTAG)`\"" \
8+
-DGITBRANCH="\"`LC_ALL=C $(GITBRANCH)`\"" \
9+
+ $(if $(BUILD_DATE),-DDATE='"$(BUILD_DATE)"') \
10+
+ $(if $(BUILD_TIME),-DTIME='"$(BUILD_TIME)"') \
11+
-o $@ $(srcdir)/Modules/getbuildinfo.c
12+
13+
Modules/getpath.o: $(srcdir)/Modules/getpath.c Makefile

0 commit comments

Comments
 (0)