]> code.ossystems Code Review - openembedded-core.git/commit
rpm: search for gpg if gpg2 is not found
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Tue, 15 Sep 2015 12:29:55 +0000 (15:29 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 28 Sep 2015 10:58:20 +0000 (11:58 +0100)
commiteb76b668e815fbecd18271808b871fc3b0f15e65
tree47255b6e8bf3aa6640000923a3e6477ef6cec2bd
parentf601a0df106fb1da188a4b1f1155d85fad4627bb
rpm: search for gpg if gpg2 is not found

Some (host) systems only have a binary named 'gpg' (e.g. Fedora) while
some only have 'gpg2' (Ubuntu) and others have both of them (openSUSE).
Currently the behavior of rpm-native with regards to GnuPG depends on
the host platform: rpm(-native) is configured to use GnuPG binary of the
host system if 'gpg2' is found in $PATH. Otherwise, rpm(-native) will
default to using '%{_bindir}/gpg2' which will be pointing to a sysroot
binary which usually does not exist.

This patch changes rpm to look for both 'gpg' and 'gpg2' when searching
for the GnuPG binary in PATH. This makes possible to create signed RPM
packages on different host platforms, using the GnuPG binary of the
host, without the need to explicitly define the gpg binary in bitbake
configuration (via GPG_BIN variable).

[YOCTO #8134]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-devtools/rpm/rpm/configure.ac-check-for-both-gpg2-and-gpg.patch [new file with mode: 0644]
meta/recipes-devtools/rpm/rpm_5.4.14.bb