#1036963 argparse-manpage doesn't run unless python3-setuptools is installed

#1036963#5
Date:
2023-04-07 20:14:44 UTC
From:
To:
Hi,

sasl-xoauth2/experimental FTBFS on all architectures:
https://buildd.debian.org/status/package.php?p=sasl-xoauth2&suite=experimental

...
   debian/rules execute_after_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
mkdir -p completions manpages
register-python-argcomplete --shell bash sasl-xoauth2-tool > completions/sasl-xoauth2-tool
argparse-manpage --pyfile obj-x86_64-linux-gnu/scripts/sasl-xoauth2-tool --object parser \
	--author 'Tarick Bedeir' --author-email 'tarick@bedeir.com' --project-name sasl-xoauth2 \
	--url https://github.com/tarickb/sasl-xoauth2 --output manpages/sasl-xoauth2-tool.1
Traceback (most recent call last):
  File "/usr/bin/argparse-manpage", line 5, in <module>
    from build_manpages.cli import main
  File "/usr/lib/python3/dist-packages/build_manpages/cli/__init__.py", line 5, in <module>
    from build_manpages.build_manpage import ManPageWriter, get_parser
  File "/usr/lib/python3/dist-packages/build_manpages/build_manpage.py", line 10, in <module>
    from distutils.core import Command
ModuleNotFoundError: No module named 'distutils.core'
make[1]: *** [debian/rules:11: execute_after_dh_auto_build] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:6: binary-arch] Error 2
...


Andreas

#1036963#10
Date:
2023-05-30 22:34:24 UTC
From:
To:
Control: clone 1034065 -1
Control: reassign -1 python3-argparse-manpage
Control: affects -1 src:sasl-xoauth2
Control: retitle -1 argparse-manpage doesn't run unless python3-setuptools is installed


I think this represents a missing dependency in
python3-argparse-manpage, which makes packages that build-depend on
python3-argparse-manpage to generate their manpages FTBFS.

#1036963#25
Date:
2023-05-31 04:06:03 UTC
From:
To:
Control: reassign -1 src:argparse-manpage
Control: found -1 argparse-manpage/1.2.2-1
Control: tags -1 patch sid bookworm
Control: severity -1 important
Control: affects -1 src:sasl-xoauth2 src:osm2pgsql

distutils was removed from setuptools 60:


https://setuptools.pypa.io/en/latest/deprecated/distutils-legacy.html#prefer-setuptools

Upstream dealt with this in v4:


https://github.com/praiskup/argparse-manpage/commit/3e10dac5702915b9b92fdc686bad690c1b15bf61

The package is still at 1.2.2, quite a way behind to simply cherry-pick
those changes.

I'm lowering the severity, because the package is not entirely unusable,
the osm2psql package uses it during the build to generate a manpage for
osm2pgsql-replication which still works because it uses selective imports:

  from build_manpages.manpage import Manpage
  from build_manpages.build_manpage import get_parser_from_file

Only the the build_manpage class is broken because it subclasses
distutils.Command and raises DistutilsOptionError.

The attached patch replaces the distutils imports with those for
setuptools, except the DistutilsOptionError exception which is replaced
with plain Exception.

Kind Regards,

Bas

