FS#70224 - [translate-toolkit] Package is unreproducible due to .pyc shipped in the package
Attached to Project:
Community Packages
Opened by Z. Ren (zren) - Tuesday, 30 March 2021, 07:08 GMT
Last edited by Jaroslav Lichtblau (Dragonlord) - Monday, 06 June 2022, 15:12 GMT
Opened by Z. Ren (zren) - Tuesday, 30 March 2021, 07:08 GMT
Last edited by Jaroslav Lichtblau (Dragonlord) - Monday, 06 June 2022, 15:12 GMT
|
Details
Hi!
While conducting a research in the spirit of the "reproducible builds" [1], we have noticed that the package translate-toolkit could not be built reproducibly, in that the python interpreter introduces non-determinism when generating the bytecode (.pyc file, see the attached diff.json). According to the documentation [2], invoking "export PYTHONHASHSEED=0" before the bytecode compiling will solve this issue. The attached patch does exactly this. Once applied, the package can be built reproducibly. Additional info: * translate-toolkit 3.3.3-1 Steps to reproduce: The unreproducible build result could be detected with reprotest [2]. [1]: https://wiki.debian.org/ReproducibleBuilds [2]: https://wiki.archlinux.org/index.php/Python_package_guidelines#Reproducible_bytecode [3]: https://wiki.archlinux.org/index.php/DeveloperWiki:ReproducibleBuilds Best wishes |
This task depends upon
Closed by Jaroslav Lichtblau (Dragonlord)
Monday, 06 June 2022, 15:12 GMT
Reason for closing: Implemented
Additional comments about closing: Implemented
Monday, 06 June 2022, 15:12 GMT
Reason for closing: Implemented
Additional comments about closing: Implemented
seems like the reproducible status is still reported as "bad"