[Reproducible-builds] Bug#795484: ruby-rmagick: please make the build reproducible

Chris Lamb lamby at debian.org
Fri Aug 14 13:44:22 UTC 2015

Source: ruby-rmagick
Version: 2.13.2-4
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: randomness timestamps
X-Debbugs-Cc: reproducible-builds at lists.alioth.debian.org


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

This is due to:

 - Inherent randomness in some of the documentation images. For example,
   using fractals and/or random noise.

 - Examples using timestamps as image captions.

In order to fix the former, I needed to expose ImageMagick's
SeedPseudoRandomGenerator method via the RMagick interface itself and
then ensure it is called in the right documentation fragments. To fix
the later, I simply hardcoded the image captions.

Patch attached. Once applied, ruby-rmagick can be built reproducibly
in our reproducible toolchain.

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


     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ruby-rmagick.diff.txt
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20150814/b99fde86/attachment.txt>

More information about the Reproducible-builds mailing list