From 271846ccc9c70a5e644a14be9739009c7b2f6034 Mon Sep 17 00:00:00 2001 From: Herb Kuta Date: Wed, 29 May 2019 10:02:34 -0700 Subject: [PATCH] DRAFT opencv_3.2.bb: Add 2nd argument to d.getVar() --- recipes-support/opencv/opencv_3.2.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes-support/opencv/opencv_3.2.bb b/recipes-support/opencv/opencv_3.2.bb index fc62e99..2f1b976 100644 --- a/recipes-support/opencv/opencv_3.2.bb +++ b/recipes-support/opencv/opencv_3.2.bb @@ -113,12 +113,12 @@ python populate_packages_prepend () { do_split_packages(d, cv_libdir, '^lib(.*)\.a$', 'lib%s-dev', 'OpenCV %s development package', extra_depends='${PN}-dev') do_split_packages(d, cv_libdir, '^lib(.*)\.so\.*', 'lib%s', 'OpenCV %s library', extra_depends='', allow_links=True) - pn = d.getVar('PN') + pn = d.getVar('PN', True) metapkg = pn + '-dev' d.setVar('ALLOW_EMPTY_' + metapkg, "1") blacklist = [ metapkg ] metapkg_rdepends = [ ] - packages = d.getVar('PACKAGES').split() + packages = d.getVar('PACKAGES', True).split() for pkg in packages[1:]: if not pkg in blacklist and not pkg in metapkg_rdepends and pkg.endswith('-dev'): metapkg_rdepends.append(pkg)