Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] package/hiredis: fix build with gcc 4.8
Date: Sat,  5 Sep 2020 23:52:22 +0200	[thread overview]
Message-ID: <20200905215222.2066726-1-fontaine.fabrice@gmail.com> (raw)

This patch is needed to fix a build failure with hiredis 1.0.0

Fixes:
 - http://autobuild.buildroot.org/results/f7aa90d6d6750fb8bf46334513df09360a8c1c7f

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 .../0003-Explicitly-set-c99-in-CMake.patch    | 28 +++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 package/hiredis/0003-Explicitly-set-c99-in-CMake.patch

diff --git a/package/hiredis/0003-Explicitly-set-c99-in-CMake.patch b/package/hiredis/0003-Explicitly-set-c99-in-CMake.patch
new file mode 100644
index 0000000000..7e6ef8bca4
--- /dev/null
+++ b/package/hiredis/0003-Explicitly-set-c99-in-CMake.patch
@@ -0,0 +1,28 @@
+From 13a35bdb64615e381c5e1151cdd4e78bba71a6db Mon Sep 17 00:00:00 2001
+From: michael-grunder <michael.grunder@gmail.com>
+Date: Fri, 28 Aug 2020 12:35:01 -0700
+Subject: [PATCH] Explicitly set c99 in CMake
+
+See #869
+
+[Retrieved from:
+https://github.com/redis/hiredis/commit/13a35bdb64615e381c5e1151cdd4e78bba71a6db]
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+---
+ CMakeLists.txt | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 1beccc69a..4cbd438d7 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -22,6 +22,9 @@ MESSAGE("Detected version: ${VERSION}")
+ 
+ PROJECT(hiredis VERSION "${VERSION}")
+ 
++# Hiredis requires C99
++SET(CMAKE_C_STANDARD 99)
++
+ SET(ENABLE_EXAMPLES OFF CACHE BOOL "Enable building hiredis examples")
+ 
+ SET(hiredis_sources
-- 
2.28.0

             reply	other threads:[~2020-09-05 21:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-05 21:52 Fabrice Fontaine [this message]
2020-09-06 12:34 ` [Buildroot] [PATCH 1/1] package/hiredis: fix build with gcc 4.8 Thomas Petazzoni

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=20200905215222.2066726-1-fontaine.fabrice@gmail.com \
    --to=fontaine.fabrice@gmail.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox