Skip to contentSkip to conversation

support/dependencies/dependencies.sh: require IPC::Cmd perl package for libopenssl

PATCH Applied Bernd Kuhls 2 participants 2 messages Jul 16, 2023 – Jul 18, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 support/dependencies/dependencies.sh: require IPC::Cmd perl package for libopenssl

Fixes:
http://autobuild.buildroot.net/results/b85/b85b64162b3889d96c713030b46401e3e0a9a4e2/
http://autobuild.buildroot.net/results/fea/fea92e9c2a87a317675a7d0610c2ee467a373b69/

Since the bump to 3.0.9 with buildroot commit 3c66f65a6a549930870f2c0d98abb5ca9321d2a5 the configure script of (host-)libopenssl needs the FindBin perl module on the host:

Can't locate IPC/Cmd.pm in @INC (you may need to install the IPC::Cmd module) (@INC contains: /home/buildroot/autobuild/instance-1/output-1/ build/host-libopenssl-3.0.9/util/perl /home/buildroot/autobuild/instance -1/output-1/host/lib/perl /usr/local/lib64/perl5/5.36 /usr/local/share/ perl5/5.36 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 /home/buildroot/autobuild/instance-1/ output-1/build/host-libopenssl-3.0.9/external/perl/Text-Template-1.56/ lib) at /home/buildroot/autobuild/instance-1/output-1/build/host-lib openssl-3.0.9/util/perl/OpenSSL/config.pm line 19.
BEGIN failed--compilation aborted at /home/buildroot/autobuild/instance -1/output-1/build/host-libopenssl-3.0.9/util/perl/OpenSSL/config.pm line 19.

As this is needed for both libopenssl and host-libopenssl (which does not have a corresponding config symbol in the .config), we have to require it unconditionally.

---
 support/dependencies/dependencies.sh | 1 +
 1 file changed, 1 insertion(+)
support/dependencies/dependencies.sh +1 -0
index 58f44c8723..6e7d067ccd 100755
@@ -280,6 +280,7 @@ required_perl_modules="$required_perl_modules English" # Used by host-libxml-par
 required_perl_modules="$required_perl_modules ExtUtils::MakeMaker" # Used by host-libxml-parser-perl
 required_perl_modules="$required_perl_modules Thread::Queue" # Used by host-automake
 required_perl_modules="$required_perl_modules FindBin" # Used by (host-)libopenssl
+required_perl_modules="$required_perl_modules IPC::Cmd" # Used by (host-)libopenssl
 
 if grep -q ^BR2_PACKAGE_MOSH=y $BR2_CONFIG ; then
     required_perl_modules="$required_perl_modules diagnostics"
Signature · 6 lines
2.39.2

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 21 lines · On Sun, 16 Jul 2023 09:28:33 +0200 Bernd Kuhls <[email protected]> wrote:

Fixes:
http://autobuild.buildroot.net/results/b85/b85b64162b3889d96c713030b46401e3e0a9a4e2/
http://autobuild.buildroot.net/results/fea/fea92e9c2a87a317675a7d0610c2ee467a373b69/

Since the bump to 3.0.9 with buildroot commit 3c66f65a6a549930870f2c0d98abb5ca9321d2a5 the configure script of (host-)libopenssl needs the FindBin perl module on the host:

Can't locate IPC/Cmd.pm in @INC (you may need to install the IPC::Cmd module) (@INC contains: /home/buildroot/autobuild/instance-1/output-1/ build/host-libopenssl-3.0.9/util/perl /home/buildroot/autobuild/instance -1/output-1/host/lib/perl /usr/local/lib64/perl5/5.36 /usr/local/share/ perl5/5.36 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 /home/buildroot/autobuild/instance-1/ output-1/build/host-libopenssl-3.0.9/external/perl/Text-Template-1.56/ lib) at /home/buildroot/autobuild/instance-1/output-1/build/host-lib openssl-3.0.9/util/perl/OpenSSL/config.pm line 19.
BEGIN failed--compilation aborted at /home/buildroot/autobuild/instance -1/output-1/build/host-libopenssl-3.0.9/util/perl/OpenSSL/config.pm line 19.

Quoted 8 lines

As this is needed for both libopenssl and host-libopenssl (which does not have a corresponding config symbol in the .config), we have to require it unconditionally.

---
 support/dependencies/dependencies.sh | 1 +
 1 file changed, 1 insertion(+)

Applied to master, thanks. I have also installed the missing package on br-autobuild-1 so that it can now build openssl/host-openssl 3.x properly.

Thanks!

Thomas

Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot