-
Notifications
You must be signed in to change notification settings - Fork 7.6k
[vcpkg] Fix '/' incorrectly replaced by '-' on Linux. #24098
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
Merged
BillyONeal
merged 16 commits into
microsoft:master
from
Nemirtingas:fix_slash_replaced_by_dash
May 7, 2022
Merged
Changes from 2 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
70ed91f
Fix '/' incorrectly replaced by '-' on Linux.
99be9d7
Update baseline.
1b5a3cc
Use MATCHES instead of STREQUAL.
5554cf5
Update version hash.
0a11a6f
Add comment for future modifications.
7fb9d88
Update version hash.
7f5fdfd
Merge branch 'master' into fix_slash_replaced_by_dash
dc183ed
Update version-date.
fa5ab3b
Update baseline.
f734307
Update ports/vcpkg-cmake/cmake_get_vars/CMakeLists.txt
Nemirtingas 9a7d735
Merge remote-tracking branch 'vcpkg/master' into fix_slash_replaced_b…
eccf03b
Update version.
ad50003
Run vcpkg format-manifest ports/vcpkg-cmake/vcpkg.json
e3a5da3
Run vcpkg x-add-version vcpkg-cmake
50dbba7
Merge remote-tracking branch 'origin/master' into HEAD
BillyONeal ef84d24
Merge remote-tracking branch 'origin/master' into HEAD
BillyONeal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| { | ||
| "name": "vcpkg-cmake", | ||
| "version-date": "2022-04-07", | ||
| "version-date": "2022-04-12", | ||
| "license": "MIT" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ras0219-msft I would be curious about the actual cases which motivated this line. Bash shouldn't treat paths different from other arguments, exept that it may do expansion of
*or~. (In a bash world, you would resolve this with single quotes.)But MSYS2 has special treatment for converting Unix paths to Windows paths in command line arguments and environment variables. This could probably be resolved by setting enviroment variables to declare the known flags.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Means libtool and other stuff run via configure. Just try to remove it and see the
vcpkg_configure_makeworld burn ;)See #12936. Especially 65e71b1 (I aborted the CI run since I already saw it failing) vs 723b9d7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Means MSYS2 runtime, not bash.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Illustration
I see that the
MSYS2_ARG_CONV_EXCLdoesn't scale to all combinations of tools and parameters, even if scoped via wrappers.But sometimes it is necessary to understand that the transformation is not in
bashitself (cf. bash -> echo) but a MSYS2 service at the border between MSYS2 runtime (bash) and windows runtime (findstr).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
libtool is just a bash script. But I really don't care about the details anymore. vcpkg should just build the msys stuff all by itself and no longer have to deal with MSYS2 since it has often enough shown to be instable by removing downloadable stuff.