summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/package.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index f8f0a12dc1..108847094e 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -1205,7 +1205,7 @@ SHLIBSDIR = "${STAGING_DIR_HOST}/shlibs"
1205SHLIBSWORKDIR = "${WORKDIR}/shlibs" 1205SHLIBSWORKDIR = "${WORKDIR}/shlibs"
1206 1206
1207python package_do_shlibs() { 1207python package_do_shlibs() {
1208 import re 1208 import re, pipes
1209 1209
1210 exclude_shlibs = d.getVar('EXCLUDE_FROM_SHLIBS', 0) 1210 exclude_shlibs = d.getVar('EXCLUDE_FROM_SHLIBS', 0)
1211 if exclude_shlibs: 1211 if exclude_shlibs:
@@ -1234,7 +1234,7 @@ python package_do_shlibs() {
1234 lf = bb.utils.lockfile(bb.data.expand("${PACKAGELOCK}", d)) 1234 lf = bb.utils.lockfile(bb.data.expand("${PACKAGELOCK}", d))
1235 1235
1236 def linux_so(root, path, file): 1236 def linux_so(root, path, file):
1237 cmd = d.getVar('OBJDUMP', True) + " -p " + os.path.join(root, file) + " 2>/dev/null" 1237 cmd = d.getVar('OBJDUMP', True) + " -p " + pipes.quote(os.path.join(root, file)) + " 2>/dev/null"
1238 cmd = "PATH=\"%s\" %s" % (d.getVar('PATH', True), cmd) 1238 cmd = "PATH=\"%s\" %s" % (d.getVar('PATH', True), cmd)
1239 fd = os.popen(cmd) 1239 fd = os.popen(cmd)
1240 lines = fd.readlines() 1240 lines = fd.readlines()