package_deb.bbclass: Ignore file paths in RPROVIDES
Unlike rpm, debian packaging does not allow file paths in 'Provides:' field. When 'usrmerge' distro feature enabled bash/busybox packages adds '/bin/sh' to it's RPROVIDES to satisfy build dependencies, this entry should be filtered out. (From OE-Core rev: a36165ea8bf8c7a061a0173076c83ae6806d65b6) Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
e8b1864f70
commit
f377eaa011
|
@ -236,6 +236,10 @@ python do_package_deb () {
|
|||
debian_cmp_remap(rsuggests)
|
||||
# Deliberately drop version information here, not wanted/supported by deb
|
||||
rprovides = dict.fromkeys(bb.utils.explode_dep_versions2(localdata.getVar("RPROVIDES") or ""), [])
|
||||
# Remove file paths if any from rprovides, debian does not support custom providers
|
||||
for key in list(rprovides.keys()):
|
||||
if key.startswith('/'):
|
||||
del rprovides[key]
|
||||
rprovides = collections.OrderedDict(sorted(rprovides.items(), key=lambda x: x[0]))
|
||||
debian_cmp_remap(rprovides)
|
||||
rreplaces = bb.utils.explode_dep_versions2(localdata.getVar("RREPLACES") or "")
|
||||
|
|
Loading…
Reference in New Issue