[oe-commits] Richard Purdie : package.bbclass: Fix darwin shlib handling

git at git.openembedded.org git at git.openembedded.org
Wed Sep 4 13:07:22 UTC 2013


Module: openembedded-core.git
Branch: master
Commit: 07e697d651178a84007123181fca38e4d98ae0e9
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=07e697d651178a84007123181fca38e4d98ae0e9

Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date:   Wed Sep  4 12:48:27 2013 +0100

package.bbclass: Fix darwin shlib handling

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 at linuxfoundation.org>

---

 meta/classes/package.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index f6f9310..50490bc 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -1386,7 +1386,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:



More information about the Openembedded-commits mailing list