[Reproducible-builds] GSoC 2015 Week 5: Move forward reproducible builds
dhole at openmailbox.org
Sun Jun 28 21:32:25 UTC 2015
This week I have continued working on some issues related to packages
using C timestamp macros. I have sent one patch:
I have also written a patch for apache2 but it's on hold:
The reason I haven't submitted it is because of a discussion in irc.
Currently there are 490 packages affected by timestamps from C macro.
Patching them all one by one is a tedious and slow task, so we discussed
on irc possible solutions.
In the reproducible builds project there has been an idea for
standardizing toolchain packages that deal with timestamps. The idea is
to export a variable called SOURCE_DATE_EPOCH with the latests
debian/changelog entry in Unix time. This variable can be seen by any
package to modify its behavior: instead of embedding the current
time/date, embed the exported date/time. A patch with this solution has
already been written and accepted in help2man. There are many candidate
packages that could benefit from this patch (for instances,
documentation generation tools).
So we talked about the idea of implementing this solution in GCC, so
that when the variable SOURCE_DATE_EPOCH, the macros __DATE__, __TIME__
and __TIMESTAMP__ use the exported timestamp rather than local
I have started working on such patch.
I have also worked on a package with the issue of timestamps in gzip
And on packages that create or modify png files and embed a timestamp in
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=789965 (depends on
fix in xutils-dev)
One of the previous packages embedded timestamps in gzip headers because
it was using a tool that defined such behavior, I patched the tool as well:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=789964 (fixes xtel)
Finally, I have added some information in the reproducible builds wiki
regarding the issue timestamps_from_cpp_macros and a possible solution
that doesn't remove the timestamps macros:
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 836 bytes
Desc: OpenPGP digital signature
More information about the Reproducible-builds