[Reproducible-builds] Bug#790065: texinfo: please make the index output reproducible

Chris Lamb lamby at debian.org
Fri Jun 26 18:09:00 UTC 2015


Source: texinfo
Version: 5.9.96.dfsg.1-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: toolchain
X-Debbugs-Cc: reproducible-builds at lists.alioth.debian.org

Hi,

While working on the "reproducible builds" effort [1], we have noticed
that texinfo generates indices in a non-deterministic order.

This appears to happen because the index sort is not stable with respect
to the line number, resulting in output non-determinstically changing
from:

  * Entry   (line 1)
  * Entry   (line 2)

and 

  * Entry   (line 2)
  * Entry   (line 1)

.. when the entry is the same string.

The attached patch adds the line number to the sort comparator. Once
applied, (some) packages using texinfo can be built reproducibly in
our reproducible toolchain.

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


Regards,

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


More information about the Reproducible-builds mailing list