Source: mopidy
Version: 1.0.2
Severity: normal
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: timestamps

Hi!

While working on the "reproducible builds" effort [1], we have noticed
that mopidy could not be built reproducibly.

The attached patch removes generated timestamps from the build system.
Once applied, mopidy can be built reproducibly in our current experimental
framework.

 [1]: https://wiki.debian.org/ReproducibleBuilds

-- System Information:
Debian Release: 8.0
  APT prefers testing-updates
  APT policy: (500, 'testing-updates'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Description: Make documentation build reproducible.
 Use the last changelog date in generated documentation
Author: Juan Picca <jumap...@gmail.com>
Last-Update: 2015-04-28
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/docs/Makefile
+++ b/docs/Makefile
@@ -1,8 +1,10 @@
 # Makefile for Sphinx documentation
 #
+LAST_CHANGE=$(shell dpkg-parsechangelog -S Date -l../debian/changelog)
+BUILD_DATE=$(shell LC_ALL=C date -u "+%B %d, %Y" -d "$(LAST_CHANGE)")
 
 # You can set these variables from the command line.
-SPHINXOPTS    =
+SPHINXOPTS    = -D today="$(BUILD_DATE)"
 SPHINXBUILD   = sphinx-build
 PAPER         =
 BUILDDIR      = _build

Reply via email to