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

mpdecimal: Fix cxx+shared, remove unnecessary automake dependency #25903

Open
wants to merge 17 commits into
base: master
Choose a base branch
from

Conversation

Ahajha
Copy link
Contributor

@Ahajha Ahajha commented Nov 10, 2024

This PR has 2 small but important fixes:

I also have two other mpdecimal PRs out: #25889 (subset of this one) #25896

@Ahajha Ahajha changed the title mpdecimal: Fix cxx+shared mpdecimal: Fix cxx+shared, simpify packaging Nov 10, 2024
@Ahajha Ahajha changed the title mpdecimal: Fix cxx+shared, simpify packaging mpdecimal: Fix cxx+shared, simplify packaging Nov 10, 2024
@jcar87
Copy link
Contributor

jcar87 commented Nov 11, 2024

I'm happy to revert any of these additional changes if it makes reviewing easier.

yes please!

@Ahajha Ahajha changed the title mpdecimal: Fix cxx+shared, simplify packaging mpdecimal: Misc fixes Nov 11, 2024
@Ahajha
Copy link
Contributor Author

Ahajha commented Nov 11, 2024

@jcar87 I removed most of the unnecessary stuff - I kept the part about removing the automake dependency. This PR is a superset of #25889, so feel free to skip that one or merge that one first.

@Ahajha Ahajha changed the title mpdecimal: Misc fixes mpdecimal: Fix cxx+shared, remove unnecessary automake dependency Nov 11, 2024
if not self.conf.get("tools.microsoft.bash:path", check_type=str):
self.tool_requires("msys2/cci.latest")
if not is_msvc(self) and self.settings_build.os == "Windows":
self.win_bash = True
Copy link
Contributor

Choose a reason for hiding this comment

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

given that our CI only covers win+msvc, I suppose this is an untested branch now.
Is this to support mingw?

Chances are that we need to detect clang and check if it it needs to fall outside of this conditional as well

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I believe I tested this branch with Mingw and it worked. I can play around with it, but regardless of if it works or not this should still be a strict improvement, because the only change is just removing the automake dependency, which definitely was not used.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm actually not very familiar with what msys2 is used for in general. Is it just whenever we need access to a unix-style shell in a Windows build? So if we're calling commands like ls, sed, etc. (things that aren't available in Windows)?

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.

[package] mpdecimal/2.5.1: Extra dependency on automake for MSVC builds
2 participants