¡Hola Georg!

El 2026-10-20 a las 19:36 +0000, Georg Faerber escribió:
Thanks for your report --

You are welcome.

On 26-10-20 21:05:10, Maximiliano Curia wrote:
While preparing the Python 3.15 migration we realized that some Python
packages were shipping broken metadata directories, which leads to
errors when trying to import these directories with code running on
Python 3.15.

To avoid shipping any additional broken directories, dh-python
7.20261019 now throws an error at build-time.

Unfortunately, mat2 is one of the affected packages and fails to build
with the latest dh-python [1].

Most of these errors can be fixed by being more strict with the files
considered for installation. I'll try to submit a patch for this ASAP.

[1]: https://debusine.debian.net/debian/r-python-python3.15/artifact/5118877/

I had a quick look at the above link: to me it seems that the build
fails not due to broken metadata directories, but rather due to

 FAIL: test_all_parametred (tests.test_libmat2.TestCleaning.test_all_parametred)
 AssertionError: False is not true : got a different value (720000) than 
excepted [...]

which looks similar to

 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=993209
 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1021732
 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1148580
 ...

The autopkgtest via ci.d.n is failing since quite some time as well.

Does this make sense?

Yes, this package already had an FTBFS due to a change in ffmpeg 9. I
prepared another patch for that, and I cherry-picked a patch from
upstream (attaching them). With these patches the package builds again.

Happy hacking,
--
"It is not the task of the University to offer what society asks for, but to give what society needs."
-- Edsger W. Dijkstra
Saludos /\/\ /\ >< `/
Description: Fix MP4 test failure with FFmpeg 9
 Newer FFmpeg calculates the movie timescale from the stream timescales
 (resulting in 720000 for dirty.mp4) rather than defaulting to 1000.
Forwarded: no

--- a/tests/test_libmat2.py
+++ b/tests/test_libmat2.py
@@ -611,6 +611,7 @@
             },
             'extra_expected_meta': {
                 'VideoFullRangeFlag': 0,
+                'TimeScale': 720000,
              }
         },{
             'name': 'wmv',
From bdf641b5fda400df70e387cb7379f9a08cef0f17 Mon Sep 17 00:00:00 2001
From: Lukas Schmelting <[email protected]>
Date: Wed, 12 Aug 2026 18:17:50 +0200
Subject: [PATCH] Disable namespace package discovery

Prevent non-Python directories such as data, doc, dolphin and nemo from
being installed into site-packages by setuptools' implicit namespace
package discovery.
---
 pyproject.toml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/pyproject.toml b/pyproject.toml
index 7b14858..b37aa71 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -38,6 +38,7 @@ script-files = ["mat2"]
 
 [tool.setuptools.packages.find]
 exclude = ["tests*"]
+namespaces = false
 
 [tool.setuptools.data-files]
 "share/man/man1" = ["doc/mat2.1"]
-- 
2.53.0

Attachment: signature.asc
Description: PGP signature

Reply via email to