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

Do not turn consecutive spaces in pg_config output into empty cc/ld arguments #348

Merged
merged 1 commit into from
Mar 31, 2021

Conversation

jcflack
Copy link
Contributor

@jcflack jcflack commented Mar 29, 2021

The change in f8e475b was a hasty measure on discovering that the single quotes in a quoted argument reported by pg_config may appear within the argument rather than only surrounding it. It solved that problem, but can be fooled into empty arguments where multiple spaces separate arguments in the pg_config output (issue #347).

Revert to the regex-based approach from before f8e475b and just tweak that.

This implementation openly makes no allowance for an argument having a single quote in its content. PostgreSQL's own build process failed in a simple attempt to create such a case, so supporting it here is probably not necessary for now.

The change in f8e475b was a hasty measure on discovering that
the single quotes in a quoted argument reported by pg_config
may appear within the argument rather than only surrounding it.
It solved that problem, but can be fooled into empty arguments
where multiple spaces separate arguments in the pg_config output
(issue #347).

Revert to the regex-based approach from before f8e475b and just
tweak that.

This implementation openly does not handle the case of an argument
containing a single quote as content. PostgreSQL's own build process
failed in a simple test of such a case, so supporting it here is
probably not necessary for now.
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.

1 participant