Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/tpm2-tools: disable on uClibc, due to c16rtomb()
@ 2021-07-31 10:16 Thomas Petazzoni
  2021-07-31 11:14 ` Yann E. MORIN
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Petazzoni @ 2021-07-31 10:16 UTC (permalink / raw)
  To: Buildroot List; +Cc: Fabrice Fontaine, Thomas Petazzoni

Since upstream commit eca77c1419617a8e2d6d8008bac716878b0c27ca, the
c16rtomb() wide-char function is used by tpm2-tools, but this function
is not implemented by uClibc.

This commit first appeared in tpm-tools 4.2, and therefore the bump
from version 4.1.2 to 4.3.2 in commit
91aa6efa8588bf7617cc4a640eb55052b524ceb7 causes a build failure on
uClibc configurations.

An issue was reported at
https://github.55860.com/tpm2-software/tpm2-tools/issues/2785, but in
the mean time, we disable tpm2-tools on uClibc configurations.

Fixes:

  http://autobuild.buildroot.net/results/f91950b1e5620844bb04a65252d0836da736965d/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
 package/tpm2-tools/Config.in | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/package/tpm2-tools/Config.in b/package/tpm2-tools/Config.in
index cbdfeb6801..3be947648f 100644
--- a/package/tpm2-tools/Config.in
+++ b/package/tpm2-tools/Config.in
@@ -2,6 +2,8 @@ config BR2_PACKAGE_TPM2_TOOLS
 	bool "tpm2-tools"
 	depends on !BR2_STATIC_LIBS # tpm2-tss
 	depends on BR2_USE_WCHAR
+	# c16rtomb() not implemented in uClibc
+	depends on BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL
 	select BR2_PACKAGE_LIBCURL
 	select BR2_PACKAGE_OPENSSL
 	select BR2_PACKAGE_TPM2_TSS
@@ -21,5 +23,6 @@ config BR2_PACKAGE_TPM2_TOOLS
 
 	  https://github.com/tpm2-software/tpm2-tools
 
-comment "tpm2-tools needs a toolchain w/ dynamic library, wchar"
-	depends on BR2_STATIC_LIBS || !BR2_USE_WCHAR
+comment "tpm2-tools needs a glibc or musl toolchain w/ dynamic library, wchar"
+	depends on BR2_STATIC_LIBS || !BR2_USE_WCHAR || \
+		!(BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL)
-- 
2.31.1

_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH] package/tpm2-tools: disable on uClibc, due to c16rtomb()
  2021-07-31 10:16 [Buildroot] [PATCH] package/tpm2-tools: disable on uClibc, due to c16rtomb() Thomas Petazzoni
@ 2021-07-31 11:14 ` Yann E. MORIN
  0 siblings, 0 replies; 2+ messages in thread
From: Yann E. MORIN @ 2021-07-31 11:14 UTC (permalink / raw)
  To: Thomas Petazzoni; +Cc: Fabrice Fontaine, Buildroot List

Thomas, All,

On 2021-07-31 12:16 +0200, Thomas Petazzoni spake thusly:
> Since upstream commit eca77c1419617a8e2d6d8008bac716878b0c27ca, the
> c16rtomb() wide-char function is used by tpm2-tools, but this function
> is not implemented by uClibc.
> 
> This commit first appeared in tpm-tools 4.2, and therefore the bump
> from version 4.1.2 to 4.3.2 in commit
> 91aa6efa8588bf7617cc4a640eb55052b524ceb7 causes a build failure on
> uClibc configurations.
> 
> An issue was reported at
> https://github.55860.com/tpm2-software/tpm2-tools/issues/2785, but in
> the mean time, we disable tpm2-tools on uClibc configurations.
> 
> Fixes:
> 
>   http://autobuild.buildroot.net/results/f91950b1e5620844bb04a65252d0836da736965d/
> 
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>

Applied to master, thanks.

Regards,
Yann E. MORIN.

> ---
>  package/tpm2-tools/Config.in | 7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)
> 
> diff --git a/package/tpm2-tools/Config.in b/package/tpm2-tools/Config.in
> index cbdfeb6801..3be947648f 100644
> --- a/package/tpm2-tools/Config.in
> +++ b/package/tpm2-tools/Config.in
> @@ -2,6 +2,8 @@ config BR2_PACKAGE_TPM2_TOOLS
>  	bool "tpm2-tools"
>  	depends on !BR2_STATIC_LIBS # tpm2-tss
>  	depends on BR2_USE_WCHAR
> +	# c16rtomb() not implemented in uClibc
> +	depends on BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL
>  	select BR2_PACKAGE_LIBCURL
>  	select BR2_PACKAGE_OPENSSL
>  	select BR2_PACKAGE_TPM2_TSS
> @@ -21,5 +23,6 @@ config BR2_PACKAGE_TPM2_TOOLS
>  
>  	  https://github.com/tpm2-software/tpm2-tools
>  
> -comment "tpm2-tools needs a toolchain w/ dynamic library, wchar"
> -	depends on BR2_STATIC_LIBS || !BR2_USE_WCHAR
> +comment "tpm2-tools needs a glibc or musl toolchain w/ dynamic library, wchar"
> +	depends on BR2_STATIC_LIBS || !BR2_USE_WCHAR || \
> +		!(BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL)
> -- 
> 2.31.1
> 
> _______________________________________________
> buildroot mailing list
> buildroot@busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

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

end of thread, other threads:[~2021-07-31 11:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-31 10:16 [Buildroot] [PATCH] package/tpm2-tools: disable on uClibc, due to c16rtomb() Thomas Petazzoni
2021-07-31 11:14 ` Yann E. MORIN

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