generic-poky/meta/lib/oe
Peter Kjellerstedt 7ea76684cb package.bbclass: Restore functionality to detect RPM dependencies
During the transition to dnf and rpm4, the functionality to
automatically make RPM determine dependencies was lost.

Before the transition, an OE specific tool called rpmdeps-oecore had
been added to the rpm suit. It was based on the rpmdeps tool that is
part of rpm. For each file specified on its command line, it would
output the provides and requires that RPM could determine.

During the transition to rpm4, rpmdeps-oecore was replaced with the
standard rpmdeps. However, what no one noticed was that unless rpmdeps
is given options, e.g., -P or -R, to tell it what it should output, it
will not output anything. Thus, it would do all the work to determine
the requirements, but would keep silent about it. And since no output
from rpmdeps is expected unless there are requirements, there were no
warnings indicating that everything was not working as expected.

Porting the old rpmdeps-oecore to work with rpm4 is not really
possible since it relied on being able to access internals of RPM that
are no longer available. However, it turned out that rpmdeps had a
debug option, --rpmfcdebug, that would output exactly the information
that we need, albeit in a different format and to stderr. To make this
usable, rpmdeps has now received a new option, --alldeps, which sends
the information we need to stdout.

Since enabling this may cause packages to break, it is required that
ENABLE_RPM_FILEDEPS_FOR_PYRO is set to "1" to activate it for Pyro.
The name of this variable has been chosen as to indicate that it only
affects Pyro (since releases before and after Pyro has it enabled by
default).

(From OE-Core rev: 1009498f23ad319825c00ba60a4693d15aada553)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-08-31 17:57:12 +01:00
..
__init__.py lib/oe: turn oe into a namespace package 2014-03-17 14:01:41 +00:00
buildhistory_analysis.py buildhistory-diff: add option to compare actual signature differences 2017-04-11 18:10:17 +01:00
cachedpath.py cachedpath.py: global name 'error' is not defined 2013-05-15 19:27:11 +03:00
classextend.py meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
classutils.py classutils.py: deterministic sorting 2017-04-11 18:10:17 +01:00
copy_buildsystem.py meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
data.py meta: add search, replace strings to export2json 2017-04-20 07:55:26 +01:00
distro_check.py classes: Drop now unneeded update_data calls 2017-02-15 09:29:55 -08:00
gpg_sign.py gpg_sign.py: fix signing of rpm files using gpg 2017-03-14 14:42:17 +00:00
license.py license: simple verification of LICENSE_<pkg> values 2016-08-25 22:54:49 +01:00
lsb.py lib/oe/lsb: better handle missing fields 2016-11-23 11:10:14 +00:00
maketype.py classes/lib: Complete transition to python3 2016-06-02 08:24:01 +01:00
manifest.py run-postinsts: simplify the logic of whether to install it to images 2017-03-14 14:42:17 +00:00
package.py package.bbclass: Restore functionality to detect RPM dependencies 2017-08-31 17:57:12 +01:00
package_manager.py package_manager.py: Generate correct RPM package names again 2017-08-31 17:57:11 +01:00
packagedata.py meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
packagegroup.py meta: remove True option to getVarFlag calls 2016-12-16 10:23:23 +00:00
patch.py meta: replace uses of bb.data.expand(VARNAME, d) with d.expand(VARNAME) 2017-03-22 11:35:19 +00:00
path.py oe/path.py: fix for "Argument list too long" 2017-03-17 16:53:05 +00:00
prservice.py meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
qa.py meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
recipeutils.py meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
rootfs.py rootfs.py: Respect OPKGLIBDIR variable 2017-03-24 23:43:32 +00:00
sdk.py rootfs_rpm.bbclass: migrate image creation to dnf 2017-03-14 14:42:17 +00:00
sstatesig.py buildhistory-diff: add option to compare task signature list 2017-04-11 18:10:17 +01:00
terminal.py meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
types.py classes/lib: Complete transition to python3 2016-06-02 08:24:01 +01:00
utils.py lib/oe/utils: Add build_depends_string function 2017-01-20 11:53:49 +00:00