Skip to contentSkip to conversation

classes/cpan-base: fix libdir for nativesdk

PATCH New Tyler Hall 1 participant 1 message Oct 28, 2015

lore
Share & tools
lore

Tyler Hall

author
#0 lore raw

PATCH 1/1 classes/cpan-base: fix libdir for nativesdk

Immediate expansion of perl_get_libdirs() is too early for BBCLASSEXTEND. This results in a packaging QA error when building a cpan recipe as nativesdk. The split debug files do not get picked up by the dbg package because it looks in the wrong libdir.

The is_target() function remains because it is used elsewhere.

---
 meta/classes/cpan-base.bbclass | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)
meta/classes/cpan-base.bbclass +2 -9
index d9817ba..080ce92 100644
@@ -29,20 +29,13 @@ def get_perl_version(d):
             return m.group(1)
     return None
 
-# Determine where the library directories are
-def perl_get_libdirs(d):
-    libdir = d.getVar('libdir', True)
-    if is_target(d) == "no":
-        libdir += '/perl-native'
-    libdir += '/perl'
-    return libdir
-
 def is_target(d):
     if not bb.data.inherits_class('native', d):
         return "yes"
     return "no"
 
-PERLLIBDIRS := "${@perl_get_libdirs(d)}"
+PERLLIBDIRS = "${libdir}/perl"
+PERLLIBDIRS_class-native = "${libdir}/perl-native"
 PERLVERSION := "${@get_perl_version(d)}"
 PERLVERSION[vardepvalue] = ""
 
Signature · 1 line
2.6.1