Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6CCF6C433F5 for ; Tue, 8 Feb 2022 20:41:22 +0000 (UTC) Subject: Can't Locate Module in @INC - you may need to install the Module issue... To: yocto@lists.yoctoproject.org From: bgctkd@gmail.com X-Originating-Location: Boston, Massachusetts, US (136.226.72.101) X-Originating-Platform: Windows Chrome 98 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Tue, 08 Feb 2022 12:41:21 -0800 Message-ID: Content-Type: multipart/alternative; boundary="O8bqwb2zVRcgEeUwmT5s" List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 08 Feb 2022 20:41:22 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto/message/56112 --O8bqwb2zVRcgEeUwmT5s Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello All, I'm getting an error trying create/use a recipe i created for Pearl Module = Const::Fast https://cpan.metacpan.org/authors/id/L/LE/LEONT/Const-Fast-0.014.tar.gz *It has a Build.PL file as follows:* use 5.0.0.8 use Module::Build::Tiny 0.21; Build_PL(); I have built ModuleBuild::Tiny as well. *(meta-cpan has a recipe for Build:= :Tiny* )=C2=A0 And (think I) am placing it as a dependency for Const::Fast.= however... My issue (or my first Issue)=C2=A0 I guess is how to populate Module Build:= :Tiny into *recipe-sysroot-native.* When I attempt to build my recipe I get an error as follows: Can't locate Module/Build/Tiny.pm in @INC (you may need to install the Modu= le::Build::Tiny module) (@INC contains: < list of paths it is looking for>) Paths @INC (in build/tmp/work) is using to fine Module/Build/Tiny.pm are al= ong these lines: /all-poky-linux/const-fast-perl/0.014-r0/ *recipe-sysroot-native* / /usr/lib/perl5/site_perl/5.34.0/x86_64-linux /usr/lib/perl5/site_perl/5.34.0 /usr/lib/perl5/vendor_perl/5.34.0 /usr/lib/perl5/5.34.0/x86_64-linux /usr/lib/perl5/5.34.0 /x86_64-linux/perl-native/5.34.0-r0/ *recipe-sysroot-nativ* e/usr/lib/perl5= / /site_perl/5.34.0/x86_64-linux /site_perl/5.34.0 /vendor_perl/5.34.0/x86_64-linux /vendor_perl/5.34.0 /5.34.0/x86_64-linux /5.34.0) at Build.PL line 2. #| BEGIN failed--compilation aborted at Build.PL line 2. Paths the module is found are along these lines (found via manual search): #./all-poky-linux/module-build-tiny-perl/0.021-r0/sysroot-destdir/usr/lib/p= erl5/vendor_perl/5.34.0/Module/Build/Tiny.pm ./all-poky-linux/module-build-tiny-perl/0.021-r0/package/usr/lib/perl5/vend= or_perl/5.34.0/Module/Build/Tiny.pm *My const-fast Recipe is as follows=C2=A0 const-fast-perl_014.bb:* DESCRIPTION =3D "This module provides Const::Fast Functionality" SECTION =3D "libs" LICENSE =3D "Artisticv1 | GPLv1+" PR =3D "r0" MAINTAINER=3D "Poky " HOMEPAGE=3D "https://metacpan.org/release/Const-Fast" LIC_FILES_CHKSUM =3D "file://${COMMON_LICENSE_DIR}/Artistic-1.0;md5=3Dcda03= bbdc3c1951996392b872397b798 \ file://${COMMON_LICENSE_DIR}/GPL-1.0-or-later;md5=3D30c0b8a5048cc2f4be5ff15= ef0d8cf61" SRC_URI =3D "https://cpan.metacpan.org/authors/id/L/LE/LEONT/Const-Fast-0.0= 14.tar.gz" SRC_URI[sha256sum] =3D "f805953a08c57846a16a4d85d7b766398afaf7c36c1465fcb1d= ea09e5fa394db" S =3D "${WORKDIR}/Const-Fast-${PV}" inherit cpan_build allarch RDEPENDS_${PN} +=3D "extutils-config-perl" RDEPENDS_${PN} +=3D "extutils-helpers-perl" RDEPENDS_${PN} +=3D "extutils-installpaths-perl" DEPENDS +=3D "extutils-config-perl-native" DEPENDS +=3D "extutils-helpers-perl-native" DEPENDS +=3D "extutils-installpaths-perl-native" DEPENDS +=3D "libmodule-build-perl module-build-tiny-perl" BBCLASSEXTEND =3D "native" *My module-build-tiny-perl_0.021.bb is as follows:* DESCRIPTION =3D "Many Perl distributions use a Build.PL file instead of a M= akefile.PL file \ to drive distribution configuration, build, test and installation. \ Traditionally, Build.PL uses Module::Build as the underlying build system. = \ This module provides a simple, lightweight, drop-in replacement." SECTION =3D "libs" LICENSE =3D "Artisticv1 | GPLv1+" PR =3D "r0" MAINTAINER=3D "Poky " HOMEPAGE=3D "https://metacpan.org/release/Module-Build-Tiny" LIC_FILES_CHKSUM =3D "file://${COMMON_LICENSE_DIR}/Artistic-1.0;md5=3Dcda03= bbdc3c1951996392b872397b798 \ file://${COMMON_LICENSE_DIR}/GPL-1.0-or-later;md5=3D30c0b8a5048cc2f4be5ff15= ef0d8cf61" SRC_URI =3D "https://cpan.metacpan.org/authors/id/L/LE/LEONT/Module-Build-T= iny-0.021.tar.gz" SRC_URI[sha256sum] =3D "65e516c2e99d63100fdf4dbfa35489d0562718a0e8d2b885e9d= aaa7bc174b43e" RDEPENDS_${PN} +=3D "extutils-config-perl" RDEPENDS_${PN} +=3D "extutils-helpers-perl" RDEPENDS_${PN} +=3D "extutils-installpaths-perl" DEPENDS +=3D "extutils-config-perl-native" DEPENDS +=3D "extutils-helpers-perl-native" DEPENDS +=3D "extutils-installpaths-perl-native" S =3D "${WORKDIR}/Module-Build-Tiny-${PV}" inherit cpan_build allarch BBCLASSEXTEND =3D "native" Regards, Bruce --O8bqwb2zVRcgEeUwmT5s Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
Hello All,

I'm getting an error trying create/use a recipe i created for Pearl Mo= dule Const::Fast
It has a Build.PL file as follows:
use 5.0.0.8
use Module::Build::Tiny 0.21;
Build_PL();
 
I have built ModuleBuild::Tiny as well. (meta-cpan has a recip= e for Build::Tiny)  And (think I) am placing it as a dependen= cy for Const::Fast. however... 
My issue (or my first Issue)&nbs= p; I guess is how to populate Module Build::Tiny into recipe-sysroo= t-native.
 
When I attempt to build my recipe I get an error as follows:
 Can't locate Module/Build/Tiny.p= m in @INC (you may need to install the Module::Build::Tiny module) (@INC co= ntains: < list of paths it is looking for>)
 
Paths @INC (in build/tmp/w= ork) is using to fine Module/Build/Tiny.pm are along these lines:
/all-poky-linux/const-fast-perl/0.014-r0/recipe-sysroot-native= /<paths below>
/usr/lib/perl5/site_perl/5.3= 4.0/x86_64-linux 
/usr/lib/perl5/site_perl/5.3= 4.0 
/usr/lib/perl5/vendor_perl/5= .34.0 
/usr/lib/perl5/5.34.0/x86_64= -linux 
/usr/lib/perl5/5.34.0 <= /div>
 
/x86_64-linux/perl-native/5.34.0-r0/recipe-sysroot-native/usr/lib/perl5/<paths below>
/site_perl/5.34.0/x86_64-lin= ux 
/site_perl/5.34.0 
/vendor_perl/5.34.0/x86_64-l= inux
/vendor_perl/5.34.0
/5.34.0/x86_64-linux
/5.34.0) at Build.PL line 2.=
#| BEGIN failed--compilation aborted at Build.PL line 2.
 
Paths the module is found = are along these lines (found via manual search):
#./all-poky-linux/module-build-tiny-perl/0.021-r0/sysroot-destdir/usr/= lib/perl5/vendor_perl/5.34.0/Module/Build/Tiny.pm
./all-poky-linux/module-build-tiny-perl/0.021-r0/package/usr/lib/perl5= /vendor_perl/5.34.0/Module/Build/Tiny.pm
 
 
 
My const-fast Recipe is as follows  const-fast-perl_014.b= b:
 
DESCRIPTION =3D "This module provides Const::Fast Functionality"
SECTION =3D "libs"
LICENSE =3D "Artisticv1 | GPLv1+"
PR =3D "r0"
MAINTAINER=3D "Poky <poky@= yoctoproject.org>"
HOMEPAGE=3D "https://metacpan= .org/release/Const-Fast"
LIC_FILES_CHKSUM =3D "file://${COMMON_LICENSE_DIR}/Artistic-1.0;md5=3D= cda03bbdc3c1951996392b872397b798 \
file://${COMMON_LICENSE_DIR}/GPL-1.0-or-later;md5=3D30c0b8a5048cc2f4be= 5ff15ef0d8cf61"
SRC_URI =3D "https://cpan.metacpan.org/authors/id/L/LE/LEONT/Const-Fas= t-0.014.tar.gz"
SRC_URI[sha256sum] =3D "f805953a08c57846a16a4d85d7b766398afaf7c36c1465= fcb1dea09e5fa394db"
S =3D "${WORKDIR}/Const-Fast-${PV}"
inherit cpan_build allarch
RDEPENDS_${PN} +=3D "extutils-config-perl"
RDEPENDS_${PN} +=3D "extutils-helpers-perl"
RDEPENDS_${PN} +=3D "extutils-installpaths-perl"
DEPENDS +=3D "extutils-config-perl-native"
DEPENDS +=3D "extutils-helpers-perl-native"
DEPENDS +=3D "extutils-installpaths-perl-native"
DEPENDS +=3D "libmodule-build-perl module-build-tiny-perl"
BBCLASSEXTEND =3D "native"
 
My module-build-tiny-perl_0.021.bb is as follows:
 
DESCRIPTION =3D "Many Perl distributions use a Build.PL file instead o= f a Makefile.PL file \
to drive distribution configuration, build, test and installation. \
Traditionally, Build.PL uses Module::Build as the underlying build sys= tem. \
This module provides a simple, lightweight, drop-in replacement."
SECTION =3D "libs"
LICENSE =3D "Artisticv1 | GPLv1+"
PR =3D "r0"
MAINTAINER=3D "Poky <poky@= yoctoproject.org>"
HOMEPAGE=3D "https://metacpan= .org/release/Module-Build-Tiny"
LIC_FILES_CHKSUM =3D "file://${COMMON_LICENSE_DIR}/Artistic-1.0;md5=3D= cda03bbdc3c1951996392b872397b798 \
file://${COMMON_LICENSE_DIR}/GPL-1.0-or-later;md5=3D30c0b8a5048cc2f4be= 5ff15ef0d8cf61"
SRC_URI =3D "https://cpan.metacpan.org/authors/id/L/LE/LEONT/Module-Bu= ild-Tiny-0.021.tar.gz"
SRC_URI[sha256sum] =3D "65e516c2e99d63100fdf4dbfa35489d0562718a0e8d2b8= 85e9daaa7bc174b43e"
RDEPENDS_${PN} +=3D "extutils-config-perl"
RDEPENDS_${PN} +=3D "extutils-helpers-perl"
RDEPENDS_${PN} +=3D "extutils-installpaths-perl"
DEPENDS +=3D "extutils-config-perl-native"
DEPENDS +=3D "extutils-helpers-perl-native"
DEPENDS +=3D "extutils-installpaths-perl-native"
S =3D "${WORKDIR}/Module-Build-Tiny-${PV}"
inherit cpan_build allarch
BBCLASSEXTEND =3D "native"

Regards,

Bruce
--O8bqwb2zVRcgEeUwmT5s--