]> code.ossystems Code Review - openembedded-core.git/commit
gnupg: patch gnupg-native to allow path relocation
authorRoss Burton <ross.burton@intel.com>
Wed, 19 Sep 2018 13:44:40 +0000 (14:44 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 20 Sep 2018 12:41:25 +0000 (05:41 -0700)
commitdfd69ff889ed78bf137116583d8ae351859ee203
treebb726241146b93f952b4d847831bdf7ef27ee8a4
parenta6de4b1809e90d02a865c56ec8269bdfa3ceec0a
gnupg: patch gnupg-native to allow path relocation

GnuPG hard-codes $bindir etc and uses them to find the helper binaries, such as
gpg-agent.  This breaks if gnupg-native is reused from sstate for a different
build directory and GPG signing of packages is required.

Patch in getenv() checks for gnupg-native when returning the hardcoded paths,
and create a wrapper script which overrides GNUPG_BINDIR. There are more paths
that can be overridden, but this one is sufficient to make GnuPG work.

Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-support/gnupg/gnupg/relocate.patch [new file with mode: 0644]
meta/recipes-support/gnupg/gnupg_2.2.9.bb