-
Notifications
You must be signed in to change notification settings - Fork 937
v4.1.x: reproducible builds + portability fix #8148
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
v4.1.x: reproducible builds + portability fix #8148
Conversation
bmwiedemann
left a comment
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.
needs one more patch:
orte/tools/orte-info/Makefile.am
- -DOMPI_BUILD_DATE="\"`date`\"" \
+ -DOMPI_BUILD_DATE="\"`$(top_srcdir)/config/getdate.sh`\"" \819f634 to
bf70a29
Compare
|
This PR will also need the MacOS portability fixes from #8152. |
Ported from open-mpi/ompi#8148 and open-mpi/ompi#8152 Signed-off-by: Ralph Castain <[email protected]>
|
bot:ompi:retest |
This code was invoked twice. Leave it solely in OPAL_CONFIGURE_SETUP, which is invoked before OPAL_BASIC_SETUP. Signed-off-by: Jeff Squyres <[email protected]> (cherry picked from commit 7c36b45)
If defined, use SOURCE_DATE_EPOCH environment variable; make the build Reproducible by forcing timestamps. See https://reproducible-builds.org/docs/source-date-epoch/ for more information. Thanks Bernhard M. Wiedemann for bringing this to our attention. Fixes open-mpi#3759 **NOTE:** This was cherry-picked from master, and slightly modified / amended for the v4.1.x branch. Signed-off-by: Gilles Gouaillardet <[email protected]> Signed-off-by: Bernhard M. Wiedemann <[email protected]> Signed-off-by: Jeff Squyres <[email protected]> (cherry picked from commit 7b4e8ba)
MacOS does not have "readlink -f" or "realpath", so use the MacOS-provided Python, which we know has os.path.realpath(). Signed-off-by: Jeff Squyres <[email protected]> (cherry picked from commit ddf216b)
There are several different flavors of date(1) out there. Try a few different CLI options for date(1) to see which one works. Signed-off-by: Jeff Squyres <[email protected]> (cherry picked from commit 89920ba)
9070ca8 to
e7f829b
Compare
Ported from open-mpi/ompi#8148 and open-mpi/ompi#8152 Signed-off-by: Ralph Castain <[email protected]>
|
@bmwiedemann If the v4.0.x and v4.1.x PRs now test properly for you, I'll merge them. |
|
I successfully tested the 4.0.x one, and the code 4.1.x code looks similar enough for me to have a good confidence in it. |
Cherry pick of #8136 and #8152 from master regarding reproducible builds. Thanks to @bmwiedemann for bringing this back to our attention.
Also bring in a MacOS/
readlinkportability fix.