[DRE-maint] Bug#787891: gem2deb: [PATCH] please make generation of gemspec file from metadata.yml reproducible

Juan Picca jumapico at gmail.com
Sat Jun 6 01:24:46 UTC 2015


Source: gem2deb
Version: 0.17
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timezone timestamps

Hi!

While working on the "reproducible builds" effort [1], we have noticed
that dh_ruby don't allow generate the gemspec file from the metadata.yml
file in a reproducible manner due usage of the user timezone.

The attached patch set the environment variable TZ to UTC in dh_ruby,
ignoring the timezone of the user.
Once applied, we can built about 70 packages reproducibly in our current
experimental framework.

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


-- System Information:
Debian Release: stretch/sid
  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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: set_timezone.patch
Type: text/x-diff
Size: 948 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20150605/93e3048f/attachment-0001.patch>


More information about the Pkg-ruby-extras-maintainers mailing list