Closed bmwiedemann closed 6 months ago
Hi,
Besides the timestamp in source comments, c3p0 builds also include a build timestamp (emitted in the logs on pool init at INFO). Will that also give you trouble? All the timestamps have issues, they are just intended as informal notations of about when a version was built, they're not exact since e.g. generated source files won't rebuild if the final build happens some time after their generation. Still, there is some (for humans) informational value there. They are very close to accurate for clean builds.
Would it be sufficient for you if the build supported a SOURCE_DATE_EPOCH
environment variable that overrides the system clock so that your rebuilds could be deterministic?
While working on reproducible builds for openSUSE, I found that our
c3p0
package varied between builds.Among others, there was
It obviously suffers from ordering issues and a timestamp that does not consider
SOURCE_DATE_EPOCH
.Can you help make it deterministic?