Patchwork [PATCHv2] cpan-base: Add vardepvalue to get_perl_version function

mail settings
Submitter Martin Jansa
Date Dec. 4, 2013, 5:32 p.m.
Message ID <>
Download mbox | patch
Permalink /patch/62845/
State Accepted
Commit f31f6a70ec24e8c9515d69c5092e15effc5e7d4d
Headers show


Martin Jansa - Dec. 4, 2013, 5:32 p.m.
* without this bitbake -S perf shows following error:
  ERROR: Bitbake's cached basehash does not match the one we just generated
  if you run it twice, once without perl in sysroot and once with perl
  already built

Signed-off-by: Martin Jansa <>
 meta/classes/cpan-base.bbclass | 3 +++
 1 file changed, 3 insertions(+)


diff --git a/meta/classes/cpan-base.bbclass b/meta/classes/cpan-base.bbclass
index 7e1e8d0..aa502d5 100644
--- a/meta/classes/cpan-base.bbclass
+++ b/meta/classes/cpan-base.bbclass
@@ -10,6 +10,9 @@  RDEPENDS_${PN} += "${@["perl", ""][('native', d))]}"
 PERL_OWN_DIR = "${@["", "/perl-native"][('native', d))]}"
 # Determine the staged version of perl from the perl configuration file
+# Assign vardepvalue, because otherwise signature is changed before and after
+# perl is built (from None to real version in
+get_perl_version[vardepvalue] = "${PERL_OWN_DIR}"
 def get_perl_version(d):
     import re
     cfg = d.expand('${STAGING_LIBDIR}${PERL_OWN_DIR}/perl/')