generic-poky/meta/recipes-devtools/rpm
Markus Lehtonen cb24cbbb02 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]

(From OE-Core rev: eb76b668e815fbecd18271808b871fc3b0f15e65)

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-09-28 12:00:19 +01:00
..
rpm rpm: search for gpg if gpg2 is not found 2015-09-28 12:00:19 +01:00
rpm-4.11.2 rpm: add version 4.11.2 2014-09-30 21:36:13 +01:00
rpmresolve rpmresolve: ignore null requires 2014-09-03 16:00:28 +01:00
rpm_4.11.2.bb rpm4: Drop native RDEPENDS 2015-07-23 08:48:37 +01:00
rpm_5.4+cvs.bb rpm: remove invalid sed command 2015-07-12 22:55:44 +01:00
rpm_5.4.14.bb rpm: search for gpg if gpg2 is not found 2015-09-28 12:00:19 +01:00
rpmresolve_1.0.bb rpmresolve: Add nativesdk in BBCLASSEXTEND 2013-10-18 15:58:17 +01:00