FS#69123 - [groff][man-db] Reproducible build fails in some timezones

Attached to Project: Arch Linux
Opened by Fergus Dall (sidereal) - Sunday, 27 December 2020, 06:34 GMT
Last edited by Andreas Radke (AndyRTR) - Thursday, 24 June 2021, 05:11 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Tobias Powalowski (tpowa)
Andreas Radke (AndyRTR)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: Building the man-db package involves running groff to generate the man-db manual, which contains the current date. Groff attempts to respect the SOURCE_DATE_EPOCH env variable to enable reproducible builds, but it still checks the real timezone to convert the Unix timestamp into a date. If the timezone is different from the timezone the package was originally built in, this can output a different date, resulting in differences in the built package.

Steps to reproduce:
1) Install package "archlinux-repro" via pacman
2) Download man-db-2.9.3-1-x86_64.pkg.tar.zst from an archive or mirror
3) Set local timezone to UTC+5 or higher e.g. by doing "timedatectl set-timezone Australia/Sydney"
4) Run "repro /path/to/downloaded/man-db-2.9.3-1-x86_64.pkg.tar.zst"
5) (Optional) Run "diffoscope ./build/man-db-2.9.3-1-x86_64.pkg.tar.zst /path/to/downloaded/man-db-2.9.3-1-x86_64.pkg.tar.zst" to see differences
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Thursday, 24 June 2021, 05:11 GMT
Reason for closing:  Fixed
Comment by Andreas Radke (AndyRTR) - Monday, 21 June 2021, 19:50 GMT
Please try groff-1.22.4-6 from testing repo.

Loading...