]> 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, 11 Dec 2017 22:01:52 +0000 (22:01 +0000)
commit6907280335dd47f2fd3a3f4cf809357c3caff65d
treed93e2f03cdb72036b8dbf8cf2fe388413a583c39
parent1bde969058f7e832db0e7eb9c6f7ef00f027628c
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>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/classes/cpan-base.bbclass
meta/classes/perl-version.bbclass [new file with mode: 0644]