diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-02-10 00:10:38 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-02-10 14:38:45 +0000 |
commit | 12306d01a091899178aca26b629bf14f6161dfb4 (patch) | |
tree | 945b49f09dd3b39acefd52b3ae525d2d9efe07b5 /meta/recipes-core | |
parent | d60912993d8542883d2930101b5b9a21ecb6adc0 (diff) | |
download | poky-12306d01a091899178aca26b629bf14f6161dfb4.tar.gz |
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%).
(From OE-Core rev: 548037acd63bd4859f8de8d23a3d12f36ce9f97f)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r-- | meta/recipes-core/busybox/busybox.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-core/busybox/busybox.inc b/meta/recipes-core/busybox/busybox.inc index f35779dc49..5fb436ee23 100644 --- a/meta/recipes-core/busybox/busybox.inc +++ b/meta/recipes-core/busybox/busybox.inc | |||
@@ -216,9 +216,9 @@ python package_do_filedeps_append () { | |||
216 | # Load/backup original set | 216 | # Load/backup original set |
217 | filerprovides = d.getVar('FILERPROVIDES_%s_%s' % (f_busybox, pkg), True) or "" | 217 | filerprovides = d.getVar('FILERPROVIDES_%s_%s' % (f_busybox, pkg), True) or "" |
218 | 218 | ||
219 | dep_pipe = os.popen('sed -e "s,^,Provides: ," %s/%s%s' % (pkgdest, pkg, f_busybox_links)) | 219 | dep_pipe = os.popen('sed -e "s,^,%s/%s%s Provides: ," %s/%s%s' % (pkgdest, pkg, f_busybox, pkgdest, pkg, f_busybox_links)) |
220 | 220 | ||
221 | process_deps(dep_pipe, pkg, "%s/%s%s" % (pkgdest, pkg, f_busybox), provides_files, requires_files) | 221 | process_deps(dep_pipe, pkg, provides_files, requires_files) |
222 | 222 | ||
223 | # Add the new set | 223 | # Add the new set |
224 | filerprovides += d.getVar('FILERPROVIDES_%s_%s' % (f_busybox, pkg), True) or "" | 224 | filerprovides += d.getVar('FILERPROVIDES_%s_%s' % (f_busybox, pkg), True) or "" |