Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 11 additions & 10 deletions meta/classes/package.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -1580,6 +1580,7 @@ SHLIBSDIRS = "${WORKDIR_PKGDATA}/${MLPREFIX}shlibs2"
SHLIBSWORKDIR = "${PKGDESTWORK}/${MLPREFIX}shlibs2"

python package_do_shlibs() {
import itertools
import re, pipes
import subprocess

Expand Down Expand Up @@ -1835,16 +1836,16 @@ python package_do_shlibs() {
bb.debug(2, '%s: Dependency %s covered by PRIVATE_LIBS' % (pkg, n[0]))
continue
if n[0] in shlib_provider.keys():
shlib_provider_path = []
for k in shlib_provider[n[0]].keys():
shlib_provider_path.append(k)
match = None
for p in list(n[2]) + shlib_provider_path + libsearchpath:
if p in shlib_provider[n[0]]:
match = p
break
if match:
(dep_pkg, ver_needed) = shlib_provider[n[0]][match]
shlib_provider_map = shlib_provider[n[0]]
matches = set()
for p in itertools.chain(list(n[2]), shlib_provider_map.keys(), libsearchpath):
if p in shlib_provider_map:
matches.add(p)
if len(matches) > 1:
matchpkgs = ', '.join([shlib_provider_map[match][0] for match in matches])
bb.fatal("%s: Multiple shlib providers for %s: %s (used by files: %s)" % (pkg, n[0], matchpkgs, n[1]))
elif len(matches) == 1:
(dep_pkg, ver_needed) = shlib_provider_map[matches.pop()]

bb.debug(2, '%s: Dependency %s requires package %s (used by files: %s)' % (pkg, n[0], dep_pkg, n[1]))

Expand Down