Patchwork package.bbclass: Fix darwin shlib handling

login
register
mail settings
Submitter Richard Purdie
Date Sept. 4, 2013, 11:48 a.m.
Message ID <1378295307.1059.225.camel@ted>
Download mbox | patch
Permalink /patch/57345/
State Accepted
Commit 6d41d0dab7320c94f8e8d95d5e76a1e2c84b3dd0
Headers show

Comments

Richard Purdie - Sept. 4, 2013, 11:48 a.m.
shlibs dependency calculations on darwin we not functioning correctly, we
need to process the filename without the complete path. If we don't,
"." characters in the path cause problems.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---

Patch

diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 2696529..569599c 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -1429,7 +1429,7 @@  python package_do_shlibs() {
 
         if (file.endswith('.dylib') or file.endswith('.so')) and not pkg.endswith('-dev') and not pkg.endswith('-dbg'):
             # Drop suffix
-            name = file.rsplit(".",1)[0]
+            name = os.path.basename(file).rsplit(".",1)[0]
             # Find all combinations
             combos = get_combinations(name)
             for combo in combos: