Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] support/dependencies/dependencies.sh: require IPC::Cmd perl package for libopenssl
@ 2023-07-16  7:28 Bernd Kuhls
  2023-07-18 20:43 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 2+ messages in thread
From: Bernd Kuhls @ 2023-07-16  7:28 UTC (permalink / raw)
  To: buildroot

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.

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
 support/dependencies/dependencies.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/support/dependencies/dependencies.sh b/support/dependencies/dependencies.sh
index 58f44c8723..6e7d067ccd 100755
--- a/support/dependencies/dependencies.sh
+++ b/support/dependencies/dependencies.sh
@@ -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"
-- 
2.39.2

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Buildroot] [PATCH 1/1] support/dependencies/dependencies.sh: require IPC::Cmd perl package for libopenssl
  2023-07-16  7:28 [Buildroot] [PATCH 1/1] support/dependencies/dependencies.sh: require IPC::Cmd perl package for libopenssl Bernd Kuhls
@ 2023-07-18 20:43 ` Thomas Petazzoni via buildroot
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-07-18 20:43 UTC (permalink / raw)
  To: Bernd Kuhls; +Cc: buildroot

On Sun, 16 Jul 2023 09:28:33 +0200
Bernd Kuhls <bernd@kuhls.net> 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.
> 
> 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.
> 
> Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
> ---
>  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
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-07-18 20:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-16  7:28 [Buildroot] [PATCH 1/1] support/dependencies/dependencies.sh: require IPC::Cmd perl package for libopenssl Bernd Kuhls
2023-07-18 20:43 ` Thomas Petazzoni via buildroot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox