[oe-commits] org.oe.dev cpan-base.bbclass: Update the perl depenedencies:
lenehan commit
openembedded-commits at lists.openembedded.org
Wed May 30 22:16:17 UTC 2007
cpan-base.bbclass: Update the perl depenedencies:
* For native modules DEPEND on perl-native and for others DEPEND on perl
(which in turn depends on perl-native) rather then always depending on
both perl and perl-native.
* Only RDEPEND for non-native modules rather then both native and
non-native.
These changes are to allow you to build native modules without have to build
perl. Previously the dependencies would result in perl being built even
though it didn't actually need to. Thanks to hrw for pointing out what was
happening here.
Author: lenehan at openembedded.org
Branch: org.openembedded.dev
Revision: 399705dfa7f6a6fd87366a6c0b1058354a5d4312
ViewMTN: http://monotone.openembedded.org/revision.psp?id=399705dfa7f6a6fd87366a6c0b1058354a5d4312
Files:
1
classes/cpan-base.bbclass
Diffs:
#
# mt diff -r5f43096a239a7ac66c7046feb414e8279db8f4bc -r399705dfa7f6a6fd87366a6c0b1058354a5d4312
#
#
#
# patch "classes/cpan-base.bbclass"
# from [d89ce257c7c72930db3c8eecc1283dfa2d0e9ed4]
# to [93c49d9bada063f06e63fe09750292b0acf23328]
#
============================================================
--- classes/cpan-base.bbclass d89ce257c7c72930db3c8eecc1283dfa2d0e9ed4
+++ classes/cpan-base.bbclass 93c49d9bada063f06e63fe09750292b0acf23328
@@ -1,11 +1,11 @@ FILES_${PN} += "${libdir}/perl5 ${datadi
#
# cpan-base providers various perl related information needed for building
# cpan modules
#
FILES_${PN} += "${libdir}/perl5 ${datadir}/perl5"
-DEPENDS += "perl perl-native"
-RDEPENDS += "perl"
+DEPENDS += "${@["perl", "perl-native"][(bb.data.inherits_class('native', d))]}"
+RDEPENDS += "${@["perl", ""][(bb.data.inherits_class('native', d))]}"
# Determine the staged version of perl from the perl configuration file
def get_perl_version(d):
More information about the Openembedded-commits
mailing list