[From nobody Sat Nov  7 15:01:07 2026
Received: (at submit) by bugs.debian.org; 2 Sep 2026 19:50: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.2 required=4.0 tests=ALL_TRUSTED,BAYES_00,
 BODY_INCLUDES_PACKAGE,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,
 DKIM_VALID_AU,DKIM_VALID_EF,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, 62; hammy, 150; neutral, 259; 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]:39262)
 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 1x1qz1-000JiC-0e
 for submit@bugs.debian.org; Wed, 02 Sep 2026 19:50: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:Cc:To:From:Date:Reply-To:Content-Transfer-Encoding:Content-ID:
 Content-Description:In-Reply-To:References;
 bh=8p2Dysgk5J1mHcfKmMG1h2c1MOtYUvx2p2xDm4E6sIs=; b=MNvb8NbJEKeGnwnepLNzhP7PGn
 f05xqULg7vVhh8qxccX8Hp1Cr5v2XGMhZut/l9F4QaJrMQ96+PhmMnk7p1OlLM1QxxnrWRKKFsL0p
 8K44GHqu3LGR0POTC6IjDsT9KrLC26802A5LBBvWg0TXSLifhdwAcOb+5uUCeAp5iK1XlU9qu0whW
 yG/uymEtDP4bd3aFZob1GCgPdgqJ9ejiQl+QfhqqXweQmIMueEog51wkX0uwgetWqSTuFIfEcfLAe
 22r4+++k0McHLKttQeHAEmGFKGcvMrGxMhclT/uBoZU17IdIPNl/8zsVZ36OcY2cq2sdKqzHzZUsB
 TnUvKgrg==;
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 1x1qz0-0001cE-0U;
 Wed, 02 Sep 2026 19:50:55 +0000
Date: Wed, 2 Sep 2026 21:50:53 +0200
From: Maximiliano Curia &lt;maxy@debian.org&gt;
To: submit@bugs.debian.org
Cc: debian-python@lists.debian.org
Subject: joblib: FTBFS against python 3.15rc1
Message-ID: &lt;aph-HUEfQHb9hX0c@hecuba.gnuservers.com.ar&gt;
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary=&quot;tWUa4/eRCtJcmPxf&quot;
Content-Disposition: inline
X-Debian-User: maxy
Delivered-To: submit@bugs.debian.org

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

Package: src:joblib
Version: 1.5.3-2
User: debian-python@lists.debian.org
Usertags: python3.15
Tags: patch, ftbfs, forky, sid

Hi!

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

