Skip to content

Don't record the current date in header file comments if the SOURCE_DATE_EPOCH environment variable is set#4152

Merged
magreenblatt merged 1 commit into
chromiumembedded:masterfrom
Antiz96:reproducible_builds
Apr 15, 2026
Merged

Don't record the current date in header file comments if the SOURCE_DATE_EPOCH environment variable is set#4152
magreenblatt merged 1 commit into
chromiumembedded:masterfrom
Antiz96:reproducible_builds

Conversation

@Antiz96

@Antiz96 Antiz96 commented Apr 14, 2026

Copy link
Copy Markdown
Contributor

Recording the current date in header file comments (from the cef_api_untracked.json file generated during the build) introduces non-deterministic timestamps into build artifacts, preventing reproducible builds (see the diffoscope output).

This commit skips generating date based comments for untracked versions if the SOURCE_DATE_EPOCH environment variable is set, allowing reproducible builds in environments that expect them.

…DATE_EPOCH` environment variable is set

Recording the current date in header file comments (from the `cef_api_untracked.json` file generated during the build) introduces non-deterministic timestamps into build artifacts, preventing [reproducible builds](https://reproducible-builds.org/) (see the [diffoscope output](https://reproducible.archlinux.org/api/v0/builds/1028387/diffoscope)).

This commit skips generating date based comments for untracked versions if the [SOURCE_DATE_EPOCH environment variable](https://reproducible-builds.org/docs/source-date-epoch/) is set, allowing reproducible builds in environments that expect them.
@magreenblatt

Copy link
Copy Markdown
Collaborator

Thanks, looks good.

@magreenblatt magreenblatt merged commit 00de983 into chromiumembedded:master Apr 15, 2026
magreenblatt pushed a commit that referenced this pull request Apr 16, 2026
)

Recording the current date in header file comments (from the
`cef_api_untracked.json` file generated during the build) introduces
non-deterministic timestamps into build artifacts, preventing
[reproducible builds](https://reproducible-builds.org/) (see the
[diffoscope
output](https://reproducible.archlinux.org/api/v0/builds/1028387/diffoscope)).

This commit skips generating date based comments for untracked versions
if the [SOURCE_DATE_EPOCH environment
variable](https://reproducible-builds.org/docs/source-date-epoch/) is
set, allowing reproducible builds in environments that expect them.
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.

2 participants