Bug 253601

Summary: lang/python37: use libmpdec from ports
Product: Ports & Packages Reporter: Stefan Krah <skrah>
Component: Individual Port(s)Assignee: Po-Chuan Hsieh <sunpoet>
Status: Closed FIXED    
Severity: Affects Many People CC: skrah, swills
Priority: --- Flags: bugzilla: maintainer-feedback? (python)
Version: Latest   
Hardware: Any   
OS: Any   
See Also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253492
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253603
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253604
Attachments:
Description Flags
build --with-system-libmpdec none

Description Stefan Krah 2021-02-17 22:04:34 UTC
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''.
Comment 1 Stefan Krah 2021-02-17 22:05:32 UTC
Created attachment 222538 [details]
build --with-system-libmpdec
Comment 2 commit-hook freebsd_committer freebsd_triage 2021-05-11 21:55:01 UTC
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(-)
Comment 3 Po-Chuan Hsieh freebsd_committer freebsd_triage 2021-05-11 21:57:19 UTC
Committed. Thanks!