🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.rc
Article #1751

Bug#1145153: python-botocore: FTBFS building against python 3.15

#1751
From: Bastian Germann
Date: Sun, 25 Oct 2026 23:30
115 lines
6713 bytes
--OhIrgaL6oX46fWdn
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

I am uploading a NMU to fix this.
Please find the changes attached.

--OhIrgaL6oX46fWdn
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment;
	filename=python-botocore_1.40.72+repack-1.1.debdiff

diff -Nru python-botocore-1.40.72+repack/debian/changelog python-botocore-1.40.72+repack/debian/changelog
--- python-botocore-1.40.72+repack/debian/changelog	2025-11-13 09:18:24.000000000 +0100
+++ python-botocore-1.40.72+repack/debian/changelog	2026-10-26 00:23:42.000000000 +0100
@@ -1,3 +1,13 @@
+python-botocore (1.40.72+repack-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload
+  * Start testing Python 3.15 (Closes: #1145153)
+
+  [ Nico Della Torre ]
+  * python-botocore: drop the python3-six dependency
+
+ -- Bastian Germann <bage@debian.org>  Mon, 26 Oct 2026 00:23:42 +0100
+
 python-botocore (1.40.72+repack-1) unstable; urgency=medium
 
   * New upstream version 1.40.72+repack
diff -Nru python-botocore-1.40.72+repack/debian/control python-botocore-1.40.72+repack/debian/control
--- python-botocore-1.40.72+repack/debian/control	2025-11-13 09:18:24.000000000 +0100
+++ python-botocore-1.40.72+repack/debian/control	2026-10-26 00:18:51.000000000 +0100
@@ -12,7 +12,6 @@
         , python3-jmespath <!nocheck>
         , python3-pytest <!nocheck>
         , python3-requests <!nocheck>
-        , python3-six <!nocheck>
 	, dh-python
 Standards-Version: 4.6.2
 Homepage: https://github.com/boto/botocore
@@ -24,7 +23,6 @@
 Architecture: all
 Depends: ${python3:Depends},
  python3-requests,
- python3-six,
  python3-dateutil (>= 2.1),
  python3-jmespath (>= 0.7.1),
  ${misc:Depends}
diff -Nru python-botocore-1.40.72+repack/debian/patches/0001-Don-t-use-duplicated-modules.patch python-botocore-1.40.72+repack/debian/patches/0001-Don-t-use-duplicated-modules.patch
--- python-botocore-1.40.72+repack/debian/patches/0001-Don-t-use-duplicated-modules.patch	2025-11-13 09:18:24.000000000 +0100
+++ python-botocore-1.40.72+repack/debian/patches/0001-Don-t-use-duplicated-modules.patch	2026-10-26 00:18:51.000000000 +0100
@@ -19,12 +19,15 @@
 
 --- a/botocore/compat.py
 +++ b/botocore/compat.py
-@@ -26,7 +26,7 @@
+@@ -26,7 +26,10 @@
  from collections.abc import MutableMapping
  from math import floor
  
 -from botocore.vendored import six
-+import six
++try:
++    import six
++except ImportError:
++    pass
  from botocore.exceptions import MD5UnavailableError
  from dateutil.tz import tzlocal
  from urllib3 import exceptions
diff -Nru python-botocore-1.40.72+repack/debian/patches/0002-pin-compresslevel-9.patch python-botocore-1.40.72+repack/debian/patches/0002-pin-compresslevel-9.patch
--- python-botocore-1.40.72+repack/debian/patches/0002-pin-compresslevel-9.patch	1970-01-01 01:00:00.000000000 +0100
+++ python-botocore-1.40.72+repack/debian/patches/0002-pin-compresslevel-9.patch	2026-10-26 00:19:14.000000000 +0100
@@ -0,0 +1,34 @@
+commit 2c238cfebcb8d9151df52d7715c5c229b10f42bf
+Author: jonathan343 <43360731+jonathan343@users.noreply.github.com>
+Date:   Thu Feb 12 19:55:58 2026 -0500
+
+    Start testing Python 3.15 Alpha (#3628)
+    
+    Add Python 3.15-dev to the GitHub Actions matrices for run-tests and run-crt-test to catch compatibility issues early without claiming official support.
+    
+    Set PYO3_USE_ABI3_FORWARD_COMPATIBILITY=1 only for the 3.15-dev matrix jobs to avoid prerelease install failures from PyO3-based dependencies.
+    
+    Update tests/unit/test_compress.py test helpers to pin compresslevel=9 (with mtime fixed) so gzip byte-for-byte fixtures stay stable across Python versions, including 3.15.
+
+diff --git a/tests/unit/test_compress.py b/tests/unit/test_compress.py
+index c149d7c6b..8a4b9f626 100644
+--- a/tests/unit/test_compress.py
++++ b/tests/unit/test_compress.py
+@@ -107,11 +107,17 @@ def request_dict_non_seekable_bytes_stream():
+ class StaticGzipFile(gzip.GzipFile):
+     def __init__(self, *args, **kwargs):
+         kwargs['mtime'] = 1
++        # Python 3.15 changed default gzip header output; pin level so these
++        # tests remain byte-stable across runtimes.
++        kwargs['compresslevel'] = 9
+         super().__init__(*args, **kwargs)
+ 
+ 
+ def static_compress(*args, **kwargs):
+     kwargs['mtime'] = 1
++    # Python 3.15 changed default gzip header output; pin level so these
++    # tests remain byte-stable across runtimes.
++    kwargs['compresslevel'] = 9
+     return gzip.compress(*args, **kwargs)
+ 
+ 
diff -Nru python-botocore-1.40.72+repack/debian/patches/series python-botocore-1.40.72+repack/debian/patches/series
--- python-botocore-1.40.72+repack/debian/patches/series	2025-11-13 09:18:24.000000000 +0100
+++ python-botocore-1.40.72+repack/debian/patches/series	2026-10-26 00:19:41.000000000 +0100
@@ -1 +1,2 @@
 0001-Don-t-use-duplicated-modules.patch
+0002-pin-compresslevel-9.patch

--OhIrgaL6oX46fWdn--
Technical Details
Message-ID: <NSfP3-7Slj-1@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
References: <NvdCF-cHna-1@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Bastian Germann <bage@debian.org>
Newsgroups: linux.debian.bugs.rc
Subject: Bug#1145153: python-botocore: FTBFS building against python 3.15
Date: Mon, 26 Oct 2026 00:30:01 +0100
Message-ID: <NSfP3-7Slj-1@gated-at.bofh.it>
References: <NvdCF-cHna-1@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-rc-request@lists.debian.org  Sun Oct 25 23:29:11 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.7
Reply-To: Bastian Germann <bage@debian.org>, 1145153@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: debian-cloud@lists.debian.org
X-Debian-Pr-Message: followup 1145153
X-Debian-Pr-Package: src:python-botocore
X-Debian-Pr-Keywords: ftbfs patch forky sid
X-Debian-Pr-Source: python-botocore
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="OhIrgaL6oX46fWdn"
Content-Disposition: inline
X-Debian-User: bage
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-rc@lists.debian.org> archive/latest/836138
List-ID: <debian-bugs-rc.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-rc/>
Approved: robomod@news.nic.it
Lines: 115
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Mon, 26 Oct 2026 00:26:34 +0100
X-Original-Message-ID: <at6QKjrAJwMBWJdF@duagon-BXN3S64.localdomain>
X-Original-References: <aorK1O6qjOWu4o4d@hecuba.gnuservers.com.ar>