FS#70303 - [zssh] Package is unreproducible due to embedded timestamp
Attached to Project:
Community Packages
Opened by Z. Ren (zren) - Monday, 05 April 2021, 15:48 GMT
Last edited by Toolybird (Toolybird) - Tuesday, 09 May 2023, 04:21 GMT
Opened by Z. Ren (zren) - Monday, 05 April 2021, 15:48 GMT
Last edited by Toolybird (Toolybird) - Tuesday, 09 May 2023, 04:21 GMT
|
Details
Hi!
While conducting a research in the spirit of the "reproducible builds" [1], we have noticed that the package zssh could not be built reproducibly, in that the output of the `date` command is captured and embedded. According to the documentation [2], if we replace `date` with `date --date=@$SOURCE_DATE_EPOCH`, and setting the environment variable $SOURCE_DATE_EPOCH (e.g., from .BUILDINFO as in the tool repro[2]) for reproducibility validation, the unreproducible issue will be resolved. The attached patch does exactly this. Once applied, the package can be built reproducibly. Alternatively, for this package, simply removing `date` also works. Additional info: * zssh 1.5c-12 Steps to reproduce: The unreproducible build result could be detected with reprotest/repro [2]. [1]: https://wiki.debian.org/ReproducibleBuilds [2]: https://wiki.archlinux.org/index.php/DeveloperWiki:ReproducibleBuilds Best wishes |
This task depends upon
Closed by Toolybird (Toolybird)
Tuesday, 09 May 2023, 04:21 GMT
Reason for closing: Fixed
Additional comments about closing: zssh 1.5c-13
Tuesday, 09 May 2023, 04:21 GMT
Reason for closing: Fixed
Additional comments about closing: zssh 1.5c-13
[1] https://tests.reproducible-builds.org/archlinux/archlinux.html