This diff builds Python --with-system-libmpdec, using libmpdec-2.5.1 from ports. mpdecimal-2.5.1 is very well tested, since I had access to a large compile farm with a broad variety of architectures in the past 6 months. It is compatible with _decimal.c in Python-3.7, except for trivial build patches that are due to cleanups in mpdecimal.h. There are no new warnings in ``portlint -A''.
Created attachment 222538 [details] build --with-system-libmpdec
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=00d92d8c3d0640d1c1850e508c38f907bd1a3b92 commit 00d92d8c3d0640d1c1850e508c38f907bd1a3b92 Author: Stefan Krah <skrah@bytereef.org> AuthorDate: 2021-05-11 21:40:44 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2021-05-11 21:47:33 +0000 lang/python37: Use libmpdec from ports - Bump PORTREVISION for dependency and package change PR: 253601 lang/python37/Makefile | 7 +++-- .../patch-Modules___decimal___decimal.c (new) | 32 ++++++++++++++++++++++ lang/python37/files/patch-setup.py (new) | 11 ++++++++ 3 files changed, 47 insertions(+), 3 deletions(-)
Committed. Thanks!