Hi Scott,

> Looks like the attached patch is empty.

Trying again...


Regards,

--
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org 🍥 chris-lamb.co.uk
       `- 
--- a/debian/patches/reproducible-build.patch   1970-01-01 01:00:00.000000000 
+0100
--- b/debian/patches/reproducible-build.patch   2020-05-19 22:15:44.568617176 
+0100
@@ -0,0 +1,26 @@
+Description: Make the build reproducible
+Author: Chris Lamb <la...@debian.org>
+Last-Update: 2020-05-19
+
+--- kivy-1.10.1.orig/setup.py
++++ kivy-1.10.1/setup.py
+@@ -17,6 +17,7 @@ from os import walk, environ
+ from distutils.version import LooseVersion
+ from distutils.sysconfig import get_python_inc
+ from collections import OrderedDict
++import time
+ from time import sleep
+ from subprocess import check_output, CalledProcessError
+ from datetime import datetime
+@@ -46,7 +47,10 @@ def get_description():
+ 
+ def get_version(filename='kivy/version.py'):
+     VERSION = kivy.__version__
+-    DATE = datetime.utcnow().strftime('%Y%m%d')
++    DATE = time.strftime(
++        "%Y%m%d",
++        time.gmtime(int(os.environ.get('SOURCE_DATE_EPOCH', time.time())))
++    )
+     try:
+         GIT_REVISION = check_output(
+             ['git', 'rev-parse', 'HEAD']
--- a/debian/patches/series     1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/series     2020-05-19 22:15:37.368528337 +0100
@@ -0,0 +1 @@
+reproducible-build.patch
_______________________________________________
Python-modules-team mailing list
Python-modules-team@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/python-modules-team

Reply via email to