Opened 6 years ago

Closed 6 years ago

#4148 closed enhancement (fixed)

Reproducible build date in generated SQL files

Reported by: myon Owned by: Algunenano
Priority: medium Milestone: PostGIS 2.5.0
Component: postgis Version: master
Keywords: Cc: sebastic

Description

Next to BUILD_DATE in configure.ac (#4147), another source of build variation are the "Generated on" dates in the generated .sql files. The attached patch makes the scripts honor SOURCE_DATE_EPOCH when set in the build environment, and always uses UTC as timestamp (which configure.ac was already doing).

As these are mere comments in the generated files, another way to suppress the build variation would be to simply drop the timestamps. These carry next to no extra information to the BUILD_DATE information already contained in the very same files.

Current status of reproducible builds for PostGIS in Debian: https://tests.reproducible-builds.org/debian/rb-pkg/experimental/amd64/diffoscope-results/postgis.html

Attachments (1)

reproducible-sql (772 bytes ) - added by myon 6 years ago.

Download all attachments as: .zip

Change History (4)

by myon, 6 years ago

Attachment: reproducible-sql added

comment:1 by Algunenano, 6 years ago

Owner: changed from pramsey to Algunenano

comment:2 by sebastic, 6 years ago

Cc: sebastic added

comment:3 by algunenano, 6 years ago

Resolution: fixed
Status: newclosed

In 16693:

Enable deterministic builds

Honor SOURCE_DATE_EPOCH variable if present to enable reproducible builds

Patch by Christoph Berg <myon -at- debian.org>

Closes #4147
Closes #4148

Note: See TracTickets for help on using tickets.