Skip to content

Use timestamp from the tag for reproducible tarballs#665

Merged
avsej merged 1 commit intocouchbase:mainfrom
avsej:fix-reproducible-tarballs
Sep 26, 2024
Merged

Use timestamp from the tag for reproducible tarballs#665
avsej merged 1 commit intocouchbase:mainfrom
avsej:fix-reproducible-tarballs

Conversation

@avsej
Copy link
Copy Markdown
Member

@avsej avsej commented Sep 25, 2024

To improve stability of the tarballs, we need to make sure that that the package does not have changing parts for releases. But at the same time, it is useful to have build date recorded. This patch instructs cmake to use timestamp from the tag, if it exists (GA packages), so the checksum of the tarballs would never change even if the tarball will be produced later on different machine. Embedded certificates would still affect reproducibility, but it is unlikely that they would change frequently.

To improve stability of the tarballs, we need to make sure that that the
package does not have changing parts for releases. But at the same time,
it is useful to have build date recorded. This patch instructs cmake to
use timestamp from the tag, if it exists (GA packages), so the checksum
of the tarballs would never change even if the tarball will be produced
later on different machine. Embedded certificates would still affect
reproducibility, but it is unlikely that they would change frequently.
@avsej avsej merged commit b5d8a1a into couchbase:main Sep 26, 2024
@avsej avsej deleted the fix-reproducible-tarballs branch September 26, 2024 00:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant