[Pkg-gnupg-maint] shipping example gpgconf.conf in gnupg2?
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Fri Nov 7 20:36:32 UTC 2014
by default, in debian we don't ship any file as
/etc/gnupg2/gpgconf.conf. we do ship an example in
/usr/share/doc/gnupg2/examples/gpgconf.conf
However, this means that an error is produced here:
0 dkg at alice:~$ gpgconf --list-config
gpgconf: can not open global config file '/etc/gnupg2/gpgconf.conf': No
such file or directory
1 dkg at alice:~$
note the non-zero return value.
The example file itself is all commented out, and if it is placed in the
given directory, the process returns 0 and emits nothing on stdout.
What do folks think a reasonable thing to do is?
0) continue as currently done: no /etc/gnupg2/gpgconf.conf at all
1) ship an empty file in /etc/gnupg2/gpgconf.conf as a configfile
2) ship the example file (all commented-out) in
/etc/gnupg2/gpgconf.conf as a configfile
3) consider modifying gpgconf --list-config to treat a missing file
like an empty file (this probably would require poking upstream about it).
I'm currently tempted to just carry on with (0), and acknowledge that
gpgconf --list-config *should* return an error if the config file
doesn't exist. this saves us the grief of maintaining a configfile in
the package, and of considering poking upstream about it. I'm also
thinking ahead to a day when gpg2 might become the stock gpg, and the
extra hassle of moving a configfile from /etc/gnupg2/ to /etc/gnupg/
otoh, i can't help but think that it's somehow shirking our
responsibility as packagers to do (0), so i'm kind of leaning toward (2)
instead. That way, people who modify the gpgconf.conf configfile will
at least get notifications when the default changes on upgrade, etc.
what do y'all think? I'm unlikely to change from the status quo unless
people have opinions, but i wanted to float the question anyway.
--dkg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnupg-maint/attachments/20141107/9db52162/attachment.sig>
More information about the Pkg-gnupg-maint
mailing list