[Buildroot] [PATCH 1/1] package/tinydtls: fix build with automake >= 1.16.4

Bernd Kuhls bernd.kuhls at t-online.de
Fri Nov 19 20:54:27 UTC 2021


Am Wed, 13 Oct 2021 20:43:07 +0200 schrieb Fabrice Fontaine:

> Touch ar-lib as suggested by upstream in
> https://github.com/eclipse/tinydtls/pull/103 and
> https://github.com/eclipse/tinydtls/commit/
5c6fd178e83cec7ccc40ac3ab13a15ce611da8a8
> to avoid the following build failure since bump of automake to version
> 1.16.4 in commit fe90272b5128987ee7492fff950660e05324838d:
> 
> configure.ac: error: required file 'ar-lib' not found
> 
> Fixes:
>  - http://autobuild.buildroot.org/results/
fa23cdf0d454c2ad11af3cdcc2810cd442918667
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice-
Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org>
> ---
>  package/tinydtls/tinydtls.mk | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/package/tinydtls/tinydtls.mk b/package/tinydtls/tinydtls.mk
> index 6d839bc05a..bba9e5f6fa 100644
> --- a/package/tinydtls/tinydtls.mk
> +++ b/package/tinydtls/tinydtls.mk
> @@ -16,4 +16,10 @@ TINYDTLS_AUTORECONF = YES
>  # use inttypes.h data types instead of u_intXX_t for musl compatibility
>  TINYDTLS_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -DSHA2_USE_INTTYPES_H"
>  
> +# Fix build with automake >= 1.16.4
> +define TINYDTLS_TOUCH_AR_LIB
> +	touch $(@D)/ar-lib
> +endef
> +TINYDTLS_PRE_CONFIGURE_HOOKS += TINYDTLS_TOUCH_AR_LIB
> +
>  $(eval $(autotools-package))

Tested-by: Bernd Kuhls <bernd.kuhls at t-online.de>
[build-tested defconfig 2ec4d2e0fc0a1832774a4f3ce918492427302ba2]



More information about the buildroot mailing list