[Buildroot] [PATCH 1/1] package/botan: fix uclibc build

Arnout Vandecappelle arnout at mind.be
Sun Mar 3 16:47:30 UTC 2024



On 13/02/2024 22:00, Fabrice Fontaine wrote:
> getentropy is enabled by default since version 3.0 and
> https://github.com/randombit/botan/commit/8642f2a99deefc85cdb512ee50d9f62c5e0ae4b8
> and explicit_bzero is also enabled since version 3.0 and
> https://github.com/randombit/botan/commit/e6819a380fb67c1be546dc618248b62d93266423
> resulting in the following build failure since bump to version 3.2.0 in
> commit 2f8feb66204ff661e9fd5f508e2dfd1ebc0f2813:
> 
> src/lib/entropy/getentropy/getentropy.cpp:26:9: error: '::getentropy' has not been declared; did you mean 'Getentropy'?
>     26 |    if(::getentropy(buf.data(), buf.size()) == 0) {
>        |         ^~~~~~~~~~
>        |         Getentropy
> 
> Fixes: 2f8feb66204ff661e9fd5f508e2dfd1ebc0f2813
>   - http://autobuild.buildroot.org/results/d58c4730c770467b42af426545dd917ecc5fed17
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>

  Applied to master, thanks.

  Regards,
  Arnout

> ---
>   package/botan/botan.mk | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/package/botan/botan.mk b/package/botan/botan.mk
> index 7c290f04ad..88dbfa5807 100644
> --- a/package/botan/botan.mk
> +++ b/package/botan/botan.mk
> @@ -49,7 +49,7 @@ BOTAN_CONF_OPTS += --without-stack-protector
>   endif
>   
>   ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
> -BOTAN_CONF_OPTS += --without-os-feature=getauxval
> +BOTAN_CONF_OPTS += --without-os-feature=explicit_bzero,getauxval,getentropy
>   endif
>   
>   ifeq ($(BR2_PACKAGE_BOOST_FILESYSTEM)$(BR2_PACKAGE_BOOST_SYSTEM),yy)



More information about the buildroot mailing list