-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scripts/build/.variables: Support SOURCE_DATE_EPOCH #2855
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? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
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)