]> code.ossystems Code Review - openembedded-core.git/commit
cpan-base.bbclass: Move PERLVERSION and get_perl_version to a new file
authorTom Rini <trini@konsulko.com>
Sun, 11 Jun 2017 12:36:31 +0000 (08:36 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 12 Jun 2017 14:04:11 +0000 (15:04 +0100)
commitf4edc200d3a9645f9674eae0f8d10926680ba4f8
tree1c522854d3c9ea6a57612291ef0bd1fb0252b339
parent106b59d9f96f70d133fa1421091ad280d27a5b6a
cpan-base.bbclass: Move PERLVERSION and get_perl_version to a new file

It is possible for non-CPAN recipes to contain perl modules.  These perl
modules must reside in the versioned perl library directory in order to
work in normal circumstances..  Export this logic to a separate class so
that it can be reused without the rest of the cpan logic.

Without this, dpkg will not export its perl code to the correct location
and will not be found by utilities that expect to use it.

Signed-off-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/cpan-base.bbclass
meta/classes/perl-version.bbclass [new file with mode: 0644]