mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
cpan.bbclass, cpan-base.bbclas: update them for the perlnative change
Since perl-native now populates into its own dir, here we need change accordingly. Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
This commit is contained in:
committed by
Richard Purdie
parent
38d0c607d8
commit
c13b10a6ae
@@ -7,10 +7,12 @@ FILES_${PN} += "${libdir}/perl ${datadir}/perl"
|
||||
DEPENDS += "${@["perl", "perl-native"][(bb.data.inherits_class('native', d))]}"
|
||||
RDEPENDS += "${@["perl", ""][(bb.data.inherits_class('native', d))]}"
|
||||
|
||||
PERL_OWN_DIR = "${@["", "/perl-native"][(bb.data.inherits_class('native', d))]}"
|
||||
|
||||
# Determine the staged version of perl from the perl configuration file
|
||||
def get_perl_version(d):
|
||||
import re
|
||||
cfg = bb.data.expand('${STAGING_LIBDIR}/perl/config.sh', d)
|
||||
cfg = bb.data.expand('${STAGING_LIBDIR}${PERL_OWN_DIR}/perl/config.sh', d)
|
||||
try:
|
||||
f = open(cfg, 'r')
|
||||
except IOError:
|
||||
@@ -27,8 +29,10 @@ def get_perl_version(d):
|
||||
# Determine where the library directories are
|
||||
def perl_get_libdirs(d):
|
||||
libdir = bb.data.getVar('libdir', d, 1)
|
||||
libdirs = libdir + '/perl'
|
||||
return libdirs
|
||||
if is_target(d) == "no":
|
||||
libdir += '/perl-native'
|
||||
libdir += '/perl'
|
||||
return libdir
|
||||
|
||||
def is_target(d):
|
||||
if not bb.data.inherits_class('native', d):
|
||||
|
||||
Reference in New Issue
Block a user