On 08/15/2012 09:44 AM, Paul Eggleton wrote:
If chrpath failed here we were just silently ignoring it.

Signed-off-by: Paul Eggleton <[email protected]>
---
  meta/classes/chrpath.bbclass |    4 +++-
  1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta/classes/chrpath.bbclass b/meta/classes/chrpath.bbclass
index 10b5ca0..ad61fe0 100644
--- a/meta/classes/chrpath.bbclass
+++ b/meta/classes/chrpath.bbclass
@@ -74,7 +74,9 @@ def process_dir (directory, d):
              if len(new_rpaths):
                  args = ":".join(new_rpaths)
                  #bb.note("Setting rpath for %s to %s" %(fpath, args))
-                sub.call([cmd, '-r', args, fpath])
+                ret = sub.call([cmd, '-r', args, fpath])
+                if ret != 0:
+                    bb.error("chrpath command failed with exit code %d" % ret)

              if perms:
                  os.chmod(fpath, perms)

Merged into OE-Core

Thanks
        Sau!


_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Reply via email to