[Buildroot] [PATCH] package/socat: support OpenSSL only

Baruch Siach baruch at tkos.co.il
Thu Nov 10 10:15:53 UTC 2022


Hi Buildroot list,

On Thu, Nov 10 2022, Baruch Siach wrote:
> socat is not compatible with libressl.
>
> Fixes:
> http://autobuild.buildroot.net/results/6f0204004c52f762d6e3cb3064238d7eb3646038/

This issue only shows up in the 'next' branch where we have socat
version 1.7.4.4 which includes upstream commit 15e38be2f52 ("Fixed
SIGSEGV of OpenSSL on exit()") that exposes the issue. The (unused)
reference to OPENSSL_INIT_SETTINGS is there even in the previous 1.7.4.3
version that is in 'master'.

Note though that this patch applies to 'next', but conflicts with commit
934ec83e9d0 ("package/socat: disable openssl for static build") in
'master'. If this patch is applied to 'next' it will cause conflict when
'next' merges into 'master'.

Let me know if you want a patch against 'master' instead.

baruch

>
> Signed-off-by: Baruch Siach <baruch at tkos.co.il>
> ---
>  package/socat/socat.mk | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/package/socat/socat.mk b/package/socat/socat.mk
> index 0414c8adc855..639b3d302847 100644
> --- a/package/socat/socat.mk
> +++ b/package/socat/socat.mk
> @@ -31,7 +31,7 @@ SOCAT_DEPENDENCIES = host-autoconf
>  # incompatibile license (GPL-3.0+)
>  SOCAT_CONF_OPTS = --disable-readline
>  
> -ifeq ($(BR2_PACKAGE_OPENSSL),y)
> +ifeq ($(BR2_PACKAGE_LIBOPENSSL),y)
>  SOCAT_DEPENDENCIES += openssl
>  else
>  SOCAT_CONF_OPTS += --disable-openssl


-- 
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -



More information about the buildroot mailing list