diff options
author | Haris Okanovic <haris.okanovic@ni.com> | 2019-11-07 16:04:19 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-11-10 14:06:10 +0000 |
commit | 1792105f9e9298aeec4562f20313f8e05b7226a6 (patch) | |
tree | db4db1a6a197c54b0ed2bb3a00eb8536ceca6952 /meta/recipes-support | |
parent | b3271b42c31e65b4f942c2063ffd59f9c855c32d (diff) | |
download | poky-1792105f9e9298aeec4562f20313f8e05b7226a6.tar.gz |
gnupg: Split gpg and gpg-agent into a minimal gnupg-gpg package
Add minimal "gnupg-gpg" package containing just enough binaries to run
gpg and gpg-agent. Add dependency in normal "gnupg" package to preserve
old behavior.
Some applications like opkg don't need all functionality provided by
normal gnupg installations. This minimal package provides just enough
functionality to verify and manage keys in opkg, in order to minimize
disk overhead.
(From OE-Core rev: 6686c64ad30481d4d67af6a7b9bec7e7ae1a83fe)
Signed-off-by: Haris Okanovic <haris.okanovic@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support')
-rw-r--r-- | meta/recipes-support/gnupg/gnupg_2.2.17.bb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/meta/recipes-support/gnupg/gnupg_2.2.17.bb b/meta/recipes-support/gnupg/gnupg_2.2.17.bb index 689cf8a75e..ab19a1ad11 100644 --- a/meta/recipes-support/gnupg/gnupg_2.2.17.bb +++ b/meta/recipes-support/gnupg/gnupg_2.2.17.bb | |||
@@ -29,6 +29,21 @@ EXTRA_OECONF = "--disable-ldap \ | |||
29 | --with-readline=${STAGING_LIBDIR}/.. \ | 29 | --with-readline=${STAGING_LIBDIR}/.. \ |
30 | --enable-gpg-is-gpg2 \ | 30 | --enable-gpg-is-gpg2 \ |
31 | " | 31 | " |
32 | |||
33 | # A minimal package containing just enough to run gpg+gpgagent (E.g. use gpgme in opkg) | ||
34 | PACKAGES =+ "${PN}-gpg" | ||
35 | FILES_${PN}-gpg = " \ | ||
36 | ${bindir}/gpg \ | ||
37 | ${bindir}/gpg2 \ | ||
38 | ${bindir}/gpg-agent \ | ||
39 | " | ||
40 | |||
41 | # Normal package (gnupg) should depend on minimal package (gnupg-gpg) | ||
42 | # to ensure all tools are included. This is done only in non-native | ||
43 | # builds. Native builds don't have sub-packages, so appending RDEPENDS | ||
44 | # in this case breaks recipe parsing. | ||
45 | RDEPENDS_${PN} += "${@ "" if ("native" in d.getVar("PN")) else (d.getVar("PN") + "-gpg")}" | ||
46 | |||
32 | RRECOMMENDS_${PN} = "pinentry" | 47 | RRECOMMENDS_${PN} = "pinentry" |
33 | 48 | ||
34 | do_configure_prepend () { | 49 | do_configure_prepend () { |