Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] package.bbclass: Fix darwin shlib handling
@ 2013-09-04 11:48 Richard Purdie
  0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2013-09-04 11:48 UTC (permalink / raw)
  To: openembedded-core

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>
---
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:




^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-09-04 11:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-04 11:48 [PATCH] package.bbclass: Fix darwin shlib handling Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox