• Bug#1067485: python-pysaml2: please make the build reproducible

    From Chris Lamb@21:1/5 to All on Fri Mar 22 11:30:01 2024
    --d8a68b9d89d04d0aa5de17ff54dd714d
    Content-Type: text/plain

    Source: python-pysaml2
    Version: 7.4.2-3
    Severity: wishlist
    Tags: patch
    User: reproducible-builds@lists.alioth.debian.org
    Usertags: randomness
    X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org

    Hi,

    Whilst working on the Reproducible Builds effort [0], we noticed that python-pysaml2 could not be built reproducibly.

    This is because the tests generate a (nondeterministic) file called
    eptid.db that is then shipped in the binary package. Incidentally, the
    file is installed directly to the global
    /usr/lib/python3/dist-packages directory, which is a likely a bug in
    itself. (Hm, isn't there a Lintian warning for this?)

    Anyway, patch attached that removes this file after running the tests.

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


    Regards,

    --
    ,''`.
    : :' : Chris Lamb
    `. `'` lamby@debian.org / chris-lamb.co.uk
    `-

    --d8a68b9d89d04d0aa5de17ff54dd714d
    Content-Disposition: attachment; filename="python-pysaml2.diff.txt" Content-Type: text/plain; name="python-pysaml2.diff.txt" Content-Transfer-Encoding: BASE64

    LS0tIGEvZGViaWFuL3J1bGVzCTIwMjQtMDMtMjIgMDk6MzE6NDIuNDc3OTg1Njg1ICswMDAw Ci0tLSBiL2RlYmlhbi9ydWxlcwkyMDI0LTAzLTIyIDA5OjU5OjM1LjEyMjMyMTA5MSArMDAw MApAQCAtMjEsNiArMjEsOSBAQAogCWZvciBpIGluICQkKGZpbmQgLiAtdHlwZSBkIC1pbmFt ZSBfX3B5Y2FjaGVfXykgOyBkbyBybSAtcmYgJCRpIDsgZG9uZQogCWRoX2F1dG9fY2xlYW4K IAorZXhlY3V0ZV9hZnRlcl9kaF9hdXRvX3Rlc3Q6CisJZmluZCAucHlidWlsZCAtdHlwZSBm IC1uYW1lIGVwdGlkLmRiIC1kZWxldGUKKwogI292ZXJyaWRlX2RoX2luc3RhbGw6CiAjCWRo X2luc3RhbGwKICMJc2V0IC1lIDsgc2V0IC14IDsgZm9yIGkgaW4gYGxzICQoQ1VSRElSKS9k ZWJpYW4vcHl0aG9uMy1weXNhbWwyL3Vzci9iaW4vKi5weWAgOyBkbyBcCg==

    --d8a68b9d89d04d0aa5de17ff54dd714d--

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)