[Buildroot] [PATCH v4 1/2] libopenssl: bump version to 1.1.1a

Peter Seiderer ps.report at gmx.net
Wed Jan 16 14:27:32 UTC 2019


Hello Ryan, Arnout,

On Wed, 16 Jan 2019 12:46:54 +0100, Arnout Vandecappelle <arnout at mind.be> wrote:

> On 16/01/2019 02:40, Ryan Coe wrote:
> > I'm getting a build failure in wget with the patch.  The failure is:
> > 
> > checking for library containing psl_builtin... no
> > configure: WARNING: *** libpsl was not found. Fallback to builtin cookie checking.
> > checking for ZLIB... yes
> > checking for OPENSSL... no
> > configure: error: Package requirements (openssl) were not met:
> > 
> > Package 'openssl', required by 'virtual:world', not found
> > 
> > Consider adjusting the PKG_CONFIG_PATH environment variable if you
> > installed software in a non-standard prefix.
> > 
> > Alternatively, you may set the environment variables OPENSSL_CFLAGS
> > and OPENSSL_LIBS to avoid the need to call pkg-config.
> > See the pkg-config man page for more details.
> > make: *** [package/pkg-generic.mk:223:
> > /home/ryan/devel/buildroot/output/build/wget-1.20.1/.stamp_configured] Error 1
> > 
> > 
> > The following tweak makes things build again for me:
> > 
> > diff --git a/package/libopenssl/libopenssl.mk b/package/libopenssl/libopenssl.mk
> > index e461e08126..8046995720 100644
> > --- a/package/libopenssl/libopenssl.mk
> > +++ b/package/libopenssl/libopenssl.mk
> > @@ -74,7 +74,7 @@ define HOST_LIBOPENSSL_CONFIGURE_CMDS
> >          ./config \
> >          --prefix=$(HOST_DIR) \
> >          --openssldir=$(HOST_DIR)/etc/ssl \
> > -        --libdir=$(HOST_DIR)/lib \
> > +        --libdir=lib \
> >          -Wl,-rpath,'$(HOST_DIR)/lib' \
> >          shared \
> >          zlib-dynamic \
> > @@ -90,7 +90,7 @@ define LIBOPENSSL_CONFIGURE_CMDS
> >              linux-$(LIBOPENSSL_TARGET_ARCH) \
> >              --prefix=/usr \
> >              --openssldir=/etc/ssl \
> > -            --libdir=/lib \
> > +            --libdir=lib \
> >              $(if $(BR2_TOOLCHAIN_HAS_THREADS),threads,no-threads) \
> >              $(if $(BR2_STATIC_LIBS),no-shared,shared) \
> >              no-rc5 \  
> 
>  That is definitely not good, because it breaks things in other places.
> 
>  I think it's worth a try to remove the --libdir entirely instead, upstream is
> supposed to have fixed the libdir handling to correspond to autotools
> conventions. And if it doesn't work, we should fix it with an upstreamable patch.

Removing both libdir lines works (and fixes the installation path of the openssl.pc file which
fixes the wget compile problem), will add it to the next patch iteration...

Regards,
Peter

> 
>  Regards,
>  Arnout



More information about the buildroot mailing list