Issue 20445 - [tools] remove build date for a reproducible build
Summary: [tools] remove build date for a reproducible build
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: tools (show other issues)
Version: D2
Hardware: All All
: P3 enhancement
Assignee: No Owner
URL: http://dlang.org/
Keywords:
Depends on: 20444
Blocks:
  Show dependency treegraph
 
Reported: 2019-12-12 09:42 UTC by jelle
Modified: 2020-06-05 12:20 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description jelle 2019-12-12 09:42:59 UTC
Due to the use of __DATE__ in dustmite.d dtools cannot be made reproducible since the d compiler does not support SOURCE_DATE_EPOCH for which i made a bug for the D compiler. Removing __DATE__ from dustmite.d would be the easiest way to make dtools reproducible.

https://tests.reproducible-builds.org/archlinux/community/dtools/dtools-2.089.0-1-x86_64.pkg.tar.xz.html
https://reproducible-builds.org/docs/source-date-epoch/
https://github.com/dlang/tools/blob/9dce344e2e0b5a07b7999fc33fa904e0fca4ed6e/DustMite/dustmite.d#L149
https://issues.dlang.org/show_bug.cgi?id=20444
Comment 1 Mathias LANG 2020-04-14 10:42:54 UTC
Raised a PR for 20444, this can be fixed once dtools are compiled with a compiler that supports it (tentatively 2.092.0).
Comment 2 Mathias LANG 2020-06-05 12:20:43 UTC
Since __DATE__ now recognize SOURCE_DATE_EPOCH I believe this can be closed. This bug was mostly for packagers, who have control over which compilers are used for building, and LDC / DMD 2.092 have been released.