summaryrefslogtreecommitdiffstats
path: root/meta/classes/package.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard@ted.(none)>2009-01-25 17:20:05 +0000
committerRichard Purdie <richard@ted.(none)>2009-02-05 23:54:11 +0000
commitbe10b46b7325a0df84a0133350eba4d1c4874de9 (patch)
tree5e848f8e492eed61b66c54b49b68a0cd0303702d /meta/classes/package.bbclass
parentc2c16bced84f488622467ae31e60aa07253b24cf (diff)
downloadpoky-be10b46b7325a0df84a0133350eba4d1c4874de9.tar.gz
base.bbclass: Use explode_deps from bb.utils and remove the obsolete base.bbclass version
Diffstat (limited to 'meta/classes/package.bbclass')
-rw-r--r--meta/classes/package.bbclass18
1 files changed, 9 insertions, 9 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 3edec82e4a..fa53b1358c 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -210,7 +210,7 @@ def runtime_mapping_rename (varname, d):
210 #bb.note("%s before: %s" % (varname, bb.data.getVar(varname, d, 1))) 210 #bb.note("%s before: %s" % (varname, bb.data.getVar(varname, d, 1)))
211 211
212 new_depends = [] 212 new_depends = []
213 for depend in explode_deps(bb.data.getVar(varname, d, 1) or ""): 213 for depend in bb.utils.explode_deps(bb.data.getVar(varname, d, 1) or ""):
214 # Have to be careful with any version component of the depend 214 # Have to be careful with any version component of the depend
215 split_depend = depend.split(' (') 215 split_depend = depend.split(' (')
216 new_depend = get_package_mapping(split_depend[0].strip(), d) 216 new_depend = get_package_mapping(split_depend[0].strip(), d)
@@ -440,7 +440,7 @@ python populate_packages () {
440 dangling_links[pkg].append(os.path.normpath(target)) 440 dangling_links[pkg].append(os.path.normpath(target))
441 441
442 for pkg in package_list: 442 for pkg in package_list:
443 rdepends = explode_deps(bb.data.getVar('RDEPENDS_' + pkg, d, 1) or bb.data.getVar('RDEPENDS', d, 1) or "") 443 rdepends = bb.utils.explode_deps(bb.data.getVar('RDEPENDS_' + pkg, d, 1) or bb.data.getVar('RDEPENDS', d, 1) or "")
444 for l in dangling_links[pkg]: 444 for l in dangling_links[pkg]:
445 found = False 445 found = False
446 bb.debug(1, "%s contains dangling link %s" % (pkg, l)) 446 bb.debug(1, "%s contains dangling link %s" % (pkg, l))
@@ -870,7 +870,7 @@ python package_do_pkgconfig () {
870python read_shlibdeps () { 870python read_shlibdeps () {
871 packages = bb.data.getVar('PACKAGES', d, 1).split() 871 packages = bb.data.getVar('PACKAGES', d, 1).split()
872 for pkg in packages: 872 for pkg in packages:
873 rdepends = explode_deps(bb.data.getVar('RDEPENDS_' + pkg, d, 0) or bb.data.getVar('RDEPENDS', d, 0) or "") 873 rdepends = bb.utils.explode_deps(bb.data.getVar('RDEPENDS_' + pkg, d, 0) or bb.data.getVar('RDEPENDS', d, 0) or "")
874 for extension in ".shlibdeps", ".pcdeps", ".clilibdeps": 874 for extension in ".shlibdeps", ".pcdeps", ".clilibdeps":
875 depsfile = bb.data.expand("${PKGDEST}/" + pkg + extension, d) 875 depsfile = bb.data.expand("${PKGDEST}/" + pkg + extension, d)
876 if os.access(depsfile, os.R_OK): 876 if os.access(depsfile, os.R_OK):
@@ -903,7 +903,7 @@ python package_depchains() {
903 def pkg_adddeprrecs(pkg, base, suffix, getname, depends, d): 903 def pkg_adddeprrecs(pkg, base, suffix, getname, depends, d):
904 904
905 #bb.note('depends for %s is %s' % (base, depends)) 905 #bb.note('depends for %s is %s' % (base, depends))
906 rreclist = explode_deps(bb.data.getVar('RRECOMMENDS_' + pkg, d, 1) or bb.data.getVar('RRECOMMENDS', d, 1) or "") 906 rreclist = bb.utils.explode_deps(bb.data.getVar('RRECOMMENDS_' + pkg, d, 1) or bb.data.getVar('RRECOMMENDS', d, 1) or "")
907 907
908 for depend in depends: 908 for depend in depends:
909 if depend.find('-native') != -1 or depend.find('-cross') != -1 or depend.startswith('virtual/'): 909 if depend.find('-native') != -1 or depend.find('-cross') != -1 or depend.startswith('virtual/'):
@@ -924,7 +924,7 @@ python package_depchains() {
924 def pkg_addrrecs(pkg, base, suffix, getname, rdepends, d): 924 def pkg_addrrecs(pkg, base, suffix, getname, rdepends, d):
925 925
926 #bb.note('rdepends for %s is %s' % (base, rdepends)) 926 #bb.note('rdepends for %s is %s' % (base, rdepends))
927 rreclist = explode_deps(bb.data.getVar('RRECOMMENDS_' + pkg, d, 1) or bb.data.getVar('RRECOMMENDS', d, 1) or "") 927 rreclist = bb.utils.explode_deps(bb.data.getVar('RRECOMMENDS_' + pkg, d, 1) or bb.data.getVar('RRECOMMENDS', d, 1) or "")
928 928
929 for depend in rdepends: 929 for depend in rdepends:
930 if depend.find('virtual-locale-') != -1: 930 if depend.find('virtual-locale-') != -1:
@@ -948,15 +948,15 @@ python package_depchains() {
948 list.append(dep) 948 list.append(dep)
949 949
950 depends = [] 950 depends = []
951 for dep in explode_deps(bb.data.getVar('DEPENDS', d, 1) or ""): 951 for dep in bb.utils.explode_deps(bb.data.getVar('DEPENDS', d, 1) or ""):
952 add_dep(depends, dep) 952 add_dep(depends, dep)
953 953
954 rdepends = [] 954 rdepends = []
955 for dep in explode_deps(bb.data.getVar('RDEPENDS', d, 1) or ""): 955 for dep in bb.utils.explode_deps(bb.data.getVar('RDEPENDS', d, 1) or ""):
956 add_dep(rdepends, dep) 956 add_dep(rdepends, dep)
957 957
958 for pkg in packages.split(): 958 for pkg in packages.split():
959 for dep in explode_deps(bb.data.getVar('RDEPENDS_' + pkg, d, 1) or ""): 959 for dep in bb.utils.explode_deps(bb.data.getVar('RDEPENDS_' + pkg, d, 1) or ""):
960 add_dep(rdepends, dep) 960 add_dep(rdepends, dep)
961 961
962 #bb.note('rdepends is %s' % rdepends) 962 #bb.note('rdepends is %s' % rdepends)
@@ -989,7 +989,7 @@ python package_depchains() {
989 pkg_addrrecs(pkg, base, suffix, func, rdepends, d) 989 pkg_addrrecs(pkg, base, suffix, func, rdepends, d)
990 else: 990 else:
991 rdeps = [] 991 rdeps = []
992 for dep in explode_deps(bb.data.getVar('RDEPENDS_' + base, d, 1) or bb.data.getVar('RDEPENDS', d, 1) or ""): 992 for dep in bb.utils.explode_deps(bb.data.getVar('RDEPENDS_' + base, d, 1) or bb.data.getVar('RDEPENDS', d, 1) or ""):
993 add_dep(rdeps, dep) 993 add_dep(rdeps, dep)
994 pkg_addrrecs(pkg, base, suffix, func, rdeps, d) 994 pkg_addrrecs(pkg, base, suffix, func, rdeps, d)
995} 995}