diff options
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/chrpath.bbclass | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/meta/classes/chrpath.bbclass b/meta/classes/chrpath.bbclass index ad61fe09ea..89222484b8 100644 --- a/meta/classes/chrpath.bbclass +++ b/meta/classes/chrpath.bbclass | |||
@@ -74,9 +74,11 @@ def process_dir (directory, d): | |||
74 | if len(new_rpaths): | 74 | if len(new_rpaths): |
75 | args = ":".join(new_rpaths) | 75 | args = ":".join(new_rpaths) |
76 | #bb.note("Setting rpath for %s to %s" %(fpath, args)) | 76 | #bb.note("Setting rpath for %s to %s" %(fpath, args)) |
77 | ret = sub.call([cmd, '-r', args, fpath]) | 77 | p = sub.Popen([cmd, '-r', args, fpath],stdout=sub.PIPE,stderr=sub.PIPE) |
78 | if ret != 0: | 78 | out, err = p.communicate() |
79 | bb.error("chrpath command failed with exit code %d" % ret) | 79 | if p.returncode != 0: |
80 | bb.error("%s: chrpath command failed with exit code %d:\n%s%s" % (d.getVar('PN', True), p.returncode, out, err)) | ||
81 | raise bb.build.FuncFailed | ||
80 | 82 | ||
81 | if perms: | 83 | if perms: |
82 | os.chmod(fpath, perms) | 84 | os.chmod(fpath, perms) |