-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
[mpc/mpfr] Add new port / update mpfr #13081
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
83886e2
[mpc] add mpc port
Neumann-A e55b8c9
[mpfr] update mpfr to use make.
Neumann-A bb9362b
[gmp] fix preprocessor define for dlls.
Neumann-A dd99984
more fixes
Neumann-A aa47a35
fix mpfr regression on !windows
Neumann-A 2c2f1e4
install autoconf-archive in provisioning script
Neumann-A f44fc6f
change indent of patches
Neumann-A 019b2ea
Merge branch 'master' of https://github.com/microsoft/vcpkg into add_mpc
4b9a331
Merge remote-tracking branch 'origin/master' into HEAD
BillyONeal 07dd9a5
Merge remote-tracking branch 'upstream/master' into add_mpc
Neumann-A 072acb8
fix merge error
Neumann-A 37b3da9
update PR
Neumann-A 371c331
Merge remote-tracking branch 'origin/add_mpc' into add_mpc
Neumann-A 66b0df7
Merge branch 'master' of https://github.com/microsoft/vcpkg into add_mpc
495fc34
update baseline
b23a80c
Merge remote-tracking branch 'upstream/master' into fix-versions
strega-nil File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/SMP/libgmp.def b/SMP/libgmp.def | ||
index 289f0e2d1..632274ab2 100644 | ||
--- a/SMP/libgmp.def | ||
+++ b/SMP/libgmp.def | ||
@@ -16,6 +16,7 @@ __gmp_randclear | ||
__gmp_urandomb_ui | ||
__gmp_urandomm_ui | ||
__gmp_asprintf | ||
+__gmp_vasprintf | ||
__gmp_fprintf | ||
__gmp_printf | ||
__gmp_snprintf |
This file contains 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 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 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Source: mpc | ||
Version: 1.2.0 | ||
Homepage: http://www.multiprecision.org/mpc/ | ||
Description: GNU MPC is a C library for the arithmetic of complex numbers with arbitrarily high precision and correct rounding of the result. | ||
Build-Depends: gmp, mpfr |
This file contains 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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
diff --git a/configure.ac b/configure.ac | ||
index ab3da6092..2533df1d8 100644 | ||
--- a/configure.ac | ||
+++ b/configure.ac | ||
@@ -151,7 +151,9 @@ AC_CHECK_FUNCS([dup dup2],, | ||
|
||
AC_CHECK_LIB([gmp], [__gmpz_init], | ||
[LIBS="-lgmp $LIBS"], | ||
- [AC_MSG_ERROR([libgmp not found or uses a different ABI (including static vs shared).])]) | ||
+ [AC_CHECK_LIB([gmpd], [__gmpz_init], | ||
+ [LIBS="-lgmpd $LIBS"], | ||
+ [AC_MSG_ERROR([libgmp not found or uses a different ABI (including static vs shared).])])]) | ||
|
||
AC_MSG_CHECKING(for MPFR) | ||
LIBS="-lmpfr $LIBS" |
This file contains 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
vcpkg_download_distfile(ARCHIVE | ||
URLS "https://ftp.gnu.org/gnu/mpc/mpc-1.2.0.tar.gz" | ||
FILENAME "mpc-1.2.0.tar.gz" | ||
SHA512 84fa3338f51d369111456a63ad040256a1beb70699e21e2a932c779aa1c3bd08b201412c1659ecbb58403ea0548faacc35996d94f88f0639549269b7563c61b7 | ||
) | ||
|
||
vcpkg_extract_source_archive_ex( | ||
OUT_SOURCE_PATH SOURCE_PATH | ||
ARCHIVE ${ARCHIVE} | ||
PATCHES gmpd.patch | ||
) | ||
|
||
vcpkg_configure_make( | ||
SOURCE_PATH "${SOURCE_PATH}" | ||
AUTOCONFIG | ||
) | ||
|
||
vcpkg_install_make() | ||
|
||
vcpkg_fixup_pkgconfig() | ||
|
||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) | ||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share) | ||
|
||
# # Handle copyright | ||
file(INSTALL "${SOURCE_PATH}/COPYING.LESSER" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
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.
Since this already uses a manifest file, why not use
version-semver
orversion
versioning schemes?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.
Why should it? This is a vcpkg internal update.
As such port-version is the correct thing and should have been from the beginning.
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.
In my opinion we should start switching packages to their correct versioning schemes.
Since "version-string" are non-orderable (except by their port version number) by design, continuing to use them will seriously limit the usefulness of "version>=" constraints.
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.
I am just doing what
vcpkg x-add-version
does. If you want"version": "6.2.1",
here please tell/teach the command to do that.