]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
package.bbclass: Fix darwin shlib handling
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 4 Sep 2013 11:48:27 +0000 (12:48 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 4 Sep 2013 13:11:27 +0000 (14:11 +0100)
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>
meta/classes/package.bbclass

index f6f93106ac1eb62bf56c7cee7e9c45bee4ca0c4c..50490bc89d28f5e5789315ed90ac2a70920d6ad2 100644 (file)
@@ -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: