Package: src:python-xmlsec
Version: 1.3.17-2
User: [email protected]
Usertags: python3.15
Tags: patch, ftbfs, forky, sid
Severity: important

Hi!

While rebuilding the python related packages against the Python 3.15rc2
version we found that python-xmlsec fails to build from source [1].

The upstream issue tracker already includes a report about this problem
[2]. And also includes a patch suggested by a contributor which
addresses the issue.

I applied this fix in the sandbox [3] to be able to build the packages
that depend on python-xmlsec, please consider applying the patch to
support the upcoming 3.15 version.

Setting the severity to important for now. Once Python 3.15 is released,
it will be added to python3-defaults and this bug will become release
critical.

Happy hacking,

[1]: https://debusine.debian.net/debian/r-python-python3.15/artifact/4307126/
[2]: https://github.com/xmlsec/python-xmlsec/issues/426
[3]: https://debusine.debian.net/debian/r-python-python3.15/

--
"Can you imagine what I would do if I could do all I can?" -- Sun Tzu
Saludos /\/\ /\ >< `/
diff -ur xmlsec-1.3.17.orig/tests/base.py xmlsec-1.3.17/tests/base.py
--- xmlsec-1.3.17.orig/tests/base.py	2026-08-01 18:03:41.993662244 -0300
+++ xmlsec-1.3.17/tests/base.py	2026-08-01 18:03:48.009014638 -0300
@@ -39,7 +39,8 @@
             return
 
         m_usage = resource.getrusage(resource.RUSAGE_SELF).ru_maxrss
-        o_count = gc.get_count()[0]
+        gc.collect()
+        o_count = len(gc.get_objects())
         m_hits = 0
         o_hits = 0
         for _ in range(self.iterations):
@@ -48,7 +49,8 @@
             if m_usage_n > m_usage:
                 m_usage = m_usage_n
                 m_hits += 1
-            o_count_n = gc.get_count()[0]
+            gc.collect()
+            o_count_n = len(gc.get_objects())
             if o_count_n > o_count:
                 o_count = o_count_n
                 o_hits += 1

Reply via email to