Skip to contentSkip to conversation

tpm-tools: fix build failures caused by -Werror

PATCH New Noé Rubinstein 3 participants 4 messages Dec 28, 2015 – Jan 2, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tpm-tools: fix build failures caused by -Werror

Change-Id: I1797d19039938e750c92bb89d05b2f05c10668ad

---

I am aware there is another tpm-tools build issue, related to libintl:
http://autobuild.buildroot.org/results/ce7/ce7d971c1e590b39a3e457ee59c3031817a3c969/build-end.log

I'm leaving this one to smartin, who is currently working on a fix.

---
 .../0002-configure.in-remove-Werror.patch          | 26 ++++++++++++++++++++++
 package/tpm-tools/tpm-tools.mk                     |  1 +
 2 files changed, 27 insertions(+)
 create mode 100644 package/tpm-tools/0002-configure.in-remove-Werror.patch
package/tpm-tools/0002-configure.in-remove-Werror.patch new file +26 -0
new file mode 100644
index 0000000..4baae70
@@ -0,0 +1,26 @@
+From b060873f444d79f3f5aa388427cb1ede6665834a Mon Sep 17 00:00:00 2001
+From: Kent Yoder <[email protected]>
+Date: Mon, 5 Nov 2012 14:58:31 -0600
+Subject: [PATCH] configure.in: remove -Werror
+
+Signed-off-by: Kent Yoder <[email protected]>
+---
+ configure.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.in b/configure.in
+index da170d0..0f175be 100644
+--- a/configure.in
++++ b/configure.in
+@@ -138,7 +138,7 @@ AC_TYPE_SIZE_T
+ AC_TYPE_SIGNAL
+ AC_TYPE_UID_T
+ 
+-CFLAGS="$CFLAGS -Wall -Werror -Wreturn-type -Wsign-compare"
++CFLAGS="$CFLAGS -Wall -Wreturn-type -Wsign-compare"
+ 
+ AC_CONFIG_FILES(./Makefile		\
+ 		po/Makefile.in		\
+-- 
+2.1.4
+
package/tpm-tools/tpm-tools.mk +1 -0
index 20df489..9e4d66a 100644
@@ -11,6 +11,7 @@ TPM_TOOLS_STRIP_COMPONENTS = 2
 TPM_TOOLS_LICENSE = Common Public License Version 1.0
 TPM_TOOLS_LICENSE_FILES = LICENSE
 TPM_TOOLS_DEPENDENCIES = trousers openssl
+TPM_TOOLS_AUTORECONF = yes
 
 TPM_TOOLS_CONF_OPTS = --disable-pkcs11-support
 
Signature · 1 line
2.1.4
#1 lore raw

PATCH 1/1 tpm-tools: fix build failures caused by -Werror

No?,

Quoted 1 line · No? Rubinstein

Change-Id: I1797d19039938e750c92bb89d05b2f05c10668ad

We don't need a Change-Id. We need a Signed-off-by line as well as a reference to the autobuilder failure that you are fixing. And also a short explanation on how you're fixing the failure (backport an upstream patch, etc.).

package/tpm-tools/tpm-tools.mk TPM_TOOLS_STRIP_COMPONENTS = 2 · line 14

Quoted 9 lines
package/tpm-tools/tpm-tools.mk +1 -0
index 20df489..9e4d66a 100644
@@ -11,6 +11,7 @@ TPM_TOOLS_STRIP_COMPONENTS = 2
 TPM_TOOLS_LICENSE = Common Public License Version 1.0
 TPM_TOOLS_LICENSE_FILES = LICENSE
 TPM_TOOLS_DEPENDENCIES = trousers openssl
+TPM_TOOLS_AUTORECONF = yes

Please add a comment:

# We're patching configure.in

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#2 lore raw

PATCH 1/1 tpm-tools: fix build failures caused by -Werror

Isn't better to fix the code, instead of taking off -Werror ?

If it is not possible to fix the code (a huge amount of errors, for instance, caused by a new compiler version), maybe some -Wno directive would be better.

Thanks

----- Mensagem original -----

Quoted 42 lines

De: "Thomas Petazzoni" <[email protected]>
Para: "No? Rubinstein" <[email protected]>
Cc: "No? Rubinstein" <[email protected]>, buildroot at buildroot.org
Enviadas: Segunda-feira, 28 de dezembro de 2015 11:37:49
Assunto: Re: [Buildroot] [PATCH] tpm-tools: fix build failures caused by -Werror

No?,

Quoted 1 line · No? Rubinstein

Change-Id: I1797d19039938e750c92bb89d05b2f05c10668ad

We don't need a Change-Id. We need a Signed-off-by line as well as a reference to the autobuilder failure that you are fixing. And also a short explanation on how you're fixing the failure (backport an upstream patch, etc.).

package/tpm-tools/tpm-tools.mk TPM_TOOLS_STRIP_COMPONENTS = 2 · line 14

Quoted 9 lines
package/tpm-tools/tpm-tools.mk +1 -0
index 20df489..9e4d66a 100644
@@ -11,6 +11,7 @@ TPM_TOOLS_STRIP_COMPONENTS = 2
 TPM_TOOLS_LICENSE = Common Public License Version 1.0
 TPM_TOOLS_LICENSE_FILES = LICENSE
 TPM_TOOLS_DEPENDENCIES = trousers openssl
+TPM_TOOLS_AUTORECONF = yes

Please add a comment:

# We're patching configure.in

Thanks!

Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

Signature · 5 lines
Dr. Henrique Marks
henrique.marks at datacom.ind.br
R. Am?rica, 1000 - Eldorado do Sul - RS
CEP: 92990-000 - Brasil
Fone: +55 51 3933 3000 - Ramal 3466
#3 lore raw

PATCH 1/1 tpm-tools: fix build failures caused by -Werror

Hi Henrique,

Quoted 1 line · DATACOM - henrique.marks

Isn't better to fix the code, instead of taking off -Werror ?

Well, -Werror tends to cause build failures on new versions of compilers, and there are already several patches in Buildroot that remove -Werror from various packages' build systems. Even upstream removed -Werror, so I think it is the best thing we can do.

However this case does look like a bug so I will look into fixing this upstream.

Signature · 1 line
No? Rubinstein.