[packages/python3-lscsoft-glue] - fix build on 32bit archs
baggins
baggins at pld-linux.org
Sat Jun 7 22:22:13 CEST 2025
commit a9cdbab97a72e7591db7c7988634bc7a790928a0
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sun Jun 8 00:19:04 2025 +0200
- fix build on 32bit archs
i32.patch | 23 +++++++++++++++++++++++
python3-lscsoft-glue.spec | 2 ++
2 files changed, 25 insertions(+)
---
diff --git a/python3-lscsoft-glue.spec b/python3-lscsoft-glue.spec
index 923a046..2917e6a 100644
--- a/python3-lscsoft-glue.spec
+++ b/python3-lscsoft-glue.spec
@@ -13,6 +13,7 @@ Group: Libraries/Python
Source0: https://files.pythonhosted.org/packages/source/l/lscsoft-glue/lscsoft-glue-%{version}.tar.gz
# Source0-md5: 9414ea200a8711dd699a1df520aa6746
Patch0: python3.13.patch
+Patch1: i32.patch
URL: https://pypi.org/project/lscsoft-glue/
BuildRequires: python3-devel >= 1:3.6
BuildRequires: python3-setuptools
@@ -44,6 +45,7 @@ przedziałów.
%prep
%setup -q -n lscsoft-glue-%{version}
%patch -P0 -p1
+%patch -P1 -p1
# fails with py3
%{__sed} -i -e '/^\tglue_ligolw_ilwd_verify /d' test/Makefile
diff --git a/i32.patch b/i32.patch
new file mode 100644
index 0000000..0c2b236
--- /dev/null
+++ b/i32.patch
@@ -0,0 +1,23 @@
+--- lscsoft-glue-3.0.1/glue/ligolw/ilwd.c~ 2025-06-08 00:15:01.000000000 +0200
++++ lscsoft-glue-3.0.1/glue/ligolw/ilwd.c 2025-06-08 00:17:52.986659579 +0200
+@@ -108,12 +108,19 @@
+ return new;
+ }
+
+-
++#ifdef __ILP32__
++static int ligolw_ilwdchar___hash__(PyObject *self)
++#else
+ static long ligolw_ilwdchar___hash__(PyObject *self)
++#endif
+ {
+ PyObject *tbl = PyObject_GetAttr(self, table_name);
+ PyObject *col = PyObject_GetAttr(self, column_name);
++#ifdef __ILP32__
++ int hash;
++#else
+ long hash;
++#endif
+
+ if(tbl && col) {
+ hash = PyObject_Hash(tbl) ^ PyObject_Hash(col) ^ ((ligolw_ilwdchar *) self)->i;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-lscsoft-glue.git/commitdiff/a9cdbab97a72e7591db7c7988634bc7a790928a0
More information about the pld-cvs-commit
mailing list