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

Fix msys ORIGINAL_PATH confusion #16269

Merged
merged 2 commits into from
Jun 2, 2024

Conversation

paulharris
Copy link
Contributor

@paulharris paulharris commented May 16, 2024

Changelog: Omit
Docs: Omit

Ensure ORIGINAL_PATH is unset,
so msys's /etc/profile will use the previous PATH as the future PATH.

Refer to #16268

Ensure ORIGINAL_PATH is unset,
so msys's /etc/profile will use the previous PATH as the future PATH.
@memsharded
Copy link
Member

Hi @paulharris

Could you please have a look to the suggestion in #16268 (comment)?

@paulharris
Copy link
Contributor Author

paulharris commented May 30, 2024 via email

@memsharded
Copy link
Member

Sounds good, keep me posted @paulharris we plan to branch Conan 2.4 on Monday

@paulharris
Copy link
Contributor Author

Your suggested alternative patch works for me.
Please feel free to close this PR once it has been replaced,
and I'll leave the issue open and re-confirm with the 2.4.x release.

@memsharded
Copy link
Member

Your suggested alternative patch works for me.
Please feel free to close this PR once it has been replaced,

If you want to update your PR with the change, I think it is fair to get yours merged, you did most of the research, I only suggested as small location change of the place to clean the env-var.

@paulharris paulharris force-pushed the fix-msys-original_path branch 3 times, most recently from 0b36e4c to 4c87725 Compare June 2, 2024 00:38
msys's /etc/profile checks and uses ORIGINAL_PATH as its PATH, instead
of the PATH in the environment.
We want to avoid this, and use the PATH that conan has prepared.

The design is so any msys shell started within an existing msys shell
will start with the original environment the first msys started with.

This applies when the user runs conan from within a msys terminal,
and builds a package that uses an embedded msys environment
(eg AutoTools-based packages).
@paulharris
Copy link
Contributor Author

There you go, sorry for force-pushes, weekend-brain.

@memsharded memsharded self-assigned this Jun 2, 2024
@memsharded memsharded merged commit 1ca6d44 into conan-io:develop2 Jun 2, 2024
2 checks passed
@memsharded
Copy link
Member

Thanks for your contribution!

@paulharris paulharris deleted the fix-msys-original_path branch June 2, 2024 14:34
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.

None yet

2 participants