#1036963#42
Date:
2024-02-15 05:19:03 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
argparse-manpage, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1036963@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Timo Aaltonen <tjaalton@debian.org> (supplier of updated argparse-manpage package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Thu, 15 Feb 2024 07:00:15 +0200
Source: argparse-manpage
Built-For-Profiles: noudeb
Architecture: source
Version: 4.5-1
Distribution: unstable
Urgency: medium
Maintainer: Debian FreeIPA Team <pkg-freeipa-devel@lists-alioth.debian.net>
Changed-By: Timo Aaltonen <tjaalton@debian.org>
Closes: 1031843 1036963
Changes:
 argparse-manpage (4.5-1) unstable; urgency=medium
 .
   [ Debian Janitor ]
   * Update watch file format version to 4.
   * Use secure URI in Homepage field.
   * Bump debhelper from old 12 to 13.
   * Set debhelper-compat version in Build-Depends.
   * Set upstream metadata fields: Bug-Database, Bug-Submit, Contact,
     Repository-Browse.
   * Update standards version to 4.6.1, no changes needed.
 .
   [ Timo Aaltonen ]
   * New upstream release. (Closes: #1031843, #1036963)
Checksums-Sha1:
 7fb6abadc1345f8e0d42cd290405ef2781de7fed 2066 argparse-manpage_4.5-1.dsc
 6c99adc5ae73a1ff54d6fc14cdfa16843e77ca4b 54783 argparse-manpage_4.5.orig.tar.gz
 0f1e639cda870360ef9c3b011c39b7a7b4c76a05 1644 argparse-manpage_4.5-1.debian.tar.xz
 7835f6cfd1449dc48a7d0f5134f18cd0b3d6a0d4 7572 argparse-manpage_4.5-1_source.buildinfo
Checksums-Sha256:
 eb0ef5ed5defc1627727fe037108c162c0c90a6de3f1fd8976377e855dbd01a1 2066 argparse-manpage_4.5-1.dsc
 f958043adb5542c5b2b137f60b4b796f045c2008600dca0e44dc912a3dc0ce21 54783 argparse-manpage_4.5.orig.tar.gz
 71e14699524e1dc44a7982390a4103c33881b08c2f94c292afdd61f665bcc69d 1644 argparse-manpage_4.5-1.debian.tar.xz
 f2d4553532e14db54d76cf5c0d7c8791a486ab370201518b26290b2e8f9344ff 7572 argparse-manpage_4.5-1_source.buildinfo
Files:
 8bc88bde0ed9cf15415c3c15412d0643 2066 python optional argparse-manpage_4.5-1.dsc
 ced82cc56809c873e76c3b233e0e7bca 54783 python optional argparse-manpage_4.5.orig.tar.gz
 084bd2487527b293fe9a0a0849352d61 1644 python optional argparse-manpage_4.5-1.debian.tar.xz
 d8123618a92cd92a10709941f2a728d4 7572 python optional argparse-manpage_4.5-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEdS3ifE3rFwGbS2Yjy3AxZaiJhNwFAmXNmnEACgkQy3AxZaiJ
hNzFMQ//VLdhe0S6417MjFSTYbrO0hEDWLQPjLGPDKMuaqCW1Dt0u3IcbxUmOnTJ
yvczJEBqDZXXhPw+MI/k/ItuAoxqWi7S0NiBqJtjnQzxRrxzECAbFYKVLOx3/Yaf
WKcW3gnbS1fmPLVtiwNtKaMl9BjqGx0nXpDNUoemd8v9E0cNRR2pBsiXLl4qS0zq
Y5SNUkZqiD1itVHZjFYLsVOuBaXXuYRR1F+PMTf7rqXsAPBk0C8e13pueEQG8ucX
u1yxw33oN57pPb7H04U6MfiwVZb33a1R0maPEjh/8FgVjdfIvgX2jeb8lOL9uEoa
r26UwqwLzSif9zqbYC+izPA+MkNxzzMPpEDrKDz724YebVI0fr1RzWpSs7G6UCH5
lmoIye2gEeRsGatrHb0whOpnPV4KNjI1mQabw4g3u0/NZynGuCElhNAdwG75QCWp
Er0Ey5tLU/y3KYMhS9ZwDIqzNED8wBIg+0no/vmYoLz13twG9BDVktOvjWjv8lqx
l+IZL5VFROZIvXuRDXNiyPq+/qL4RjYyr8M5BRqUijXpv5QLvXD0ZluPJ4FLIv5q
pO8dkuZxMH/jQsxBolQba0dXTld6XNZuA0Vx0L+2FO53T4Dudi6jiZaOX6WWCwIk
bVcqp7LeDoeXzFxpb0I10xJsmaD9T5WqEeJaTGYdR7O99Qx0Lnk=
=cBVB
-----END PGP SIGNATURE-----