Package: src:mopidy
Version: 3.4.2-8
User: [email protected]
Usertags: python3.15
Tags: patch, ftbfs, forky, sid
Hi!
While rebuilding the python related packages against the Python 3.15rc1
version we found that mopidy fails to build from source [1].
The problem is due to the ScannerTest assuming that GStreamer won't open
a text file because it's not playable, but it does.
To fix this, I have added a patch that gracefully handles the returned
value.
I applied this fix in the sandbox [2] to be able to build the packages
that depend on mopidy, please consider applying the patch to support the
upcoming 3.15 version.
Happy hacking,
[1]: https://debusine.debian.net/debian/r-python-python3.15/artifact/4454445/
[2]: 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 /\/\ /\ >< `/
Description: Allow test_text_plain to pass if recognized as text/plain
Recent GStreamer/GLib versions identify plain text files as text/plain
rather than failing with an error.
Forwarded: not-needed
Index: mopidy/tests/audio/test_scan.py
===================================================================
--- mopidy.orig/tests/audio/test_scan.py
+++ mopidy/tests/audio/test_scan.py
@@ -115,7 +115,7 @@ class ScannerTest(unittest.TestCase):
# GStreamer decode bin hardcodes bad handling of text plain :/
path = path_to_data_dir("scanner/plain.txt")
self.scan([path])
- assert path in self.errors
+ assert path in self.errors or not self.result[path].playable
@unittest.SkipTest
def test_song_without_time_is_handeled(self):