summaryrefslogtreecommitdiffstats
path: root/meta/classes/package.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2017-06-12 23:01:34 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-06-13 06:18:49 +0100
commit1847d2aa40aa942b14e901634121c1bd3171c9be (patch)
treefdf4ec9cd4d2a939b283eee2c4964491bcc09a7c /meta/classes/package.bbclass
parentbd07f8c9adaee9a1bdd38d2377c9ffaabbb5a469 (diff)
downloadpoky-1847d2aa40aa942b14e901634121c1bd3171c9be.tar.gz
Revert "package.bbclass: Restore functionality to detect RPM dependencies"
This reverts commit aea90e9ee6f34e7c1c08307080b1e29646668df6. RP hadn't meant to merge this yet and its causing problems so delay it until its ready. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/package.bbclass')
-rw-r--r--meta/classes/package.bbclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 65cf5fac5f..cc466bd1b2 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -1434,7 +1434,7 @@ if [ x"$D" = "x" ]; then
1434fi 1434fi
1435} 1435}
1436 1436
1437RPMDEPS = "${STAGING_LIBDIR_NATIVE}/rpm/rpmdeps --alldeps" 1437RPMDEPS = "${STAGING_LIBDIR_NATIVE}/rpm/rpmdeps --rcfile ${STAGING_LIBDIR_NATIVE}/rpm/rpmrc --macros ${STAGING_LIBDIR_NATIVE}/rpm/macros --define '_rpmconfigdir ${STAGING_LIBDIR_NATIVE}/rpm/'"
1438 1438
1439# Collect perfile run-time dependency metadata 1439# Collect perfile run-time dependency metadata
1440# Output: 1440# Output:
@@ -1451,6 +1451,7 @@ python package_do_filedeps() {
1451 pkgdest = d.getVar('PKGDEST') 1451 pkgdest = d.getVar('PKGDEST')
1452 packages = d.getVar('PACKAGES') 1452 packages = d.getVar('PACKAGES')
1453 rpmdeps = d.getVar('RPMDEPS') 1453 rpmdeps = d.getVar('RPMDEPS')
1454 magic = d.expand("${STAGING_DIR_NATIVE}${datadir_native}/misc/magic.mgc")
1454 1455
1455 def chunks(files, n): 1456 def chunks(files, n):
1456 return [files[i:i+n] for i in range(0, len(files), n)] 1457 return [files[i:i+n] for i in range(0, len(files), n)]
@@ -1462,7 +1463,7 @@ python package_do_filedeps() {
1462 if pkg.endswith('-dbg') or pkg.endswith('-doc') or pkg.find('-locale-') != -1 or pkg.find('-localedata-') != -1 or pkg.find('-gconv-') != -1 or pkg.find('-charmap-') != -1 or pkg.startswith('kernel-module-'): 1463 if pkg.endswith('-dbg') or pkg.endswith('-doc') or pkg.find('-locale-') != -1 or pkg.find('-localedata-') != -1 or pkg.find('-gconv-') != -1 or pkg.find('-charmap-') != -1 or pkg.startswith('kernel-module-'):
1463 continue 1464 continue
1464 for files in chunks(pkgfiles[pkg], 100): 1465 for files in chunks(pkgfiles[pkg], 100):
1465 pkglist.append((pkg, files, rpmdeps, pkgdest)) 1466 pkglist.append((pkg, files, rpmdeps, pkgdest, magic))
1466 1467
1467 processed = oe.utils.multiprocess_exec( pkglist, oe.package.filedeprunner) 1468 processed = oe.utils.multiprocess_exec( pkglist, oe.package.filedeprunner)
1468 1469