summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2020-01-06 18:30:32 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-02-15 22:42:14 +0000
commit69552188ea571dca29e07a58e88460d776e16f1e (patch)
tree6b8b6cac8120653ab259282d328ac56c9875035b /meta/recipes-support
parentfada4ed4c08e3e98ea4d789f9cf1dff887e65313 (diff)
downloadpoky-69552188ea571dca29e07a58e88460d776e16f1e.tar.gz
gnupg: Read GNUPG_BINDIR from environment variables for nativesdk
There is already a relocate.patch for native which is used for reading GNUPG_BINDIR from environment variables, now also enable it for nativesdk. Otherwise, command like the following one doesn't work for nativesdk: $ gpg-connect-agent --homedir ../keys/ reloadagent /bye gpg-connect-agent: no running gpg-agent - starting '/opt/path/to/sysroots/x86_64-wrlinuxsdk-linux/usr/bin/gpg-agent' gpg-connect-agent: failed to start agent '/opt/path/sysroots/x86_64-wrlinuxsdk-linux/usr/bin/gpg-agent': No such file or directory (From OE-Core rev: c6b00b5594adec0a7d7a7f3617fb99b65ea8d9f1) Signed-off-by: Robert Yang <liezhi.yang@windriver.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.19.bb16
1 files changed, 12 insertions, 4 deletions
diff --git a/meta/recipes-support/gnupg/gnupg_2.2.19.bb b/meta/recipes-support/gnupg/gnupg_2.2.19.bb
index 76c09ff687..c07bff13be 100644
--- a/meta/recipes-support/gnupg/gnupg_2.2.19.bb
+++ b/meta/recipes-support/gnupg/gnupg_2.2.19.bb
@@ -18,6 +18,7 @@ SRC_URI = "${GNUPG_MIRROR}/${BPN}/${BPN}-${PV}.tar.bz2 \
18 " 18 "
19SRC_URI_append_class-native = " file://0001-configure.ac-use-a-custom-value-for-the-location-of-.patch \ 19SRC_URI_append_class-native = " file://0001-configure.ac-use-a-custom-value-for-the-location-of-.patch \
20 file://relocate.patch" 20 file://relocate.patch"
21SRC_URI_append_class-nativesdk = " file://relocate.patch"
21 22
22SRC_URI[md5sum] = "cb3b373d08ba078c325299945a7f2818" 23SRC_URI[md5sum] = "cb3b373d08ba078c325299945a7f2818"
23SRC_URI[sha256sum] = "242554c0e06f3a83c420b052f750b65ead711cc3fddddb5e7274fcdbb4e9dec0" 24SRC_URI[sha256sum] = "242554c0e06f3a83c420b052f750b65ead711cc3fddddb5e7274fcdbb4e9dec0"
@@ -60,10 +61,17 @@ do_install_append() {
60} 61}
61 62
62do_install_append_class-native() { 63do_install_append_class-native() {
63 create_wrapper ${D}${bindir}/gpg2 GNUPG_BINDIR=${STAGING_BINDIR_NATIVE} 64 create_wrappers ${STAGING_BINDIR_NATIVE}
64 create_wrapper ${D}${bindir}/gpgconf GNUPG_BINDIR=${STAGING_BINDIR_NATIVE} 65}
65 create_wrapper ${D}${bindir}/gpg-agent GNUPG_BINDIR=${STAGING_BINDIR_NATIVE} 66
66 create_wrapper ${D}${bindir}/gpg-connect-agent GNUPG_BINDIR=${STAGING_BINDIR_NATIVE} 67do_install_append_class-nativesdk() {
68 create_wrappers ${SDKPATHNATIVE}${bindir_nativesdk}
69}
70
71create_wrappers() {
72 for i in gpg2 gpgconf gpg-agent gpg-connect-agent; do
73 create_wrapper ${D}${bindir}/$i GNUPG_BINDIR=$1
74 done
67} 75}
68 76
69PACKAGECONFIG ??= "gnutls" 77PACKAGECONFIG ??= "gnutls"