Bug#1017073: python-suntime: reproducible builds: Timestamps recorded for all packaged files

Vagrant Cascadian vagrant at reproducible-builds.org
Sat Aug 13 03:43:51 BST 2022


Source: python-suntime
Severity: normal
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps locales
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

All the timestamps in python-suntime vary based on the build time:

  https://tests.reproducible-builds.org/debian/rb-pkg/bookworm/amd64/diffoscope-results/python-suntime.html

  1 	-rw-r--r--···0········0········0········4·2023-08-24·15:33:27.000000·debian-binary	1 	-rw-r--r--···0········0········0········4·2022-07-22·09:11:52.000000·debian-binary
  2 	-rw-r--r--···0········0········0·····1212·2023-08-24·15:33:27.000000·control.tar.xz	2 	-rw-r--r--···0········0········0·····1212·2022-07-22·09:11:52.000000·control.tar.xz
  3 	-rw-r--r--···0········0········0·····4196·2023-08-24·15:33:27.000000·data.tar.xz	3 	-rw-r--r--···0········0········0·····4200·2022-07-22·09:11:52.000000·data.tar.xz

This *should* be handled by dpkg, but for some reason it does not. At
first, I thought it might be the incorrectly formatted line in
debian/changelog:

-  Sandro Tosi <morph at debian.org>  Mon, 20 Jun 2022 23:02:36 -0400
+ -- Sandro Tosi <morph at debian.org>  Mon, 20 Jun 2022 23:02:36 -0400

But that doesn't seem to be the case; SOURCE_DATE_EPOCH is set at all
stages during the build, and fixing this doesn't change the results.

I'm not sure why... but forcing a consistant locale appears to
fix/workaround the issue. Patch attached which sets LC_ALL and LANG to
C.UTF-8 in debian/rules, does not trigger the issue.


With this patch applied, python-suntime should build reproducibly on
tests.reproducible-builds.org!


Thanks for maintaining python-suntime!


live well,
  vagrant
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-debian-rules-Set-LC_ALL-and-LANG-to-ensure-reproduci.patch
Type: text/x-diff
Size: 644 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-bugs/attachments/20220812/6b01047c/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-bugs/attachments/20220812/6b01047c/attachment.sig>


More information about the Reproducible-bugs mailing list