In order to fix the issue, I had to:
- Run the tests in autopkg tests with the conftest file (Fixes #1140861)
- Backport loky's _decode_message function to support Python 3.14+
   (Fixes #1141207).
- Change the condition for using multiprocessing in the random parallel
   example (needs to be forwarded upstream).

I applied these fixes in the sandbox [2] to be able to build the
packages that depend on joblib, 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/4496152/
[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; `/

--tWUa4/eRCtJcmPxf
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=joblib_1.5.3-2.1.debdiff

diff -Nru joblib-1.5.3/debian/changelog joblib-1.5.3/debian/changelog
--- joblib-1.5.3/debian/changelog	2026-06-24 18:31:44.000000000 +0200
+++ joblib-1.5.3/debian/changelog	2026-09-02 16:13:04.000000000 +0200
@@ -1,3 +1,11 @@
+joblib (1.5.3-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Add patch: forkserver-examples, to avoid hanging forkservers in the tests
+  * Backport loky's _decode_message
+
+ -- Maximiliano Curia &lt;maxy@debian.org&gt;  Wed, 02 Sep 2026 16:13:04 +0200
+
 joblib (1.5.3-2) unstable; urgency=medium
 
   * Team upload.
diff -Nru joblib-1.5.3/debian/patches/forkserver-examples joblib-1.5.3/debian/patches/forkserver-examples
--- joblib-1.5.3/debian/patches/forkserver-examples	1970-01-01 01:00:00.000000000 +0100
+++ joblib-1.5.3/debian/patches/forkserver-examples	2026-09-02 16:13:04.000000000 +0200
@@ -0,0 +1,48 @@
+Description: Only use multiprocessing backend in examples when start method is fork
+ In Python 3.14+, multiprocessing defaults to the forkserver start method on
+ POSIX. When using the multiprocessing backend on top-level functions without
+ the fork start method, worker processes cannot deserialize the functions.
+Index: joblib/examples/parallel_random_state.py
+===================================================================
+--- joblib.orig/examples/parallel_random_state.py
++++ joblib/examples/parallel_random_state.py
+@@ -87,7 +87,7 @@ print_vector(random_vector, backend)
+ 
+ import multiprocessing as mp
+ 
+-if mp.get_start_method() != &quot;spawn&quot;:
++if mp.get_start_method() == &quot;fork&quot;:
+     backend = &quot;multiprocessing&quot;
+     random_vector = Parallel(n_jobs=2, backend=backend)(
+         delayed(stochastic_function)(10) for _ in range(n_vectors)
+@@ -115,7 +115,7 @@ def stochastic_function_seeded(max_value
+ # reset this seed by passing ``None`` at every function call. In this case, we
+ # see that the generated vectors are all different.
+ 
+-if mp.get_start_method() != &quot;spawn&quot;:
++if mp.get_start_method() == &quot;fork&quot;:
+     random_vector = Parallel(n_jobs=2, backend=backend)(
+         delayed(stochastic_function_seeded)(10, None) for _ in range(n_vectors)
+     )
+@@ -133,7 +133,7 @@ if mp.get_start_method() != &quot;spawn&quot;:
+ #
+ # .. [1]  https://numpy.org/doc/stable/reference/random/parallel.html
+ 
+-if mp.get_start_method() != &quot;spawn&quot;:
++if mp.get_start_method() == &quot;fork&quot;:
+     seed = 42
+     random_vector = Parallel(n_jobs=2, backend=backend)(
+         delayed(stochastic_function_seeded)(10, [i, seed]) for i in range(n_vectors)
+Index: joblib/examples/serialization_and_wrappers.py
+===================================================================
+--- joblib.orig/examples/serialization_and_wrappers.py
++++ joblib/examples/serialization_and_wrappers.py
+@@ -68,7 +68,7 @@ print(
+ 
+ import multiprocessing as mp
+ 
+-if mp.get_start_method() != &quot;spawn&quot;:
++if mp.get_start_method() == &quot;fork&quot;:
+ 
+     def func_async(i, *args):
+         return 2 * i
diff -Nru joblib-1.5.3/debian/patches/py315-resource-tracker joblib-1.5.3/debian/patches/py315-resource-tracker
--- joblib-1.5.3/debian/patches/py315-resource-tracker	1970-01-01 01:00:00.000000000 +0100
+++ joblib-1.5.3/debian/patches/py315-resource-tracker	2026-09-02 16:13:04.000000000 +0200
@@ -0,0 +1,61 @@
+Description: Backport loky's _decode_message to support python 3.15
+Index: joblib/joblib/externals/loky/backend/resource_tracker.py
+===================================================================
+--- joblib.orig/joblib/externals/loky/backend/resource_tracker.py
++++ joblib/joblib/externals/loky/backend/resource_tracker.py
+@@ -38,6 +38,8 @@
+ # resources once all processes connected to the resource tracker have exited.
+ 
+ 
++import base64
++import json
+ import os
+ import shutil
+ import sys
+@@ -254,6 +256,30 @@ unregister = _resource_tracker.unregiste
+ getfd = _resource_tracker.getfd
+ 
+ 
++def _decode_message(line):
++    if line.startswith(b'{'):
++        try:
++            obj = json.loads(line.decode('ascii'))
++        except Exception as e:
++            raise ValueError(&quot;malformed resource_tracker message: %r&quot; % (line,)) from e
++
++        cmd = obj[&quot;cmd&quot;]
++        rtype = obj[&quot;rtype&quot;]
++        b64  = obj.get(&quot;base64_name&quot;, &quot;&quot;)
++
++        if not isinstance(cmd, str) or not isinstance(rtype, str) or not isinstance(b64, str):
++            raise ValueError(&quot;malformed resource_tracker fields: %r&quot; % (obj,))
++
++        try:
++            name = base64.urlsafe_b64decode(b64).decode('utf-8', 'surrogateescape')
++        except ValueError as e:
++            raise ValueError(&quot;malformed resource_tracker base64_name: %r&quot; % (b64,)) from e
++    else:
++        cmd, rest = line.strip().decode('ascii').split(':', maxsplit=1)
++        name, rtype = rest.rsplit(':', maxsplit=1)
++    return cmd, rtype, name
++
++
+ def main(fd, verbose=0):
+     &quot;&quot;&quot;Run resource tracker.&quot;&quot;&quot;
+     if verbose:
+@@ -284,14 +310,7 @@ def main(fd, verbose=0):
+         with open(fd, &quot;rb&quot;) as f:
+             for line in f:
+                 try:
+-                    splitted = line.strip().decode(&quot;ascii&quot;).split(&quot;:&quot;)
+-                    # name can potentially contain separator symbols (for
+-                    # instance folders on Windows)
+-                    cmd, name, rtype = (
+-                        splitted[0],
+-                        &quot;:&quot;.join(splitted[1:-1]),
+-                        splitted[-1],
+-                    )
++                    cmd, name, rtype = _decode_message(line)
+ 
+                     if rtype not in _CLEANUP_FUNCS:
+                         raise ValueError(
diff -Nru joblib-1.5.3/debian/patches/series joblib-1.5.3/debian/patches/series
--- joblib-1.5.3/debian/patches/series	2026-06-24 16:57:28.000000000 +0200
+++ joblib-1.5.3/debian/patches/series	2026-09-02 16:13:04.000000000 +0200
@@ -4,3 +4,5 @@
 intersphinx-inventory
 deb_test_memory
 privacy
+forkserver-examples
+py315-resource-tracker
diff -Nru joblib-1.5.3/debian/tests/pytest joblib-1.5.3/debian/tests/pytest
--- joblib-1.5.3/debian/tests/pytest	2026-06-24 16:57:28.000000000 +0200
+++ joblib-1.5.3/debian/tests/pytest	2026-09-02 16:13:04.000000000 +0200
@@ -19,5 +19,5 @@
 
 for py in $(py3versions -s); do
 	echo &quot;Testing with $py:&quot;
-	$py -m pytest -v -k &quot;${TEST_KEYWORDS}&quot; --pyargs joblib
+	$py -m pytest -v -k &quot;${TEST_KEYWORDS}&quot; -p conftest --pyargs joblib
 done

--tWUa4/eRCtJcmPxf--
]