🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.rc
2 messages
2 total messages Started by Vagrant Cascadian Sat, 24 Oct 2026 23:40
Bug#1146529: argparse-manpage: FTBFS against python 3.15rc1
#1651
Author: Vagrant Cascadian
Date: Sat, 24 Oct 2026 23:40
126 lines
7113 bytes
--=-=-=
Content-Type: text/plain

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

--=-=-=
Content-Type: text/plain
Content-Disposition: inline; filename=argparse-manpage.fix-ftbfs-1146529.txt

commit 66216163cc8a6f06c147035bf08aa12aef7e2e0c
Author: Vagrant Cascadian <vagrant@reproducible-builds.org>
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 <wamuir1212@protonmail.com>
+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 <wamuir1212@protonmail.com>
+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
+

--=-=-=--
Bug#1146529: argparse-manpage: FTBFS against python 3.15rc1
#1795
Author: Vagrant Cascadian
Date: Mon, 26 Oct 2026 22:50
151 lines
7689 bytes
--==-=-=
Content-Type: multipart/mixed; boundary="=-=-="

--=-=-=
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

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].=20
>>
>> 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/431=
8921/
>> [2]: https://github.com/praiskup/argparse-manpage/commit/412123f4420b1f0=
ab69d1d7b2689f89b27a5466d
>> [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

--=-=-=
Content-Type: text/plain
Content-Disposition: inline; filename=argparse-manpage_4.7-1.2.debdiff.txt
Content-Transfer-Encoding: quoted-printable

diff -Nru argparse-manpage-4.7/debian/changelog argparse-manpage-4.7/debian=
/changelog
=2D-- 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 -07=
00
@@ -1,3 +1,11 @@
+argparse-manpage (4.7-1.2) unstable; urgency=3Dmedium
+
+  * Non-maintainer upload.
+  * debian/patches: Apply fixes from upstream to build with python 3.15
+    (Closes: #1146529)
+
+ -- Vagrant Cascadian <vagrant@reproducible-builds.org>  Mon, 26 Oct 2026 =
15:27:03 -0700
+
 argparse-manpage (4.7-1.1) unstable; urgency=3Dmedium
=20
   * Non-maintainer upload.
diff -Nru argparse-manpage-4.7/debian/patches/series argparse-manpage-4.7/d=
ebian/patches/series
=2D-- argparse-manpage-4.7/debian/patches/series	2026-10-14 11:42:07.000000=
000 -0700
+++ argparse-manpage-4.7/debian/patches/series	2026-10-24 15:48:19.00000000=
0 -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-H=
elpFormatter-self-.__init__-to-super-.patch argparse-manpage-4.7/debian/pat=
ches/upstream/0001-Changed-super-HelpFormatter-self-.__init__-to-super-.pat=
ch
=2D-- argparse-manpage-4.7/debian/patches/upstream/0001-Changed-super-HelpF=
ormatter-self-.__init__-to-super-.patch	1969-12-31 16:00:00.000000000 -0800
+++ argparse-manpage-4.7/debian/patches/upstream/0001-Changed-super-HelpFor=
matter-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 <wamuir1212@protonmail.com>
+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):
+=20
+ class _ManpageFormatter(HelpFormatter):
+     def __init__(self, prog, old_formatter, format):
+-        super(HelpFormatter, self).__init__()
++        super().__init__(prog)
+         self._prog =3D prog
+         self.of =3D old_formatter
+         assert format in ("pretty", "single-commands-section")
+--=20
+2.47.3
+
diff -Nru argparse-manpage-4.7/debian/patches/upstream/0002-Changed-super-c=
all-to-the-explicit-version-for-capat.patch argparse-manpage-4.7/debian/pat=
ches/upstream/0002-Changed-super-call-to-the-explicit-version-for-capat.pat=
ch
=2D-- 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 <wamuir1212@protonmail.com>
+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):
+=20
+ class _ManpageFormatter(HelpFormatter):
+     def __init__(self, prog, old_formatter, format):
+-        super().__init__(prog)
++        super(_ManpageFormatter, self).__init__(prog)
+         self._prog =3D prog
+         self.of =3D old_formatter
+         assert format in ("pretty", "single-commands-section")
+--=20
+2.47.3
+

--=-=-=--

--==-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCat/XVwAKCRDcUY/If5cW
qjTDAQD8nGW8/0pBfasy45sxS1KZUm3J/wMH6NhYXJvvqFM95AEAy3mKJ3O/eDHe
2rQQ5GbafZH9kzVgEOahbpDFohlamgA=
=5AB8
-----END PGP SIGNATURE-----
--==-=-=--
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads