Bug 253601 - lang/python37: use libmpdec from ports
Summary: lang/python37: use libmpdec from ports
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-17 22:04 UTC by Stefan Krah
Modified: 2021-05-11 21:57 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (python)


Attachments
build --with-system-libmpdec (3.65 KB, patch)
2021-02-17 22:05 UTC, Stefan Krah
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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!