[From nobody Fri Nov 13 17:37:05 2026
Received: (at submit) by bugs.debian.org; 19 Sep 2026 19:53:56 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-118.1 required=4.0 tests=ALL_TRUSTED,BAYES_00,
 BODY_INCLUDES_PACKAGE,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,
 DKIM_VALID_AU,DKIM_VALID_EF,FOURLA,FROMDEVELOPER,HAS_PACKAGE,
 SPF_HELO_NONE,SPF_PASS,USER_IN_DKIM_WELCOMELIST autolearn=ham
 autolearn_force=no version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 46; hammy, 150; neutral, 257; spammy,
 0. spammytokens:
 hammytokens:0.000-+--Hx-spam-relays-external:sk:stravin,
 0.000-+--H*RT:sk:stravin, 0.000-+--Hx-spam-relays-external:311,
 0.000-+--H*RT:311, 0.000-+--H*RT:108
Return-path: &lt;maxy@debian.org&gt;
Received: from stravinsky.debian.org ([2001:41b8:202:deb::311:108]:58140)
 by buxtehude.debian.org with esmtps
 (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;maxy@debian.org&gt;) id 1x818F-0067V9-3A
 for submit@bugs.debian.org; Sat, 19 Sep 2026 19:53:56 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; 
 s=smtpauto.stravinsky;
 h=X-Debian-User:Content-Type:MIME-Version:Message-ID:
 Subject:To:From:Date:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:
 Content-Description:In-Reply-To:References;
 bh=nwK/LlSppseXomsD7ogj98XXGmNGpM6I2hBrC9auTqU=; b=fdNH7il2K7N+/q8GPQNnQZJNq8
 XnlYmqgV7I6GTWqLe6CwZg2SsPrv2ac+jRQSxPmEH5i8Ryf4TFwzybwTk9AsRVheqk2UnTOCDyyJ4
 sdSrVwxNRJdCvQTTRb0f6KdtIAjQPllZXnaQpwyYNxVygy8n0xu1weU3jTtUikhYcCl2JJA5+Fvds
 p3iwcpj90LwdxpBKcOL9P6I3v9eGG7KQbY+aVQMB3iAvTF3KDOrwDcMAdS2PCmG2yu5/11cFKhQYo
 no684ZpxqdNhRLJDR00/+ZB4PQ77mrxx+Zf5fl2203eIbqYsIeRCECtWdTyIKoBO0tN2dhM+sEg+H
 GeTluKYA==;
Received: from authenticated-user by stravinsky.debian.org with esmtpsa
 (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;maxy@debian.org&gt;) id 1x818D-000tHa-0V
 for submit@bugs.debian.org; Sat, 19 Sep 2026 19:53:54 +0000
Date: Sat, 19 Sep 2026 21:53:52 +0200
From: Maximiliano Curia &lt;maxy@debian.org&gt;
To: submit@bugs.debian.org
Subject: mdanse: FTBFS against python 3.15rc2
Message-ID: &lt;aq7oUPlfZewb3zem@hecuba.gnuservers.com.ar&gt;
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary=&quot;CDOojGN9Lyx7lGp8&quot;
Content-Disposition: inline
X-Debian-User: maxy
Delivered-To: submit@bugs.debian.org

--CDOojGN9Lyx7lGp8
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Disposition: inline

Package: src:mdanse
Version: 2.0.1-2
User: debian-python@lists.debian.org
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 mdanse fails to build from source [1].

The error is:

E   ImportError: cannot import name 'rdBase' from partially initialized module 'rdkit' (most likely due to a circular import) (/usr/lib/python3/dist-packages/rdkit/__init__.py

This happened because rdkit is only building against the default Python
version (3.14 in this case), while mdanse is trying to build against all
versions.

However, while looking into this I realized that there's no reason this
package should be arch:any, it should be arch:all instead. Switching to
arch:all and dropping the unused related dependencies makes the package
build successfully.

In the process of looking into this issue, I also ran into a test error
tolerance problem when building in arm64. By moving to arch:all that
issue will likely not be visible, but it's still good to make it
possible to build mdanse on arm64.

I've applied these fixes in the sandbox [2] to verify that it builds
successfully, 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/4749251/
[2]: https://debusine.debian.net/debian/r-python-python3.15/

-- 
&quot;Can you imagine what I would do if I could do all I can?&quot; -- Sun Tzu
Saludos /\/\ /\ &gt;&lt; `/

--CDOojGN9Lyx7lGp8
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename=mdanse_2.0.1-3.diff

diff --git a/debian/changelog b/debian/changelog
index 8ba5fe50..9eb0010c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+mdanse (2.0.1-3) UNRELEASED; urgency=medium
+
+  * Team upload.
+  * Build python3-mdanse as arch:all
+  * Add patch to relax the test tolerance
+
+ -- Maximiliano Curia &lt;maxy@debian.org&gt;  Fri, 18 Sep 2026 11:46:02 +0200
+
 mdanse (2.0.1-2) unstable; urgency=medium
 
   * Fix d/copyright syntax.
diff --git a/debian/control b/debian/control
index 534e72f7..9b5208e9 100644
--- a/debian/control
+++ b/debian/control
@@ -7,11 +7,9 @@ Section: science
 Build-Depends:
  debhelper-compat (= 13),
  dh-sequence-python3,
- cython3,
  dbus-daemon &lt;!nocheck&gt;,
  pybuild-plugin-pyproject,
  python3-all,
- python3-all-dev,
  python3-ase &lt;!nocheck&gt;,
  python3-h5py &lt;!nocheck&gt;,
  python3-mdanalysis,
@@ -33,12 +31,11 @@ Vcs-Git: https://salsa.debian.org/science-team/mdanse.git
 
 Package: python3-mdanse
 Section: python
-Architecture: any
+Architecture: all
 Depends:
  python3-rdkit (&gt;= 202503.1-5~),
  ${misc:Depends},
  ${python3:Depends},
- ${shlibs:Depends},
  python3-vtk9,
 Description: Molecular Dynamics Analysis for Neutron Scattering Experiments
  This is the module containing the command-line utilities and
diff --git a/debian/patches/relax-test-tolerance.patch b/debian/patches/relax-test-tolerance.patch
new file mode 100644
index 00000000..4624547f
--- /dev/null
+++ b/debian/patches/relax-test-tolerance.patch
@@ -0,0 +1,19 @@
+Description: Relax tolerance for DynamicCoherentStructureFactor test
+ On architectures such as arm64, floating point differences cause a maximum
+ absolute difference of ~1.1e-5 in the ideal DCSF dataset, which slightly
+ exceeds the atol=1e-5 tolerance. Relax atol to 2e-5.
+Author: Maximiliano Curia &lt;maxy@debian.org&gt;
+Forwarded: no
+Last-Update: 2026-09-18
+
+--- a/MDANSE/Tests/UnitTests/Analysis/test_grouping.py
++++ b/MDANSE/Tests/UnitTests/Analysis/test_grouping.py
+@@ -113,7 +113,7 @@
+         (&quot;PairDistributionFunction&quot;, [&quot;pdf&quot;, &quot;rdf&quot;, &quot;tcf&quot;], &quot;equal&quot;, 1e-10, 1e-7),
+         (&quot;StaticStructureFactor&quot;, [&quot;ssf&quot;], &quot;equal&quot;, 1e-10, 1e-7),
+         (&quot;XRayStaticStructureFactor&quot;, [&quot;xssf&quot;], &quot;equal&quot;, 1e-10, 1e-7),
+-        (&quot;DynamicCoherentStructureFactor&quot;, [&quot;dcsf&quot;], &quot;b_coherent&quot;, 1e-5, 1e-4),
++        (&quot;DynamicCoherentStructureFactor&quot;, [&quot;dcsf&quot;], &quot;b_coherent&quot;, 2e-5, 1e-4),
+         (&quot;CurrentCorrelationFunction&quot;, [&quot;ccf&quot;], &quot;b_coherent&quot;, 1e-6, 1e-7),
+         (&quot;DynamicIncoherentStructureFactor&quot;, [&quot;disf&quot;], &quot;b_incoherent&quot;, 1e-10, 1e-7),
+         (&quot;ElasticIncoherentStructureFactor&quot;, [&quot;eisf&quot;], &quot;b_incoherent&quot;, 1e-10, 1e-7),
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 00000000..cab0e035
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+relax-test-tolerance.patch

--CDOojGN9Lyx7lGp8--
]