diff options
Diffstat (limited to 'meta/classes/debian.bbclass')
-rw-r--r-- | meta/classes/debian.bbclass | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/meta/classes/debian.bbclass b/meta/classes/debian.bbclass index 963d11c129..3637e2ebe7 100644 --- a/meta/classes/debian.bbclass +++ b/meta/classes/debian.bbclass | |||
@@ -60,14 +60,10 @@ python debian_package_name_hook () { | |||
60 | for f in files: | 60 | for f in files: |
61 | if so_re.match(f): | 61 | if so_re.match(f): |
62 | fp = os.path.join(root, f) | 62 | fp = os.path.join(root, f) |
63 | cmd = (d.getVar('BUILD_PREFIX', True) or "") + "objdump -p " + fp | 63 | cmd = (d.getVar('BUILD_PREFIX', True) or "") + "objdump -p " + fp + " 2>/dev/null" |
64 | try: | 64 | fd = os.popen(cmd) |
65 | lines = "" | 65 | lines = fd.readlines() |
66 | lines = bb.process.run(cmd)[0] | 66 | fd.close() |
67 | # Some ".so" maybe ascii text, e.g: /usr/lib64/libpthread.so, | ||
68 | # ingore those errors. | ||
69 | except Exception: | ||
70 | sys.exc_clear() | ||
71 | for l in lines: | 67 | for l in lines: |
72 | m = re.match("\s+SONAME\s+([^\s]*)", l) | 68 | m = re.match("\s+SONAME\s+([^\s]*)", l) |
73 | if m and not m.group(1) in sonames: | 69 | if m and not m.group(1) in sonames: |