Article View: linux.debian.bugs.rc
Article #1651Bug#1146529: argparse-manpage: FTBFS against python 3.15rc1
From: Vagrant Cascadian
Date: Sat, 24 Oct 2026 23:40
Date: Sat, 24 Oct 2026 23:40
126 lines
7113 bytes
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
+
--=-=-=--
Technical Details
Message-ID:
<NRTvb-7Gtu-3@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!nntp.club.cc.cmu.edu!144.76.237.92.MISMATCH!3.eu.feeder.erje.net!feeder.erje.net!weretis.net!feeder8.news.weretis.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodReferences:
<NyZhL-eOrr-9@gated-at.bofh.it> <NyZhL-eOrr-9@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!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!nntp.club.cc.cmu.edu!144.76.237.92.MISMATCH!3.eu.feeder.erje.net!feeder.erje.net!weretis.net!feeder8.news.weretis.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Vagrant Cascadian <vagrant@reproducible-builds.org> Newsgroups: linux.debian.bugs.rc Subject: Bug#1146529: argparse-manpage: FTBFS against python 3.15rc1 Date: Sun, 25 Oct 2026 01:40:01 +0200 Message-ID: <NRTvb-7Gtu-3@gated-at.bofh.it> References: <NyZhL-eOrr-9@gated-at.bofh.it> <NyZhL-eOrr-9@gated-at.bofh.it> X-Original-To: Maximiliano Curia <maxy@debian.org>, 1146529@bugs.debian.org X-Mailbox-Line: From debian-bugs-rc-request@lists.debian.org Sat Oct 24 23:33:24 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.45 Reply-To: Vagrant Cascadian <vagrant@reproducible-builds.org>, 1146529@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: pkg-freeipa-devel@alioth-lists.debian.net X-Debian-Pr-Message: followup 1146529 X-Debian-Pr-Package: src:argparse-manpage X-Debian-Pr-Keywords: forky ftbfs patch sid X-Debian-Pr-Source: argparse-manpage MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Greylist: delayed 835 seconds by postgrey-1.37 at buxtehude; Sat, 24 Oct 2026 23:30:45 UTC X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-rc@lists.debian.org> archive/latest/835956 List-ID: <debian-bugs-rc.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-rc/> Approved: robomod@news.nic.it Lines: 126 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: debian-python@lists.debian.org, vagrant@reproducible-builds.org X-Original-Date: Sat, 24 Oct 2026 16:16:40 -0700 X-Original-Message-ID: <87mrs2u1t3.fsf@wireframe> X-Original-References: <aph-dV2LaBMJmRNG@hecuba.gnuservers.com.ar> <aph-dV2LaBMJmRNG@hecuba.gnuservers.com.ar> X-Received-Bytes: 6859