On 2026-10-24, Vagrant Cascadian wrote:
> On 2026-09-02, Maximiliano Curia wrote:
>> While rebuilding the python related packages against the Python 3.15rc1
>> version we found that argparse-manpage fails to build from source [1]. 
>>
>> I found that the fix had already been done upstream with Commit 412123f
>> [2].
> ...
>> [1]: https://debusine.debian.net/debian/r-python-python3.15/artifact/4318921/
>> [2]: 
>> https://github.com/praiskup/argparse-manpage/commit/412123f4420b1f0ab69d1d7b2689f89b27a5466d
>> [3]: https://debusine.debian.net/debian/r-python-python3.15/
...
> I would like to perform an NMU soon fixing this issue (patch attached);
> are there any outstanding concerns?

I have uploaded an NMU to DELAYED/2, debdiff attached.

Also submitted a merge request:

  https://salsa.debian.org/freeipa-team/argparse-manpage/-/merge_requests/3

live well,
  vagrant
diff -Nru argparse-manpage-4.7/debian/changelog 
argparse-manpage-4.7/debian/changelog
--- argparse-manpage-4.7/debian/changelog       2026-10-14 11:46:01.000000000 
-0700
+++ argparse-manpage-4.7/debian/changelog       2026-10-26 15:27:03.000000000 
-0700
@@ -1,3 +1,11 @@
+argparse-manpage (4.7-1.2) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * debian/patches: Apply fixes from upstream to build with python 3.15
+    (Closes: #1146529)
+
+ -- Vagrant Cascadian <[email protected]>  Mon, 26 Oct 2026 
15:27:03 -0700
+
 argparse-manpage (4.7-1.1) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -Nru argparse-manpage-4.7/debian/patches/series 
argparse-manpage-4.7/debian/patches/series
--- argparse-manpage-4.7/debian/patches/series  2026-10-14 11:42:07.000000000 
-0700
+++ argparse-manpage-4.7/debian/patches/series  2026-10-24 15:48:19.000000000 
-0700
@@ -1 +1,3 @@
 0001-argparse_manpage-compat.py-Use-utcfromtimestamp-for-.patch
+upstream/0001-Changed-super-HelpFormatter-self-.__init__-to-super-.patch
+upstream/0002-Changed-super-call-to-the-explicit-version-for-capat.patch
diff -Nru 
argparse-manpage-4.7/debian/patches/upstream/0001-Changed-super-HelpFormatter-self-.__init__-to-super-.patch
 
argparse-manpage-4.7/debian/patches/upstream/0001-Changed-super-HelpFormatter-self-.__init__-to-super-.patch
--- 
argparse-manpage-4.7/debian/patches/upstream/0001-Changed-super-HelpFormatter-self-.__init__-to-super-.patch
        1969-12-31 16:00:00.000000000 -0800
+++ 
argparse-manpage-4.7/debian/patches/upstream/0001-Changed-super-HelpFormatter-self-.__init__-to-super-.patch
        2026-10-24 15:41:23.000000000 -0700
@@ -0,0 +1,26 @@
+From 05f8260e3e715cc6cf59aeb91adc90e66b0e2b19 Mon Sep 17 00:00:00 2001
+From: Alex Muir <[email protected]>
+Date: Sat, 16 May 2026 02:20:21 -0700
+Subject: [PATCH 1/2] Changed super(HelpFormatter, self).__init__() to
+ super().__init__(prog)
+
+---
+ argparse_manpage/manpage.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/argparse_manpage/manpage.py b/argparse_manpage/manpage.py
+index b8b344c..dcb7ec1 100644
+--- a/argparse_manpage/manpage.py
++++ b/argparse_manpage/manpage.py
+@@ -362,7 +362,7 @@ def quoted(text):
+ 
+ class _ManpageFormatter(HelpFormatter):
+     def __init__(self, prog, old_formatter, format):
+-        super(HelpFormatter, self).__init__()
++        super().__init__(prog)
+         self._prog = prog
+         self.of = old_formatter
+         assert format in ("pretty", "single-commands-section")
+-- 
+2.47.3
+
diff -Nru 
argparse-manpage-4.7/debian/patches/upstream/0002-Changed-super-call-to-the-explicit-version-for-capat.patch
 
argparse-manpage-4.7/debian/patches/upstream/0002-Changed-super-call-to-the-explicit-version-for-capat.patch
--- 
argparse-manpage-4.7/debian/patches/upstream/0002-Changed-super-call-to-the-explicit-version-for-capat.patch
        1969-12-31 16:00:00.000000000 -0800
+++ 
argparse-manpage-4.7/debian/patches/upstream/0002-Changed-super-call-to-the-explicit-version-for-capat.patch
        2026-10-24 15:41:23.000000000 -0700
@@ -0,0 +1,26 @@
+From 412123f4420b1f0ab69d1d7b2689f89b27a5466d Mon Sep 17 00:00:00 2001
+From: Alex Muir <[email protected]>
+Date: Mon, 18 May 2026 19:50:24 -0700
+Subject: [PATCH 2/2] Changed super call to the explicit version for
+ capatability with python 2 and 3
+
+---
+ argparse_manpage/manpage.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/argparse_manpage/manpage.py b/argparse_manpage/manpage.py
+index dcb7ec1..828b4c2 100644
+--- a/argparse_manpage/manpage.py
++++ b/argparse_manpage/manpage.py
+@@ -362,7 +362,7 @@ def quoted(text):
+ 
+ class _ManpageFormatter(HelpFormatter):
+     def __init__(self, prog, old_formatter, format):
+-        super().__init__(prog)
++        super(_ManpageFormatter, self).__init__(prog)
+         self._prog = prog
+         self.of = old_formatter
+         assert format in ("pretty", "single-commands-section")
+-- 
+2.47.3
+

Attachment: signature.asc
Description: PGP signature

Reply via email to