scripts/build/.variables: Support SOURCE_DATE_EPOCH#2855
scripts/build/.variables: Support SOURCE_DATE_EPOCH#2855cpuguy83 merged 1 commit intodocker:masterfrom
Conversation
Repeated builds of docker is currently unreproducible as the embedded time does not support SOURCE_DATE_EPOCH. This patch ensures we check for the defined variable before utilizing current date. This has been fixed previously with manpages as well docker@2d7091a Signed-off-by: Morten Linderud <morten@linderud.pw>
|
Regarding the format of the date, the docker engine does that: While docker-ce-packaging does that: So I'd suggest going for |
Unless you have backward compatibility concerns regarding the format of this date? |
|
Whats the holdup on this change? |
|
@cpuguy83 ping :)? It's a long wait for a fairly simple change in my eyes. |
|
Maybe @tianon can give it a 2nd review. |
|
Looks like this broke ./scripts/build/binary
date: illegal option -- -
usage: date [-jnRu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ...
[-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
make: *** [binary] Error 1 |
|
Interesting. Looking at the man page, they have a COMPLETELY different date command in macOS. Seems like macOS needs to use
|
|
Yes, I recall some hacks in other repositories to try to get it to work both on Linux and Mac. I need to dig up how it was handled there |
Repeated builds of docker is currently unreproducible as the embedded
time does not support SOURCE_DATE_EPOCH. This patch ensures we check for
the defined variable before utilizing current date.
This has been fixed previously with manpages as well
2d7091a
Signed-off-by: Morten Linderud morten@linderud.pw
- How to verify it
- Description for the changelog
Support reproducible builds by checking SOURCE_DATE_EPOCH before build.
- A picture of a cute animal (not mandatory but encouraged)
