Skip to content

Makefile.install: fix PKGFILE expression so it works with paths with spaces#5803

Open
Sid-MB wants to merge 1 commit intoOpenMathLib:developfrom
Sid-MB:develop
Open

Makefile.install: fix PKGFILE expression so it works with paths with spaces#5803
Sid-MB wants to merge 1 commit intoOpenMathLib:developfrom
Sid-MB:develop

Conversation

@Sid-MB
Copy link
Copy Markdown

@Sid-MB Sid-MB commented May 10, 2026

Previously, running the make file with a PREFIX path which included spaces would write to the wrong path, now it will write to the correct path.

Also note that the second setting of PKGFILE, at line 194 previously, was useless because that line was treated as a shell command which only assigned the variable for that line's invocation.

Note that the second setting of PKGFILE, at line 194, is redundant because that line was treated as a shell command which only assigned the variable for that line's invocation.
Copilot AI review requested due to automatic review settings May 10, 2026 21:57
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes pkg-config file generation in Makefile.install when PREFIX (and thus derived paths) contains spaces, by ensuring PKGFILE is a proper Make variable containing an unquoted path rather than a shell-quoted string.

Changes:

  • Define PKGFILE as a Make variable (:=) without embedding quotes in its value, so later uses like >"$(PKGFILE)" work correctly with spaces.
  • Remove the later, ineffective PKGFILE="..." assignment that was executed as a one-line shell assignment (and did not persist for subsequent recipe lines).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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