#1058702 pius fails completely on bookworm and up

#1058702#5
Date:
2023-12-14 19:32:45 UTC
From:
To:
I've been trying to use pius to sign things, and it's completely
failing me:

anarcat@angela:~$ pius -s BBB6CD4C98D74E1358A752A602293A6FA4E53473  D477040C70C2156A5C298549BB7E9101495E6BF7
Welcome to PIUS, the PGP Individual UID Signer.

Usage: pius [options] -s <signer_keyid> <keyid> [<keyid> ...]
       pius [options] -A -r <keyring_path> -s <signer_keyid>

pius: error: GnuPG binary not found at /usr/bin/gpg2.

gpg2 hasn't been around for a long time. but maybe we can work around
this with:

anarcat@angela:~[2]$ pius -b /usr/bin/gpg -s BBB6CD4C98D74E1358A752A602293A6FA4E53473  D477040C70C2156A5C298549BB7E9101495E6BF7
Welcome to PIUS, the PGP Individual UID Signer.

Usage: pius [options] -s <signer_keyid> <keyid> [<keyid> ...]
       pius [options] -A -r <keyring_path> -s <signer_keyid>

pius: error: Keyring /home/anarcat/.gnupg/pubring.gpg doesn't exist

Nope! That doesn't work either! I have not dared to use the --keyring
argument to correct `.gnupg/pubring.kbx` keyring, for fear of
corruption, but clearly something is wrong here.

#1058702#10
Date:
2023-12-14 19:52:02 UTC
From:
To:
On Thu, 14 Dec 2023 14:32:45 -0500 Antoine Beaupre <anarcat@debian.org>
wrote:> pius: error: GnuPG binary not found at /usr/bin/gpg2.

Yeah I would also like like to see this patched.

FWIW I've used --keyring and it didn't seem to corrupt the keyring or do
anything bad, but you can also test it yourself on a copy of your
keyring, the signatures thus produces will be just as valid.

Another thing that would be nice to fix upstream, or in the package at
least.

#1058702#13
Date:
2024-01-07 04:09:37 UTC
From:
To:
Hello,

Bug #1058702 in pius reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/python-team/packages/pius/-/commit/f6627368ab01b327a3f3a2d6d7a18391b071ce74
------------------------------------------------------------------------
d/patches: add 0003 to use more modern gpg defaults. (Closes: #1058702)
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1058702

#1058702#20
Date:
2024-01-07 04:20:26 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
pius, 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 1058702@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Louis-Philippe Véronneau <pollo@debian.org> (supplier of updated pius 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: Sat, 06 Jan 2024 23:04:33 -0500
Source: pius
Architecture: source
Version: 3.0.0-7
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Louis-Philippe Véronneau <pollo@debian.org>
Closes: 1058702
Changes:
 pius (3.0.0-7) unstable; urgency=medium
 .
   * d/patches: add 0003 to use more modern gpg defaults. (Closes: #1058702)
   * d/control: replace custom autopkgtest by autopkgtest-pkg-pybuild.
Checksums-Sha1:
 ccaf7ddd2a918d123282cc4c138e5f5c687c6df4 1567 pius_3.0.0-7.dsc
 cc4fc89bdfd98c575965487d9be535fdf359e4d8 9400 pius_3.0.0-7.debian.tar.xz
 6301009afca252ed4f1287f58e75fd5eaa26f26d 6474 pius_3.0.0-7_amd64.buildinfo
Checksums-Sha256:
 1b0d4ceafaaf919d20250ac16ba762232ab9099406bc91c40b0c46b9e33c6f76 1567 pius_3.0.0-7.dsc
 2d87968b9cc424bdc175bc1dcc5d41553a5229a1a2c3582d18683c752a78d3ec 9400 pius_3.0.0-7.debian.tar.xz
 41a3d959aa5db357611205b65f21ac940fca2851d571205cdd483d21995b521a 6474 pius_3.0.0-7_amd64.buildinfo
Files:
 378fd59df6c0633e6ef70904294018a6 1567 utils optional pius_3.0.0-7.dsc
 268743f5db04ed6057ece20b6c000350 9400 utils optional pius_3.0.0-7.debian.tar.xz
 b480cf4635ef37344574ad723788311d 6474 utils optional pius_3.0.0-7_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQTKp0AHB6gWsCAvw830JXpQshz6hQUCZZojxgAKCRD0JXpQshz6
hX/aAQCxFnMmoe+DAsxSPJNN4krfNBac4JIo0NA5hLb2VJgsxAEA3QUpBWHxhg3V
fXq5mJymTyi8rz069AR140zaKHsiiQg=
=HKRB
-----END PGP SIGNATURE-----