• Bug#1109731: piglit: please make the build reproducible

    From Chris Lamb@21:1/5 to All on Tue Jul 22 18:20:02 2025
    --fe84cc6664b245f8b7bcd75648806ce5
    Content-Type: text/plain
    Content-Transfer-Encoding: 7bit

    Source: piglit
    Version: 0.0~git20250409.af62c0dea-2
    Severity: wishlist
    Tags: patch
    User: [email protected]
    Usertags: randomness
    X-Debbugs-Cc: [email protected]

    Hi,

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

    This is because when rendering sets in an XML file, it does so via by
    calling repr() on the set object, which results in nondeterminstic
    output.

    Patch attached that renders the set as sorted whilst retaining the
    "{a, b, c}" nomenclature.

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


    Regards,

    --
    ,''`.
    : :' : Chris Lamb
    `. `'` [email protected] / chris-lamb.co.uk
    `-

    --fe84cc6664b245f8b7bcd75648806ce5
    Content-Disposition: attachment; filename="piglit.diff.txt"
    Content-Type: text/plain; name="piglit.diff.txt"
    Content-Transfer-Encoding: base64

    ZGlmZiAtLWdpdCB0ZXN0cy9zZXJpYWxpemVyLnB5IHRlc3RzL3NlcmlhbGl6ZXIucHkKaW5k ZXggNWVlOWExNS4uZTJjNDhlMSAxMDA2NDQKLS0tIHRlc3RzL3NlcmlhbGl6ZXIucHkKKysr IHRlc3RzL3NlcmlhbGl6ZXIucHkKQEAgLTY3LDYgKzY3LDggQEAgZGVmIF9zZXJpYWxpemVf c2tpcHModGVzdCwgZWxlbSk6CiAgICAgICAgIGlmIG5vdCB2YWx1ZToKICAgICAgICAgICAg IHZhbHVlID0gZ2V0YXR0cih0ZXN0LCBmLCBOb25lKQogICAgICAgICBpZiB2YWx1ZToKKyAg ICAgICAgICAgIGlmIGlzaW5zdGFuY2UodmFsdWUsIHNldCk6CisgICAgICAgICAgICAgICAg dmFsdWUgPSAieyIgKyByZXByKHNvcnRlZCh2YWx1ZSkpWzE6LTFdICsgIn0iCiAgICAgICAg ICAgICBldC5TdWJFbGVtZW50KGVsZW0sICdvcHRpb24nLCBuYW1lPWYsIHZhbHVlPXJlcHIo dmFsdWUpKQogCiAK

    --fe84cc6664b245f8b7bcd75648806ce5--

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