Repository navigation
v5: Record build OS in etc/OS.rc - #612
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
external_libraries/DetermineOS.cmakeandOS.rc.in. At configure time they record the OS ID, version and pretty name and install them asetc/OS.rc, next toSITE.rc. The existingSITE.rcformat is unchanged.DetermineOSis included fromesma.cmakeafterDetermineSite.Motivation
At NAS there are two environments, TOSS4 (RHEL 8) and TOSS5 (RHEL 9). A TOSS5 build must be submitted from TOSS5, and a TOSS4 build must not run on Turin. The OS running experiment setup is not necessarily the OS the model was built on, so GEOSgcm_App needs a record of the build OS. See GEOS-ESM/GEOSgcm_App#946. The consumer is GEOS-ESM/GEOSgcm_App#945.
Example
OS.rc:Validation
DISTRIB_ID,DISTRIB_VERSION_IDandDISTRIB_PRETTY_NAMEqueries gaverhel/8.10on TOSS4 andrhel/9.8on TOSS5. These queries need CMake 3.22 or newer.OS.rcshown above. A TOSS4 build produced the same format with8.10andRed Hat Enterprise Linux 8.10 (Ootpa).OS_NAMEandOS_RELEASEare used instead, since theDISTRIB_*queries return empty values there.OS.rcfile is added to the install; no compiled code or flags change.Caveat
This records the configure host, not necessarily the host that runs the build. Check your build workflow before relying on that assumption.
A matching PR targets
release/v4(#611).