cpan-base bbclass: update to match change to perl-native staging
authorKoen Kooi <koen@openembedded.org>
Tue, 10 Nov 2009 20:34:41 +0000 (21:34 +0100)
committerKoen Kooi <koen@openembedded.org>
Tue, 10 Nov 2009 20:34:41 +0000 (21:34 +0100)
classes/cpan-base.bbclass

index 19d431c..394539d 100644 (file)
@@ -10,7 +10,7 @@ RDEPENDS  += "${@["perl", ""][(bb.data.inherits_class('native', d))]}"
 # Determine the staged version of perl from the perl configuration file
 def get_perl_version(d):
        import os, bb, re
-       cfg = bb.data.expand('${STAGING_DIR_HOST}/perl/config.sh', d)
+       cfg = bb.data.expand('${STAGING_DIR)/${HOST_SYS}/perl/config.sh', d)
        try:
                f = open(cfg, 'r')
        except IOError: