diff options
author | Yoan Blanc | 2021-11-22 20:57:45 +0100 |
---|---|---|
committer | Yoan Blanc | 2021-11-22 20:58:27 +0100 |
commit | 8e9ff1261199f5bfee4d39c0526e3349cbd284b0 (patch) | |
tree | 524c27d2a6c0500b73e387a1a125ac97cde0aa8e /0004-mpdecimal-2.5.1.patch | |
parent | 7e2c714b1d7269057a0c26553872eefd4f374c24 (diff) | |
download | aur-8e9ff1261199f5bfee4d39c0526e3349cbd284b0.tar.gz |
Rebuild with patch for mpdecimal 2.5.1
Thanks hwangh95
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
Diffstat (limited to '0004-mpdecimal-2.5.1.patch')
-rw-r--r-- | 0004-mpdecimal-2.5.1.patch | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/0004-mpdecimal-2.5.1.patch b/0004-mpdecimal-2.5.1.patch new file mode 100644 index 000000000000..47e427c62a91 --- /dev/null +++ b/0004-mpdecimal-2.5.1.patch @@ -0,0 +1,45 @@ +From dd436be488bdca2123d12d1e148d85cb6f98be5f Mon Sep 17 00:00:00 2001 +From: Stefan Krah <skrah@bytereef.org> +Date: Sun, 10 Jan 2021 16:35:48 +0100 +Subject: [PATCH] Portability fixes. + +--- + Modules/_decimal/_decimal.c | 4 ++-- + setup.py | 2 +- + 2 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/Modules/_decimal/_decimal.c b/Modules/_decimal/_decimal.c +index 664d45a90481d..bbd540bc376e2 100644 +--- a/Modules/_decimal/_decimal.c ++++ b/Modules/_decimal/_decimal.c +@@ -3295,7 +3295,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) { +@@ -3304,7 +3304,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) { +diff --git a/setup.py b/setup.py +index ddc0bd067d4e4..c547a68664e8c 100644 +--- a/setup.py ++++ b/setup.py +@@ -2199,7 +2199,7 @@ def detect_decimal(self): + 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: |