From: Brendan Le Foll Date: Tue, 22 Mar 2016 09:53:34 +0000 (+0000) Subject: package.bbclass: Treat .node files same as .so when checking what to strip X-Git-Tag: 2016-4~312 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=d14bc2667575bc0e29b9e90d80c01703639b76f1;p=openembedded-core.git 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 Signed-off-by: Ross Burton --- diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index ef80e505b2..5a84255666 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)