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: Add version 4.0.0 #25896

Merged
merged 9 commits into from
Nov 21, 2024
Merged

Conversation

Ahajha
Copy link
Contributor

@Ahajha Ahajha commented Nov 9, 2024

CPython 3.13 uses this version.

One of the patches related to mingw I believe is no longer necessary:

  • configure.ac now has explicit checks for mingw
  • The patch no longer cleanly applies, the code has significantly diverged

Also, autoreconf is never called, so these patches are useless anyways. I'll remove them in a future cleanup PR. I've tested locally with Mingw.

I also have two other mpdecimal PRs out: #25889 #25903

And one more after all 3 have been merged: #25918

@Ahajha Ahajha force-pushed the ahajha/mpdecimal-4.0.0 branch from 741f3b0 to 1e6dfb3 Compare November 9, 2024 18:48
@Ahajha Ahajha force-pushed the ahajha/mpdecimal-4.0.0 branch from 1e6dfb3 to 9c9bb38 Compare November 9, 2024 19:01
@Ahajha Ahajha changed the title mpdecimal: Add version 4.0.0 mpdecimal: Add version 4.0.0, fix mac cross-builds Nov 9, 2024
Comment on lines 207 to +209
copy(self, "mpdecimal.h", src=mpdecdir, dst=pkg_dir / "include")
if self.options.cxx:
copy(self, "decimal.hh", src=mpdecppdir, dst=pkg_dir / "include")
copy(self, "decimal.hh", src=self.source_path / "libmpdec++", dst=pkg_dir / "include")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This section is weird. For some reason, in the cache folder, most of the the files are symlinks in 4.0.0, but actual files in 2.5.1. So we need to copy from the source folder instead. But this only affects the libmpdec++ folder. In fact, making this change to the libmpdec folder causes the C header to not get packaged. I don't understand any of why this is the case, but it works like this.

Also to note: I'm just being consistent here with the usage of *_path variables, I know they're deprecated.

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 haven't tested yet, but I'm hoping the weirdness will go away in the followup cleanup PR.

Comment on lines 25 to 30
-MPD_CXXFLAGS = $(WARN) /nologo $(OPT)
-MPD_CXXFLAGS_SHARED = /DBUILD_LIBMPDECXX $(WARN) /nologo $(OPT_SHARED) $(PGOFLAGS)
-MPD_BIN_CXXFLAGS_SHARED = $(WARN) /nologo $(OPT_SHARED) $(PGOFLAGS)
+MPD_CXXFLAGS = $(WARN) /nologo $(OPT) $(CONAN_CXXFLAGS) $(CONAN_CFLAGS)
+MPD_CXXFLAGS_SHARED = /DBUILD_LIBMPDECXX $(WARN) /nologo $(OPT_SHARED) $(PGOFLAGS) $(CONAN_LDFLAGS)
+MPD_BIN_CXXFLAGS_SHARED = $(WARN) /nologo $(OPT_SHARED) $(PGOFLAGS) $(CONAN_LDFLAGS)
Copy link
Contributor Author

@Ahajha Ahajha Nov 9, 2024

Choose a reason for hiding this comment

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

Not sure if this section is still necessary, is this 1.x legacy? If so, I can remove from previous versions too. (there are a few other sections like this too)

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 removing these sections in my followup PR

This reverts commit 441adc7.
@Ahajha Ahajha mentioned this pull request Nov 12, 2024
@perseoGI perseoGI self-assigned this Nov 14, 2024
@Ahajha Ahajha changed the title mpdecimal: Add version 4.0.0, fix mac cross-builds mpdecimal: Add version 4.0.0 Nov 15, 2024
@Ahajha Ahajha force-pushed the ahajha/mpdecimal-4.0.0 branch 2 times, most recently from 4877d22 to d7799e1 Compare November 15, 2024 17:12
@jcar87
Copy link
Contributor

jcar87 commented Nov 15, 2024

I really hate git sometimes :/

Tell me about it! Merges are always tricky - rebasing instead of merging tends to be safer, but solving conflicts can be tricky

@Ahajha
Copy link
Contributor Author

Ahajha commented Nov 15, 2024

(I deleted my comment - bad rebase, in case anyone following along at home is confused :P)

What usually happens is that I develop on any of 4 different machines, and when I forget to pull on the one I'm using lots of bad things happen. At least I was able to salvage it this time :)

@Ahajha
Copy link
Contributor Author

Ahajha commented Nov 20, 2024

@perseoGI Can you look at this PR again when you get a chance? Thanks!

@Ahajha
Copy link
Contributor Author

Ahajha commented Nov 21, 2024

@AbrilRBS Can this be merged?

@AbrilRBS AbrilRBS merged commit 06d850d into conan-io:master Nov 21, 2024
6 checks passed
@AbrilRBS
Copy link
Member

Yup, thanks for your patience @Ahajha!

@Ahajha
Copy link
Contributor Author

Ahajha commented Nov 21, 2024

Thanks @AbrilRBS!

@Ahajha Ahajha deleted the ahajha/mpdecimal-4.0.0 branch November 21, 2024 15:41
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.

4 participants