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

Mkmf escape fix #11

Merged
merged 1 commit into from
Nov 8, 2023
Merged

Mkmf escape fix #11

merged 1 commit into from
Nov 8, 2023

Conversation

CodeGat
Copy link

@CodeGat CodeGat commented Nov 7, 2023

mkmf fails to generate a valid Makefile when directories have = in them because it is a reserved word.
This PR reads in the created Makefile and substitues all non-assignment = with $(EQUALS) (where EQUALS = =).

Closes #9 !

@CodeGat CodeGat self-assigned this Nov 7, 2023
@CodeGat CodeGat force-pushed the mkmf-escape-fix branch 2 times, most recently from 17077fe to a22def9 Compare November 8, 2023 04:01
@CodeGat CodeGat marked this pull request as ready for review November 8, 2023 06:57
@CodeGat
Copy link
Author

CodeGat commented Nov 8, 2023

Don't worry about the failing final check...that is a CI issue that I shall fix...

Copy link
Member

@aidanheerdegen aidanheerdegen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Just a question though. I thought you said you were going to change to just escaping the = with a backslash? Did you test this and it didn't work, or just decided not to go there?

@CodeGat
Copy link
Author

CodeGat commented Nov 8, 2023

I looked into @harshula s links in the megathread and the answers were all substituting rather than escaping, so I went with that.

@CodeGat CodeGat merged commit baaf7ed into master Nov 8, 2023
3 of 4 checks passed
@CodeGat CodeGat deleted the mkmf-escape-fix branch November 8, 2023 23:55
@harshula
Copy link

harshula commented Nov 9, 2023

Notes
https://perldoc.perl.org/perlre#Extended-Patterns
Perl also defines a consistent extension syntax for features not found in standard tools like awk and lex. The syntax for most of these is a pair of parentheses with a question mark as the first thing within the parentheses. The character after the question mark indicates the extension.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Spack build fails when using mom5@git.tag in spec
3 participants