[packages/python3-pyroaring] - fix build on x32

baggins baggins at pld-linux.org
Wed Jun 4 10:35:04 CEST 2025


commit 9f8ef06357489882e6294962886d2ab7fe21e065
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Wed Jun 4 11:27:42 2025 +0200

    - fix build on x32

 python3-pyroaring.spec |  2 ++
 x32.patch              | 11 +++++++++++
 2 files changed, 13 insertions(+)
---
diff --git a/python3-pyroaring.spec b/python3-pyroaring.spec
index 0095c32..d5f7bc6 100644
--- a/python3-pyroaring.spec
+++ b/python3-pyroaring.spec
@@ -8,6 +8,7 @@ Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/pyroaring/
 Source0:	https://files.pythonhosted.org/packages/source/p/pyroaring/%{module}-%{version}.tar.gz
 # Source0-md5:	9030ab762da966319cd970d64dfb15fb
+Patch0:		x32.patch
 URL:		https://pypi.org/project/pyroaring/
 BuildRequires:	python3-devel >= 1:3.8
 BuildRequires:	python3-modules >= 1:3.8
@@ -25,6 +26,7 @@ This is a Python wrapper for the C library CRoaring.
 
 %prep
 %setup -q -n %{module}-%{version}
+%patch -P0 -p1
 
 %build
 %py3_build
diff --git a/x32.patch b/x32.patch
new file mode 100644
index 0000000..31dd76d
--- /dev/null
+++ b/x32.patch
@@ -0,0 +1,11 @@
+--- pyroaring-1.0.1/pyroaring/roaring.c~	2025-05-08 15:30:07.000000000 +0200
++++ pyroaring-1.0.1/pyroaring/roaring.c	2025-06-04 11:25:33.159993226 +0200
+@@ -12356,7 +12356,7 @@
+     return outpos;
+ }
+ 
+-#if defined(CROARING_ASMBITMANIPOPTIMIZATION) && defined(CROARING_IS_X64)
++#if defined(CROARING_ASMBITMANIPOPTIMIZATION) && defined(CROARING_IS_X64) && !defined(__ILP32__)
+ 
+ static inline uint64_t _asm_bitset_set_list_withcard(uint64_t *words,
+                                                      uint64_t card,
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-pyroaring.git/commitdiff/9f8ef06357489882e6294962886d2ab7fe21e065



More information about the pld-cvs-commit mailing list