-
Notifications
You must be signed in to change notification settings - Fork 937
v4.0.x: reproducible builds + portability fix #8147
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.0.x: reproducible builds + portability fix #8147
Conversation
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)
|
This and 4.1 needs one more patch: orte/tools/orte-info/Makefile.am
- -DOMPI_BUILD_DATE="\"`date`\"" \
+ -DOMPI_BUILD_DATE="\"`$(top_srcdir)/config/getdate.sh`\"" \ |
|
@bmwiedemann I notice on master that in one place, we have: ${USER:-`whoami`}but in other places we just have $$USERShould they all be of the form # With $ or $$, as appropriate
{USER:-`whoami`}? |
|
I'd leave it as is. I have seen good PRs with feature-creep in the past that got stalled too long. |
|
Ah, I see -- |
|
Is it safe to say we need similar changes in PMIx and PRRTE? |
|
@rhc54 I tested with our |
|
Understood - my apologies. My question was more about building PMIx and PRRTE standalone packages (i.e., when they aren't embedded in OMPI) |
|
@rhc54 It would not be a bad thing to also apply this to PMIx or PRRTE. I wouldn't say it's critical, but it's definitely in the "nice to have" category. |
4c95519 to
680f89f
Compare
|
This PR will also need the MacOS portability fixes from #8152. |
|
bot:ompi:retest |
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.0.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)
8886c89 to
8f73cb1
Compare
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.