[oe-commits] [openembedded-core] 17/38: package.bbclass: Treat .node files same as .so when checking what to strip

git at git.openembedded.org git at git.openembedded.org
Wed Mar 23 21:51:01 UTC 2016


rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 21bbb4473c0d964ffa880a9389c4b8921b78f44e
Author: Brendan Le Foll <brendan.le.foll at intel.com>
AuthorDate: Tue Mar 22 09:53:34 2016 +0000

    package.bbclass: Treat .node files same as .so when checking what to strip
    
    Typically in a node/npm compiled modules the module is named .node. This is a
    binary module without a wrapper so it can actually be relatively large if
    unstripped.
    
    Signed-off-by: Brendan Le Foll <brendan.le.foll at intel.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/classes/package.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index ef80e50..5a84255 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -907,7 +907,7 @@ python split_and_strip_files () {
                     continue
                 # Check its an excutable
                 if (s[stat.ST_MODE] & stat.S_IXUSR) or (s[stat.ST_MODE] & stat.S_IXGRP) or (s[stat.ST_MODE] & stat.S_IXOTH) \
-                        or ((file.startswith(libdir) or file.startswith(baselibdir)) and ".so" in f):
+                        or ((file.startswith(libdir) or file.startswith(baselibdir)) and (".so" in f or ".node" in f)):
                     # If it's a symlink, and points to an ELF file, we capture the readlink target
                     if cpath.islink(file):
                         target = os.readlink(file)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list