Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lang/python38: Use libmpdec from ports
- Bump PORTREVISION for dependency and package change PR: 253603
- Loading branch information
Showing
3 changed files
with
37 additions
and
2 deletions.
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
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,20 @@ | ||
--- Modules/_decimal/_decimal.c.orig 2021-02-17 20:39:05 UTC | ||
+++ Modules/_decimal/_decimal.c | ||
@@ -3284,7 +3284,7 @@ dec_format(PyObject *dec, PyObject *args) | ||
} | ||
else { | ||
size_t n = strlen(spec.dot); | ||
- if (n > 1 || (n == 1 && !isascii((uchar)spec.dot[0]))) { | ||
+ if (n > 1 || (n == 1 && !isascii((unsigned char)spec.dot[0]))) { | ||
/* fix locale dependent non-ascii characters */ | ||
dot = dotsep_as_utf8(spec.dot); | ||
if (dot == NULL) { | ||
@@ -3293,7 +3293,7 @@ dec_format(PyObject *dec, PyObject *args) | ||
spec.dot = PyBytes_AS_STRING(dot); | ||
} | ||
n = strlen(spec.sep); | ||
- if (n > 1 || (n == 1 && !isascii((uchar)spec.sep[0]))) { | ||
+ if (n > 1 || (n == 1 && !isascii((unsigned char)spec.sep[0]))) { | ||
/* fix locale dependent non-ascii characters */ | ||
sep = dotsep_as_utf8(spec.sep); | ||
if (sep == NULL) { |
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,11 @@ | ||
--- setup.py.orig 2021-05-03 09:47:56 UTC | ||
+++ setup.py | ||
@@ -2051,7 +2051,7 @@ class PyBuildExt(build_ext): | ||
undef_macros = [] | ||
if '--with-system-libmpdec' in sysconfig.get_config_var("CONFIG_ARGS"): | ||
include_dirs = [] | ||
- libraries = [':libmpdec.so.2'] | ||
+ libraries = ['mpdec'] | ||
sources = ['_decimal/_decimal.c'] | ||
depends = ['_decimal/docstrings.h'] | ||
else: |