All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] package/optee-client: disable -Werror
Date: Sat, 6 Mar 2021 23:53:53 +0100	[thread overview]
Message-ID: <20210306225353.GX2275@scaer> (raw)
In-Reply-To: <20201101204349.2553267-1-fontaine.fabrice@gmail.com>

Fabrice, All,

On 2020-11-01 21:43 +0100, Fabrice Fontaine spake thusly:
> Disable -Werror thanks to CFG_WERROR which is available since version
> 3.3.0 and
> https://github.com/OP-TEE/optee_client/commit/5355fdb841bce4f7cce3dd37fc31fa91bd625c98
> to fix the following build failure with optee-client 3.11.0:
> 
> /home/giuliobenetti/autobuild/run/instance-2/output-1/build/optee-client-3.11.0/libckteec/src/pkcs11_processing.c: In function 'ck_create_object':
> /home/giuliobenetti/autobuild/run/instance-2/output-1/build/optee-client-3.11.0/libckteec/src/pkcs11_processing.c:22:9: error: missing initializer for field 'buffer' of 'struct serializer' [-Werror=missing-field-initializers]
>   struct serializer obj = { };
>          ^
> 
> Fixes:
>  - http://autobuild.buildroot.org/results/a3d663adb943aee814180f01d6e153b3309be962
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

After reading the thread, I decided to apply this (oldish) patch to
next.

Indeed, as you mentionned in the thread, we do try to remove -Werror
when we hit issues with it.

-Werror is very important for the developpers of a package, because they
indeed can find and fix their code as early as possible.

But for downstreams, that does not help at all, especially since there
are a myriad of possible combination of binutils versions, compiler
versins, C libraries flavours and versions, optimisations flags and
architectures, that it is virtually impossible to guarantee a no-warning
build on all those combinations, especially when a new version of any of
those gets out.

So, applied to next, thanks.

(Yes, I know we just bumped the version of optee-client, and that we do
not yet have any -Werror issue with it, but should we have any, the
answer would be to apply that patch anyway. So no need to wait for the
first issue to popup...)

Regards,
Yann E. MORIN.

> ---
>  package/optee-client/optee-client.mk | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/package/optee-client/optee-client.mk b/package/optee-client/optee-client.mk
> index 8108fc2130..7f613f724d 100644
> --- a/package/optee-client/optee-client.mk
> +++ b/package/optee-client/optee-client.mk
> @@ -11,7 +11,8 @@ OPTEE_CLIENT_LICENSE_FILES = LICENSE
>  OPTEE_CLIENT_INSTALL_STAGING = YES
>  
>  OPTEE_CLIENT_CONF_OPTS = \
> -	-DCFG_TEE_FS_PARENT_PATH=$(BR2_PACKAGE_OPTEE_CLIENT_TEE_FS_PATH)
> +	-DCFG_TEE_FS_PARENT_PATH=$(BR2_PACKAGE_OPTEE_CLIENT_TEE_FS_PATH) \
> +	-DCFG_WERROR=OFF
>  
>  define OPTEE_CLIENT_INSTALL_INIT_SYSV
>  	$(INSTALL) -m 0755 -D $(OPTEE_CLIENT_PKGDIR)/S30optee \
> -- 
> 2.28.0
> 
> _______________________________________________
> buildroot mailing list
> buildroot at 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.  |
'------------------------------^-------^------------------^--------------------'

  parent reply	other threads:[~2021-03-06 22:53 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-01 20:43 [Buildroot] [PATCH 1/1] package/optee-client: disable -Werror Fabrice Fontaine
2020-11-02  6:07 ` Etienne Carriere
2020-11-02  7:10   ` Fabrice Fontaine
2020-11-02  8:16     ` Etienne Carriere
2020-11-03  9:57       ` Etienne Carriere
2020-11-03 13:48         ` Etienne Carriere
2020-11-03 17:32           ` Fabrice Fontaine
2020-11-03 17:56             ` Etienne Carriere
2021-03-06 22:53 ` Yann E. MORIN [this message]
2021-03-06 23:11   ` Etienne Carriere
2021-03-17 18:57   ` Peter Korsgaard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210306225353.GX2275@scaer \
    --to=yann.morin.1998@free.fr \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.