Add sw_64 support

(cherry picked from commit 16037f9b1811f9593e17e61015f7bfc33a2bf1d5)
This commit is contained in:
zhangshaoning 2025-02-27 16:50:16 +08:00 committed by openeuler-sync-bot
parent 25d7a8db88
commit 21af75522b
2 changed files with 30 additions and 1 deletions

View File

@ -0,0 +1,25 @@
From 540452f5999168de7f8efd3c3e26cc69e9f094bd Mon Sep 17 00:00:00 2001
From: root <root@localhost.localdomain>
Date: Thu, 12 Dec 2024 11:13:16 +0800
Subject: [PATCH] add sw_64 support
---
deps/double-conversion/double-conversion/utils.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/deps/double-conversion/double-conversion/utils.h b/deps/double-conversion/double-conversion/utils.h
index 7830972..46a1a2a 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(__loongarch64)
+ defined(__riscv) || defined(__loongarch64) || defined(__sw_64__)
#define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1
#elif defined(__mc68000__)
#undef DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS
--
2.33.0

View File

@ -1,7 +1,7 @@
%global _empty_manifest_terminate_build 0
Name: python-ujson
Version: 5.1.0
Release: 4
Release: 5
Summary: Ultra fast JSON encoder and decoder for Python
License: BSD
URL: https://github.com/ultrajson/ultrajson
@ -10,6 +10,7 @@ Source0: https://files.pythonhosted.org/packages/92/4a/2676677f5970951756
Patch0001: fix-CVE-2022-31116.patch
Patch0002: fix-CVE-2022-31117.patch
Patch0003: 0001-ujson-5.1.0-add-support-for-loongarch64.patch
Patch0004: 100-python-ujson-uos-add-sw_64-support.patch
%description
UltraJSON is an ultra fast JSON encoder and decoder written in pure C with bindings for Python 3.6+
@ -80,6 +81,9 @@ mv %{buildroot}/doclist.lst .
%{_docdir}/*
%changelog
* Thu Feb 27 2025 zhangshaoning <zhangshaoning@uniontech.com> - 5.1.0-5
- Add sw_64 support
* Tue Nov 7 2023 doupengda <doupengda@loongson.cn> -5.1.0-4
- add support for loongarch64