All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/rauc: fix build
@ 2022-05-31 19:46 Fabrice Fontaine
  2022-06-01 12:34 ` Thomas Petazzoni via buildroot
  2022-06-07 12:23 ` Peter Korsgaard
  0 siblings, 2 replies; 3+ messages in thread
From: Fabrice Fontaine @ 2022-05-31 19:46 UTC (permalink / raw)
  To: buildroot; +Cc: Fabrice Fontaine, Andrey Yurovsky

Fix the following build failure raised since bump to version 1.5 in
commit 41bbe8df540e2c630ad04f8db7383a7e7705f368 and
https://github.com/rauc/rauc/commit/be55282d71d967dcc0cf48303f8245cbc8fff053:

In file included from /nvmedata/autobuild/instance-22/output-1/host/bin/../sparc-buildroot-linux-uclibc/sysroot/usr/include/glib-2.0/glib.h:62,
                 from src/verity_hash.c:26:
src/verity_hash.c: In function 'verify_zero':
src/verity_hash.c:69:55: error: expected ')' before 'PRIu64'
   69 |    g_message("Spare area is not zeroed at position %" PRIu64 ".",
      |                                                       ^~~~~~

Fixes:
 - http://autobuild.buildroot.org/results/1a093c0e194a061836884419d2f50506105db01e

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 ...src-verify_hash.c-include-inttypes.h.patch | 38 +++++++++++++++++++
 1 file changed, 38 insertions(+)
 create mode 100644 package/rauc/0001-src-verify_hash.c-include-inttypes.h.patch

diff --git a/package/rauc/0001-src-verify_hash.c-include-inttypes.h.patch b/package/rauc/0001-src-verify_hash.c-include-inttypes.h.patch
new file mode 100644
index 0000000000..916c8cca0b
--- /dev/null
+++ b/package/rauc/0001-src-verify_hash.c-include-inttypes.h.patch
@@ -0,0 +1,38 @@
+From b19a9c26d88a913417e77aaf60c72cdbf393d1f6 Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Tue, 31 May 2022 21:22:36 +0200
+Subject: [PATCH] src/verify_hash.c: include inttypes.h
+
+Include inttypes.h to avoid the following build failure:
+
+In file included from /nvmedata/autobuild/instance-22/output-1/host/bin/../sparc-buildroot-linux-uclibc/sysroot/usr/include/glib-2.0/glib.h:62,
+                 from src/verity_hash.c:26:
+src/verity_hash.c: In function 'verify_zero':
+src/verity_hash.c:69:55: error: expected ')' before 'PRIu64'
+   69 |    g_message("Spare area is not zeroed at position %" PRIu64 ".",
+      |                                                       ^~~~~~
+
+Fixes:
+ - http://autobuild.buildroot.org/results/1a093c0e194a061836884419d2f50506105db01e
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+[Upstream status: https://github.com/rauc/rauc/pull/914]
+---
+ src/verity_hash.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/verity_hash.c b/src/verity_hash.c
+index db82a78..3b2c2a0 100644
+--- a/src/verity_hash.c
++++ b/src/verity_hash.c
+@@ -19,6 +19,7 @@
+  */
+ 
+ #include <errno.h>
++#include <inttypes.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+-- 
+2.35.1
+
-- 
2.35.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH 1/1] package/rauc: fix build
  2022-05-31 19:46 [Buildroot] [PATCH 1/1] package/rauc: fix build Fabrice Fontaine
@ 2022-06-01 12:34 ` Thomas Petazzoni via buildroot
  2022-06-07 12:23 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni via buildroot @ 2022-06-01 12:34 UTC (permalink / raw)
  To: Fabrice Fontaine; +Cc: Andrey Yurovsky, buildroot

On Tue, 31 May 2022 21:46:15 +0200
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> Fix the following build failure raised since bump to version 1.5 in
> commit 41bbe8df540e2c630ad04f8db7383a7e7705f368 and
> https://github.com/rauc/rauc/commit/be55282d71d967dcc0cf48303f8245cbc8fff053:
> 
> In file included from /nvmedata/autobuild/instance-22/output-1/host/bin/../sparc-buildroot-linux-uclibc/sysroot/usr/include/glib-2.0/glib.h:62,
>                  from src/verity_hash.c:26:
> src/verity_hash.c: In function 'verify_zero':
> src/verity_hash.c:69:55: error: expected ')' before 'PRIu64'
>    69 |    g_message("Spare area is not zeroed at position %" PRIu64 ".",
>       |                                                       ^~~~~~
> 
> Fixes:
>  - http://autobuild.buildroot.org/results/1a093c0e194a061836884419d2f50506105db01e
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
>  ...src-verify_hash.c-include-inttypes.h.patch | 38 +++++++++++++++++++
>  1 file changed, 38 insertions(+)
>  create mode 100644 package/rauc/0001-src-verify_hash.c-include-inttypes.h.patch

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH 1/1] package/rauc: fix build
  2022-05-31 19:46 [Buildroot] [PATCH 1/1] package/rauc: fix build Fabrice Fontaine
  2022-06-01 12:34 ` Thomas Petazzoni via buildroot
@ 2022-06-07 12:23 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2022-06-07 12:23 UTC (permalink / raw)
  To: Fabrice Fontaine; +Cc: Andrey Yurovsky, buildroot

>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:

 > Fix the following build failure raised since bump to version 1.5 in
 > commit 41bbe8df540e2c630ad04f8db7383a7e7705f368 and
 > https://github.com/rauc/rauc/commit/be55282d71d967dcc0cf48303f8245cbc8fff053:

 > In file included from /nvmedata/autobuild/instance-22/output-1/host/bin/../sparc-buildroot-linux-uclibc/sysroot/usr/include/glib-2.0/glib.h:62,
 >                  from src/verity_hash.c:26:
 > src/verity_hash.c: In function 'verify_zero':
 > src/verity_hash.c:69:55: error: expected ')' before 'PRIu64'
 >    69 |    g_message("Spare area is not zeroed at position %" PRIu64 ".",
 >       |                                                       ^~~~~~

 > Fixes:
 >  - http://autobuild.buildroot.org/results/1a093c0e194a061836884419d2f50506105db01e

 > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

Committed to 2022.02.x, thanks.

-- 
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2022-06-07 12:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-31 19:46 [Buildroot] [PATCH 1/1] package/rauc: fix build Fabrice Fontaine
2022-06-01 12:34 ` Thomas Petazzoni via buildroot
2022-06-07 12:23 ` Peter Korsgaard

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.