00694cc96e
- Add reproducible.patch to override build date to make build more reproducible - sort list of plugins OBS-URL: https://build.opensuse.org/request/show/505991 OBS-URL: https://build.opensuse.org/package/show/server:http/uwsgi?expand=0&rev=56
27 lines
1004 B
Diff
27 lines
1004 B
Diff
commit a1099983f520395a65ba16a69647f7d8ad8b942d
|
|
Author: Bernhard M. Wiedemann <bwiedemann@suse.de>
|
|
Date: Sat Jun 24 08:46:51 2017 +0200
|
|
|
|
Allow to override build date
|
|
|
|
to allow for reproducible builds of uwsgi
|
|
|
|
See https://reproducible-builds.org/ for why this is good
|
|
and https://reproducible-builds.org/specs/source-date-epoch/
|
|
for the definition of this variable.
|
|
|
|
Index: uwsgi-2.0.14/uwsgiconfig.py
|
|
===================================================================
|
|
--- uwsgi-2.0.14.orig/uwsgiconfig.py
|
|
+++ uwsgi-2.0.14/uwsgiconfig.py
|
|
@@ -387,7 +387,8 @@ def build_uwsgi(uc, print_only=False, gc
|
|
gcc_list.append(item)
|
|
|
|
cflags.append('-DUWSGI_CFLAGS=\\"%s\\"' % uwsgi_cflags)
|
|
- cflags.append('-DUWSGI_BUILD_DATE="\\"%s\\""' % time.strftime("%d %B %Y %H:%M:%S"))
|
|
+ build_date = int(os.environ.get('SOURCE_DATE_EPOCH', time.time()))
|
|
+ cflags.append('-DUWSGI_BUILD_DATE="\\"%s\\""' % time.strftime("%d %B %Y %H:%M:%S", time.gmtime(build_date)))
|
|
|
|
post_build = []
|
|
|