Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] syslog-ng: fix build with newer json-c
@ 2017-12-30 21:38 Baruch Siach
  2017-12-30 21:49 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Baruch Siach @ 2017-12-30 21:38 UTC (permalink / raw)
  To: buildroot

Add upstream patch fixing build with json-c version 0.13.

Fixes:
http://autobuild.buildroot.net/results/e12/e12b88d082f053247863124f4802cafc73278c8c/
http://autobuild.buildroot.net/results/cdc/cdc941b47fe04e8e99393004b750451490dc8c8e/
http://autobuild.buildroot.net/results/b85/b854c97b5af5125394246298d010baafa175a4c3/

Cc: Chris Packham <judge.packham@gmail.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---
 ...1-modules-json-Adaptions-for-json-c-v0.13.patch | 39 ++++++++++++++++++++++
 1 file changed, 39 insertions(+)
 create mode 100644 package/syslog-ng/0001-modules-json-Adaptions-for-json-c-v0.13.patch

diff --git a/package/syslog-ng/0001-modules-json-Adaptions-for-json-c-v0.13.patch b/package/syslog-ng/0001-modules-json-Adaptions-for-json-c-v0.13.patch
new file mode 100644
index 000000000000..b307ab5acfe0
--- /dev/null
+++ b/package/syslog-ng/0001-modules-json-Adaptions-for-json-c-v0.13.patch
@@ -0,0 +1,39 @@
+From 1b824dd6389e209eab752d5a698c6093f311e3e3 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= <besser82@fedoraproject.org>
+Date: Mon, 11 Dec 2017 15:46:06 +0100
+Subject: [PATCH] modules/json: Adaptions for json-c v0.13
+
+Signed-off-by: Baruch Siach <baruch@tkos.co.il>
+---
+Patch status: upstream commit 1b824dd6389e
+
+ modules/json/json-parser.c | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/modules/json/json-parser.c b/modules/json/json-parser.c
+index 0368ed8f7ffe..356df48b9fc7 100644
+--- a/modules/json/json-parser.c
++++ b/modules/json/json-parser.c
+@@ -20,6 +20,8 @@
+  * COPYING for details.
+  */
+ 
++#define JSON_C_VER_013 (13 << 8)
++
+ #include "json-parser.h"
+ #include "dot-notation.h"
+ #include "scratch-buffers.h"
+@@ -28,7 +30,10 @@
+ #include <ctype.h>
+ 
+ #include <json.h>
++
++#if (!defined(JSON_C_VERSION_NUM)) || (JSON_C_VERSION_NUM < JSON_C_VER_013)
+ #include <json_object_private.h>
++#endif
+ 
+ typedef struct _JSONParser
+ {
+-- 
+2.15.1
+
-- 
2.15.1

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

* [Buildroot] [PATCH] syslog-ng: fix build with newer json-c
  2017-12-30 21:38 [Buildroot] [PATCH] syslog-ng: fix build with newer json-c Baruch Siach
@ 2017-12-30 21:49 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2017-12-30 21:49 UTC (permalink / raw)
  To: buildroot

Hello,

On Sat, 30 Dec 2017 23:38:07 +0200, Baruch Siach wrote:
> Add upstream patch fixing build with json-c version 0.13.
> 
> Fixes:
> http://autobuild.buildroot.net/results/e12/e12b88d082f053247863124f4802cafc73278c8c/
> http://autobuild.buildroot.net/results/cdc/cdc941b47fe04e8e99393004b750451490dc8c8e/
> http://autobuild.buildroot.net/results/b85/b854c97b5af5125394246298d010baafa175a4c3/
> 
> Cc: Chris Packham <judge.packham@gmail.com>
> Signed-off-by: Baruch Siach <baruch@tkos.co.il>
> ---
>  ...1-modules-json-Adaptions-for-json-c-v0.13.patch | 39 ++++++++++++++++++++++
>  1 file changed, 39 insertions(+)
>  create mode 100644 package/syslog-ng/0001-modules-json-Adaptions-for-json-c-v0.13.patch

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

end of thread, other threads:[~2017-12-30 21:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-30 21:38 [Buildroot] [PATCH] syslog-ng: fix build with newer json-c Baruch Siach
2017-12-30 21:49 ` Thomas Petazzoni

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