XPost: news.software.nntp
Hi Richard,
I think it would be better if there was runtime configuration
controlling the gpg command to use and any options required
(e.g. --allow-weak-digest-algos), rather than trying to work it out in
configure.
That's a good idea. Do you mean flags to pass to perl-nocem? For
instance by setting up the channel feed this way:
I was thinking of pgpverify but it applies to anything in INN that uses
pgp.
pgpverify is only used for control articles (it is called by
controlchan); perl-nocem does the verification on its own.
Looking again at this thread, I am unsure adding more runtime
configuration would solve the problem. I would like to understand more
the use cases behind that.
Regarding the path to the GnuPG binaries, there's already the
possibility to override them without touching shipped files.
I remember having added a long time ago the possibility to modify the
variables set by INN::Config. If an executable Perl script named innshellvars.pl.local is present in <pathetc>, it will be run.
So one could force in <pathetc>/innshellvars.pl.local:
$gpgv = '/usr/local/bin/gpgv2';
$gpg = '/usr/local/bin/gpg2';
and GnuPG 2 will be used.
The Doctor, could you please try that and confirm NoCeM notices now work
for you? Otherwise, something else should be fixed first. I really
doubt the problem comes from the version of GnuPG as nono's notices from pasdenom.info are signed with a PGP key compatible with GnuPG 1.
And regarding the possibility to control the options given to GnuPG, why
an end user should change the defaults which are working? Do you have different options in mind that should be used? (One may break pgpverify
if for instance he removes --status-fd=1 or --logger-fd=1 from the
passed options.)
Packaged versions of INN should already have the right options (tested
by their maintainers, in coherence with the GnuPG version(s) in the distribution). Anyway, if a new version of GnuPG changes things, it
could be a bug to fix in pgpverify or perl-nocem as for instance the
GnuPG output may change and no longer be rightly parsable. This cannot
be handled with options so the underlying problem will still be here and
not solved...
--
Julien ÉLIE
« Le mariage et la mort sont tous les deux souhaitables : l'un promet le
bonheur, l'autre le garantit. » (Mark Twain)
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)