diff options
Diffstat (limited to 'meta/classes/cpan-base.bbclass')
-rw-r--r-- | meta/classes/cpan-base.bbclass | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/meta/classes/cpan-base.bbclass b/meta/classes/cpan-base.bbclass index cc0d11e515..919a9b06a5 100644 --- a/meta/classes/cpan-base.bbclass +++ b/meta/classes/cpan-base.bbclass | |||
@@ -9,7 +9,7 @@ RDEPENDS += "${@["perl", ""][(bb.data.inherits_class('native', d))]}" | |||
9 | 9 | ||
10 | # Determine the staged version of perl from the perl configuration file | 10 | # Determine the staged version of perl from the perl configuration file |
11 | def get_perl_version(d): | 11 | def get_perl_version(d): |
12 | import os, bb, re | 12 | import re |
13 | cfg = bb.data.expand('${STAGING_DIR}/${HOST_SYS}/perl/config.sh', d) | 13 | cfg = bb.data.expand('${STAGING_DIR}/${HOST_SYS}/perl/config.sh', d) |
14 | try: | 14 | try: |
15 | f = open(cfg, 'r') | 15 | f = open(cfg, 'r') |
@@ -33,7 +33,6 @@ def is_new_perl(d): | |||
33 | 33 | ||
34 | # Determine where the library directories are | 34 | # Determine where the library directories are |
35 | def perl_get_libdirs(d): | 35 | def perl_get_libdirs(d): |
36 | import bb | ||
37 | libdir = bb.data.getVar('libdir', d, 1) | 36 | libdir = bb.data.getVar('libdir', d, 1) |
38 | if is_new_perl(d) == "yes": | 37 | if is_new_perl(d) == "yes": |
39 | libdirs = libdir + '/perl5' | 38 | libdirs = libdir + '/perl5' |
@@ -42,7 +41,6 @@ def perl_get_libdirs(d): | |||
42 | return libdirs | 41 | return libdirs |
43 | 42 | ||
44 | def is_target(d): | 43 | def is_target(d): |
45 | import bb | ||
46 | if not bb.data.inherits_class('native', d): | 44 | if not bb.data.inherits_class('native', d): |
47 | return "yes" | 45 | return "yes" |
48 | return "no" | 46 | return "no" |