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 #2092

Merged
merged 1 commit into from
Dec 5, 2024
Merged

Conversation

rhc54
Copy link
Contributor

@rhc54 rhc54 commented Dec 5, 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!

Signed-off-by: Jeff Squyres [email protected]
(cherry picked from commit b7196af)

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]>
(cherry picked from commit b7196af)
@rhc54 rhc54 merged commit 8255157 into openpmix:v3.0 Dec 5, 2024
13 checks passed
@rhc54 rhc54 deleted the cmr30/cfg branch December 5, 2024 03:01
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.

2 participants