-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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_file breaks Perl code: transforms e.g. \@array to @array #7165
Comments
see also #13091 Exactly the same issue, identified in the same way, with the same proposed solution. |
The real problem here is predicting if changing the behaviour so that |
Update meson logic to only handle matched pairs of \@ when escaping variables in 'meson' and 'cmake@' style configure_file invocations. The previous approach, using a regex to handle a single \@ to escape a variable has undesirable side effects, including mangling valid perl that needs to be configured. Closes: mesonbuild#7165
Update meson logic to only handle matched pairs of \@ when escaping variables in 'meson' and 'cmake@' style configure_file invocations. The previous approach, using a regex to handle a single \@ to escape a variable has undesirable side effects, including mangling valid perl that needs to be configured. Closes: mesonbuild#7165
Update meson logic to only handle matched pairs of \@ when escaping variables in 'meson' and 'cmake@' style configure_file invocations. The previous approach, using a regex to handle a single \@ to escape a variable has undesirable side effects, including mangling valid perl that needs to be configured. Closes: mesonbuild#7165
Update meson logic to only handle matched pairs of \@ when escaping variables in 'meson' and 'cmake@' style configure_file invocations. The previous approach, using a regex to handle a single \@ to escape a variable has undesirable side effects, including mangling valid perl that needs to be configured. Closes: mesonbuild#7165
Update meson logic to only consider matched pairs of `\@` when escaping variables in 'meson' and 'cmake@' style configure_file invocations. The previous approach, escaping a single `\@`, had undesirable side effects, including mangling valid perl is being configured. Closes: mesonbuild#7165
Update meson logic to only consider matched pairs of `\@` when escaping variables in 'meson' and 'cmake@' style configure_file invocations. The previous approach, escaping a single `\@`, had undesirable side effects, including mangling valid perl is being configured. Closes: mesonbuild#7165
Update meson logic to only consider matched pairs of `\@` when escaping variables in 'meson' and 'cmake@' style configure_file invocations. The previous approach, escaping a single `\@`, had undesirable side effects, including mangling valid perl that is being configured. Closes: mesonbuild#7165
Update meson logic to only consider matched pairs of `\@` when escaping variables in 'meson' and 'cmake@' style `configure_file` invocations. The previous approach, escaping a single `\@`, had undesirable side effects, including mangling valid perl that is being configured. Closes: mesonbuild#7165
Update meson logic to only consider matched pairs of `\@` when escaping variables in 'meson' and 'cmake@' style `configure_file` invocations. The previous approach, escaping a single `\@`, had undesirable side effects, including mangling valid perl that is being configured. Closes: mesonbuild#7165
When configuring a 'meson' or 'cmake@' style file, add a case for escaped variables using matched pairs of `\@` i.e. `\@foo\@ -> @foo@`. The match for @var@ has been amended with a negative lookbehind to ensure that any occurrances of `\@foo@` are not evaluated to `\bar`. The previous behaviour, matching `\@` and escaping only that character, had undesirable side effects including mangling valid perl when configuring files. Closes: mesonbuild#7165
When configuring a 'meson' or 'cmake@' style file, add a case for escaped variables using matched pairs of `\@` i.e. `\@foo\@ -> @foo@`. The match for @var@ has been amended with a negative lookbehind to ensure that any occurrances of `\@foo@` are not evaluated to `\bar`. The previous behaviour, matching `\@` and escaping only that character, had undesirable side effects including mangling valid perl when configuring files. Closes: mesonbuild#7165
When configuring a 'meson' or 'cmake@' style file, add a case for escaped variables using matched pairs of `\@` i.e. `\@foo\@ -> @foo@`. The match for @var@ has been amended with a negative lookbehind to ensure that any occurrances of `\@foo@` are not evaluated to `\bar`. The previous behaviour, matching `\@` and escaping only that character, had undesirable side effects including mangling valid perl when configuring files. Closes: #7165
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
minimal example:
Expected behavior
Only
@abs_top_builddir@
should be replaced, and\@array
should be left unmodified.system parameters
meson --version
: 0.53.2ninja --version
: 1.10.0The text was updated successfully, but these errors were encountered: