On Tue, 2024-01-02 at 16:14 -0500, Philip Balister wrote:
> On 1/2/24 11:45, Richard Purdie wrote:
> > On Tue, 2024-01-02 at 11:40 -0500, Philip Balister wrote:
> > > On 1/2/24 10:34, Richard Purdie wrote:
> > > > On Tue, 2024-01-02 at 06:21 -0500, Philip Balister wrote:
> > > > > Since we use the build systems native perl, we need to check that all
> > > > > perl modules required for a build are installed. For a default Fedora 
> > > > > 39
> > > > > install, autoconf-native and libxcrypt both fail to build due to 
> > > > > missing
> > > > > perl modules. After taking careful notes, this commits adds checks for
> > > > > File::Compare, File::Copy, open, and FindBin.
> > > > > 
> > > > > [YOCTO #14691]
> > > > > 
> > > > > Signed-off-by: Philip Balister <[email protected]>
> > > > > ---
> > > > >    meta/classes-global/sanity.bbclass | 2 +-
> > > > >    1 file changed, 1 insertion(+), 1 deletion(-)
> > > > > 
> > > > > diff --git a/meta/classes-global/sanity.bbclass 
> > > > > b/meta/classes-global/sanity.bbclass
> > > > > index 9b824915f2..57353b9478 100644
> > > > > --- a/meta/classes-global/sanity.bbclass
> > > > > +++ b/meta/classes-global/sanity.bbclass
> > > > > @@ -532,7 +532,7 @@ def check_git_version(sanity_data):
> > > > >    def check_perl_modules(sanity_data):
> > > > >        import subprocess
> > > > >        ret = ""
> > > > > -    modules = ( "Text::ParseWords", "Thread::Queue", "Data::Dumper" )
> > > > > +    modules = ( "Text::ParseWords", "Thread::Queue", "Data::Dumper", 
> > > > > "File::Compare", "File::Copy", "open", "FindBin" )
> > > > >        errresult = ''
> > > > >        for m in modules:
> > > > >            try:
> > > > 
> > > > https://autobuilder.yoctoproject.org/typhoon/#/builders/44/builds/8418
> > > 
> > > Curious, so the Ubuntu autobuilder doesn't have the perl open module?
> > > Can you build libxcrypt on that builder?
> > > 
> > > https://bugzilla.yoctoproject.org/show_bug.cgi?id=14691#c7 shows the
> > > build failing until I install the perl-open package.
> > 
> > $ perl -e "use open"
> > open: needs explicit list of PerlIO layers at -e line 1.
> > BEGIN failed--compilation aborted at -e line 1.
> 
> Why isn't anything easy!
> 
> $ perl -e "use open ':std'"
> 
> does complete on Fedora 39. What is confusing me is why the check seems 
> to go through on my Fedora 39 , but and not the AB machine. I suppose it 
> is time to add typos to confirm the code attempts to execute.

The system caches the host checks. I suspect for testing you need a
clean tmpdir or "rm cache/sanity_info".

> I am guessing I could tell bitbake the module is "open ':std'".

I suspect that would work.

Cheers,

Richard
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193260): 
https://lists.openembedded.org/g/openembedded-core/message/193260
Mute This Topic: https://lists.openembedded.org/mt/103479426/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to