app-crypt/gnupg: drop virtual/mta requirement due to stage3 impact
authorRobin H. Johnson <robbat2@gentoo.org>
Sun, 28 Apr 2019 20:50:52 +0000 (13:50 -0700)
committerRobin H. Johnson <robbat2@gentoo.org>
Sun, 28 Apr 2019 21:03:43 +0000 (14:03 -0700)
commitc6f1c2b40e99605ac42b97c0ad9376d91d0504ff
tree5d5036e3265a608502062668ebe8f86d8501e699
parentbb4f5939c8c9535131f9a5f7af3c8261f9eedde2
app-crypt/gnupg: drop virtual/mta requirement due to stage3 impact

In the previous fix for bug 648606, virtual/mta was made a hard DEPEND
of gnupg. This has the side-effect of adding the default virtual/mta
(nullmailer) and the default virtual/logger (app-admin/metalog) to all
stage3 builds.

As a better fix, ensure the path to the mailprog is hardcoded and does
not depend on the presence of the virtual/mta package, using
/usr/libexec/sendmail, as that's what is provided by all virtual/mta
providers.

Thereafter, drop the direct virtual/mta dependency and add a
pkg_postinst describing the tiny piece of functionality that depends on
the presence of virtual/mta: 'gpg-wks-client --send'
'gpg-wks-server' also uses virtual/mta, but is already behind a USE
flag, so ensure it's present there instead.

See-Also: https://bugs.gentoo.org/648606
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
app-crypt/gnupg/gnupg-2.2.15-r1.ebuild [new file with mode: 0644]