Skip to contentSkip to conversation

skip filedeps per-package

PATCH New Peter Seebach 1 participant 2 messages Jan 26, 2013

lore
Share & tools
lore
#0 lore raw

cover skip filedeps per-package

The existing checks for SKIP_FILEDEPS allow it to be turned on and off per recipe, but provide no way to turn it on and off per package, except by giving packages particular magic names like *-locale-*. Add a check against SKIP_FILEDEPS_pkg, parallel to FILES_pkg.

The following changes since commit cc490d76aba0a778409ca1a3d0e1f2c308684c9b:
Paul Eggleton (1):
valgrind: explicitly disable MPI2 support

are available in the git repository at:

git://git.yoctoproject.org/poky-contrib seebs/skip_filedeps
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=seebs/skip_filedeps

Peter Seebach (1):
package.bbclass: Allow per-package SKIP_FILEDEPS

 meta/classes/package.bbclass |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
#1 lore raw

PATCH 1/1 package.bbclass: Allow per-package SKIP_FILEDEPS

The existing check for SKIP_FILEDEPS can be overridden per recipe using SKIP_FILEDEPS_pn-${PN}. However, there's no mechanism for letting a single package within a recipe use SKIP_FILEDEPS.

This patch adds SKIP_FILEDEPS_<pkg>, by analogy to FILES_<pkg>. Note that it only works one way; if the recipe has SKIP_FILEDEPS = 1, the checks for individual packages will never be reached.

---
 meta/classes/package.bbclass |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
meta/classes/package.bbclass +2 -0
index e8d7aef..3ed048e 100644
@@ -1310,6 +1310,8 @@ python package_do_filedeps() {
 
     # Determine dependencies
     for pkg in packages.split():
+        if d.getVar('SKIP_FILEDEPS_' + pkg, True) == '1':
+            continue
         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-'):
             continue
 
Signature · 1 line
1.7.0.4