Skip to content
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

configure.ac: generate prte_version.h properly #2091

Merged
merged 1 commit into from
Dec 5, 2024

Conversation

jsquyres
Copy link
Contributor

@jsquyres jsquyres commented Dec 4, 2024

Have prte_version.h generated via AC_CONFIG_HEADERS, not AC_CONFIG_FILES. This properly quotes strings (which technically doesn't matter here since prte_version.h doesn't include any strings) and also won't overwrite the resulting .h file if it hasn't changed.

NOTE: This is a fix for the original commit that brought in this functionality (4da431a) which broke in at least some Linux environments. Apparently, AC_CONFIG_HEADERS -- unlike AC_CONFIG_FILES -- does not like extra newlines at the beginning or end of the file list parameter in at least some Linux environments (although it seems to work find on macOS). Shrug!

Have prte_version.h generated via AC_CONFIG_HEADERS, not
AC_CONFIG_FILES.  This properly quotes strings (which technically
doesn't matter here since prte_version.h doesn't include any strings)
and also won't overwrite the resulting .h file if it hasn't changed.

NOTE: This is a fix for the original commit that brought in this
functionality (4da431a) which broke in at least some Linux
environments.  Apparently, AC_CONFIG_HEADERS -- unlike AC_CONFIG_FILES
-- does not like extra newlines at the beginning or end of the file
list parameter in at least some Linux environments (although it seems
to work find on macOS).  Shrug!

Signed-off-by: Jeff Squyres <[email protected]>
@jsquyres jsquyres requested review from rhc54 and hppritcha December 4, 2024 23:03
@rhc54
Copy link
Contributor

rhc54 commented Dec 4, 2024

Tested okay on Rocky 9 and on Mac

@rhc54 rhc54 merged commit b7196af into openpmix:master Dec 5, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants