ujson add support for loongarch64
This commit is contained in:
parent
03b75bed13
commit
3433851815
22
0001-ujson-5.1.0-add-support-for-loongarch64.patch
Normal file
22
0001-ujson-5.1.0-add-support-for-loongarch64.patch
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
From 662a76a05dfa337e0317022920380596931e64ce Mon Sep 17 00:00:00 2001
|
||||||
|
From: loongarch <loongarch@localhost.localdomain>
|
||||||
|
Date: Tue, 7 Nov 2023 20:02:58 +0800
|
||||||
|
Subject: [PATCH] ujson-5.1.0 add support for loongarch64
|
||||||
|
|
||||||
|
|
||||||
|
diff --git a/deps/double-conversion/double-conversion/utils.h b/deps/double-conversion/double-conversion/utils.h
|
||||||
|
index 85b1ca4..7830972 100644
|
||||||
|
--- a/deps/double-conversion/double-conversion/utils.h
|
||||||
|
+++ b/deps/double-conversion/double-conversion/utils.h
|
||||||
|
@@ -77,7 +77,7 @@ inline void abort_noreturn() { abort(); }
|
||||||
|
defined(__SH4__) || defined(__alpha__) || \
|
||||||
|
defined(_MIPS_ARCH_MIPS32R2) || \
|
||||||
|
defined(__AARCH64EL__) || defined(__aarch64__) || defined(_M_ARM64) || \
|
||||||
|
- defined(__riscv)
|
||||||
|
+ defined(__riscv) || defined(__loongarch64)
|
||||||
|
#define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1
|
||||||
|
#elif defined(__mc68000__)
|
||||||
|
#undef DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS
|
||||||
|
--
|
||||||
|
2.33.0
|
||||||
|
|
||||||
@ -1,7 +1,7 @@
|
|||||||
%global _empty_manifest_terminate_build 0
|
%global _empty_manifest_terminate_build 0
|
||||||
Name: python-ujson
|
Name: python-ujson
|
||||||
Version: 5.1.0
|
Version: 5.1.0
|
||||||
Release: 3
|
Release: 4
|
||||||
Summary: Ultra fast JSON encoder and decoder for Python
|
Summary: Ultra fast JSON encoder and decoder for Python
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: https://github.com/ultrajson/ultrajson
|
URL: https://github.com/ultrajson/ultrajson
|
||||||
@ -9,6 +9,7 @@ Source0: https://files.pythonhosted.org/packages/92/4a/2676677f5970951756
|
|||||||
|
|
||||||
Patch0001: fix-CVE-2022-31116.patch
|
Patch0001: fix-CVE-2022-31116.patch
|
||||||
Patch0002: fix-CVE-2022-31117.patch
|
Patch0002: fix-CVE-2022-31117.patch
|
||||||
|
Patch0003: 0001-ujson-5.1.0-add-support-for-loongarch64.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
UltraJSON is an ultra fast JSON encoder and decoder written in pure C with bindings for Python 3.6+
|
UltraJSON is an ultra fast JSON encoder and decoder written in pure C with bindings for Python 3.6+
|
||||||
@ -79,6 +80,9 @@ mv %{buildroot}/doclist.lst .
|
|||||||
%{_docdir}/*
|
%{_docdir}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Nov 7 2023 doupengda <doupengda@loongson.cn> -5.1.0-4
|
||||||
|
- add support for loongarch64
|
||||||
|
|
||||||
* Wed Mar 1 2023 huangduirong <huangduirong@huawei.com> - 5.1.0-3
|
* Wed Mar 1 2023 huangduirong <huangduirong@huawei.com> - 5.1.0-3
|
||||||
- fix CVE-2022-31117
|
- fix CVE-2022-31117
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user