Skip to content

Commit

Permalink
Merge pull request #6002 from kit-ty-kate/pkg-config-msys2
Browse files Browse the repository at this point in the history
Do not special case the rewriting rule for the PKG_CONFIG_PATH environment variable
  • Loading branch information
kit-ty-kate authored Jun 7, 2024
2 parents cab5c2e + 5269250 commit 93737bf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/pages/Manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ The `<path-format>` defines the way to handle variables path formatting:
any entries which include the separator character.

If a variable is not mentioned in `x-env-path-rewrite`, the separator is assumed to be `;` on Windows and `:` on all other systems; no slash or quoting transformations are performed. There are two special default cases:
* `PKG_CONFIG_PATH` uses `:` separator and is `target-quoted`
* `MANPATH` uses `:` separator and is `host`
* `PATH` on Windows uses `;` separator and is `target-quoted`

For example, on Windows:
Expand Down
1 change: 1 addition & 0 deletions master_changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ users)
* [BUG] Fix incorrect reverting of `=+` and `=:` [#5935 @dra27 - fix #5926]
* For the `Cygwin` internal operator, don't allow `make.exe` to become shadowed [#5996 @dra27]
* [BUG] Fix incorrect quoting rule for `PKG_CONFIG_PATH` [#5972 @dra27 - partial fix for #5923]
* [BUG] Do not special case the rewriting rule for the PKG_CONFIG_PATH environment variable [#6002 @kit-ty-kate - fix #5923]

## Opamfile

Expand Down
2 changes: 1 addition & 1 deletion src/state/opamEnv.ml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ let default_sep_fmt_str var =
match String.uppercase_ascii var with
| "PATH" when Sys.win32 ->
SSemiColon, Target_quoted
| "PKG_CONFIG_PATH" | "MANPATH" ->
| "MANPATH" ->
SColon, Host
| _ -> default_separator, default_format

Expand Down

0 comments on commit 93737bf

Please # to comment.