summaryrefslogtreecommitdiff
path: root/meta/recipes-core/busybox
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-02-10 00:10:38 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-02-10 13:38:15 +0000
commit548037acd63bd4859f8de8d23a3d12f36ce9f97f (patch)
treed65113dd818bceb8668392c711a4ae85067f811c /meta/recipes-core/busybox
parent4159ff761cf29a03aeb56c7686a4e7af02b52219 (diff)
downloadopenembedded-core-548037acd63bd4859f8de8d23a3d12f36ce9f97f.tar.gz
openembedded-core-548037acd63bd4859f8de8d23a3d12f36ce9f97f.tar.bz2
openembedded-core-548037acd63bd4859f8de8d23a3d12f36ce9f97f.tar.xz
openembedded-core-548037acd63bd4859f8de8d23a3d12f36ce9f97f.zip
package.bbclass: Optimise the per file rpm handling
Currently a process was being forked off for each individual file this class wanted to inspect with rpmdeps. This converts it to use rpmdeps-oecore which allows batch processing of these dependencies. For do_package for perl, this reduced the time by about 1 minute (33%). Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/busybox')
-rw-r--r--meta/recipes-core/busybox/busybox.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-core/busybox/busybox.inc b/meta/recipes-core/busybox/busybox.inc
index f35779dc4..5fb436ee2 100644
--- a/meta/recipes-core/busybox/busybox.inc
+++ b/meta/recipes-core/busybox/busybox.inc
@@ -216,9 +216,9 @@ python package_do_filedeps_append () {
# Load/backup original set
filerprovides = d.getVar('FILERPROVIDES_%s_%s' % (f_busybox, pkg), True) or ""
- dep_pipe = os.popen('sed -e "s,^,Provides: ," %s/%s%s' % (pkgdest, pkg, f_busybox_links))
+ dep_pipe = os.popen('sed -e "s,^,%s/%s%s Provides: ," %s/%s%s' % (pkgdest, pkg, f_busybox, pkgdest, pkg, f_busybox_links))
- process_deps(dep_pipe, pkg, "%s/%s%s" % (pkgdest, pkg, f_busybox), provides_files, requires_files)
+ process_deps(dep_pipe, pkg, provides_files, requires_files)
# Add the new set
filerprovides += d.getVar('FILERPROVIDES_%s_%s' % (f_busybox, pkg), True) or ""