Your message dated Thu, 9 Mar 2017 08:00:29 +1100
with message-id <[email protected]>
and subject line Re: Bug#828145: mkdocs: please make the output reproducible
has caused the Debian Bug report #828145,
regarding mkdocs: please make the output reproducible
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
828145: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=828145
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: mkdocs
Version: 0.15.3-3
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: toolchain
X-Debbugs-Cc: [email protected]
Hi,
Whilst working on the "reproducible builds" effort [0], we noticed that mkdocs
generates output with non-reproducible contents due to the timestamps.
Patch attached.
[0] https://wiki.debian.org/ReproducibleBuilds
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
diff --git a/mkdocs/commands/build.py b/mkdocs/commands/build.py
index 614173d..6dc1015 100644
--- a/mkdocs/commands/build.py
+++ b/mkdocs/commands/build.py
@@ -55,6 +55,11 @@ def get_global_context(nav, config):
extra_css = utils.create_media_urls(nav, config['extra_css'])
+ try:
+ build_date_utc =
datetime.utcfromtimestamp(int(os.environ['SOURCE_DATE_EPOCH']))
+ except (KeyError, ValueError):
+ build_date_utc = datetime.utcnow()
+
return {
'site_name': site_name,
'site_author': config['site_author'],
@@ -83,7 +88,7 @@ def get_global_context(nav, config):
'google_analytics': config['google_analytics'],
'mkdocs_version': mkdocs.__version__,
- 'build_date_utc': datetime.utcnow(),
+ 'build_date_utc': build_date_utc,
'config': config
}
--- End Message ---
--- Begin Message ---
Version: 0.15.3-5
On Sat, Jun 25, 2016 at 12:24:51PM +0100, Chris Lamb wrote:
> Whilst working on the "reproducible builds" effort [0], we noticed
> that mkdocs generates output with non-reproducible contents due to the
> timestamps.
The patch looks the same patch I used to resolve #831648, which is
already merged with #824266.
Too many bug reports for the same problem from the same source
package... It gets confusing. Hence I missed closing this report.
Will try to merge this with #831648.
--
Brian May <[email protected]>
--- End Message ---
_______________________________________________
Python-modules-team mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team