Skip to contentSkip to conversation

package: Fix pkgdest for darwin shlibs code

PATCH New Richard Purdie 1 participant 1 message Aug 2, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package: Fix pkgdest for darwin shlibs code

When the code was rewritten we forgot to strip the pkg that is present in the pkgdest path. This was fixed in the linux version of the code but not the darwin one, this matches the fix.

Without this, the provider paths are broken.

meta/classes/package.bbclass +1 -1
index 26a20d1..fbdccfb 100644
@@ -1434,7 +1434,7 @@ python package_do_shlibs() {
     def darwin_so(file, needed, sonames, renames, pkgver):
         if not os.path.exists(file):
             return
-        ldir = os.path.dirname(file).replace(pkgdest, '')
+        ldir = os.path.dirname(file).replace(pkgdest + "/" + pkg, '')
 
         def get_combinations(base):
             #