Skip to contentSkip to conversation

sanity.bbclass: Check for additional native perl modules.

PATCH New Philip Balister 1 participant 1 message Jan 3, 2024

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 sanity.bbclass: Check for additional native perl modules.

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]

---
 meta/classes-global/sanity.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes-global/sanity.bbclass +1 -1
index 9b824915f2..1bd74e1935 100644
@@ -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 ':std'", "FindBin" )
     errresult = ''
     for m in modules:
         try:
Signature · 1 line
2.43.0