Bug 20445 – [tools] remove build date for a reproducible build

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P3
Component
tools
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-12-12T09:42:59Z
Last change time
2020-06-05T12:20:43Z
Assigned to
No Owner
Creator
jelle
Depends on
20444

Comments

Comment #0 by jelle — 2019-12-12T09:42:59Z
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 by pro.mathias.lang — 2020-04-14T10:42:54Z
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 by pro.mathias.lang — 2020-06-05T12:20:43Z
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.