[Python-apps-team] Bug#964440: flit: please make the build reproducible

Chris Lamb lamby at debian.org
Tue Jul 7 11:15:44 BST 2020


Source: flit
Version: 2.3.0-3
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0] we noticed that
flit could not be built reproducibly.

This is because it:

  a) It embeds a RECORD file that contains non-deterministic filename
  contents. 99% sure this is being generated by build.py.

  b) The manpage is being generated incorrectly, and actually is a
  manual page depicting an error message:

    .TH TRACEBACK "1" "July 2020" "Traceback (most recent call last):" "User Commands"
    .SH NAME
    Traceback \- manual page for Traceback (most recent call last):
    .SH DESCRIPTION
    .SS "Traceback (most recent call last):"
    .IP
    File "debian/flit/usr/bin/flit", line 2, in <module>
    .IP
    from flit import main
    .PP
    ModuleNotFoundError: No module named 'flit'
    .IP
    File "debian/flit/usr/bin/flit", line 2, in <module>

Patch attached. For a), we simply delete this file and for b) we fix
the generation by setting the right/full PYTHONPATH.

 [0] https://reproducible-builds.org/


Regards,

--
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: flit.diff.txt
URL: <http://alioth-lists.debian.net/pipermail/python-apps-team/attachments/20200707/f96dcf6a/attachment.txt>


More information about the Python-apps-team mailing list