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/
...
> diff --git a/argparse_manpage/manpage.py b/argparse_manpage/manpage.py
> index 0be0328..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(HelpFormatter, self).__init__()
> +        super(_ManpageFormatter, self).__init__(prog)
>          self._prog = prog
>          self.of = old_formatter
>          assert format in ("pretty", "single-commands-section")

This patch looks like a combination of two upstream patches:

  412123f4420b1f0ab69d1d7b2689f89b27a5466d Changed super call to the explicit 
version for capatability with python 2 and 3
  05f8260e3e715cc6cf59aeb91adc90e66b0e2b19 Changed super(HelpFormatter, 
self).__init__() to super().__init__(prog)

I can confirm that applying the patch(es) fixes the issue.

I would like to perform an NMU soon fixing this issue (patch attached);
are there any outstanding concerns?

live well,
  vagrant
commit 66216163cc8a6f06c147035bf08aa12aef7e2e0c
Author: Vagrant Cascadian <[email protected]>
Date:   Sat Oct 24 16:11:33 2026 -0700

    debian/patches: Apply fixes from upstream to build with python 3.15
    (Closes: #1146529)

diff --git a/debian/patches/series b/debian/patches/series
index a91395d..0fcce81 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -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 --git 
a/debian/patches/upstream/0001-Changed-super-HelpFormatter-self-.__init__-to-super-.patch
 
b/debian/patches/upstream/0001-Changed-super-HelpFormatter-self-.__init__-to-super-.patch
new file mode 100644
index 0000000..99bc41b
--- /dev/null
+++ 
b/debian/patches/upstream/0001-Changed-super-HelpFormatter-self-.__init__-to-super-.patch
@@ -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 --git 
a/debian/patches/upstream/0002-Changed-super-call-to-the-explicit-version-for-capat.patch
 
b/debian/patches/upstream/0002-Changed-super-call-to-the-explicit-version-for-capat.patch
new file mode 100644
index 0000000..48acb5e
--- /dev/null
+++ 
b/debian/patches/upstream/0002-Changed-super-call-to-the-explicit-version-for-capat.patch
@@ -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
+

Reply via email to