Skip to contentSkip to conversation

package/hiredis: bump to version 1.1.0

PATCH In review Fabrice Fontaine 2 participants 2 messages Dec 22, 2022 – Dec 23, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/hiredis: bump to version 1.1.0

- Replace first patch
- Drop second and third patches (already in version)

https://github.com/redis/hiredis/blob/v1.1.0/CHANGELOG.md

---
 ...1-CMakeLists.txt-do-not-force-SHARED.patch |  47 -----
 ...eLists.txt-respect-BUILD_SHARED_LIBS.patch | 171 ++++++++++++++++++
 ...-allow-building-without-a-C-compiler.patch |  57 ------
 .../0003-Explicitly-set-c99-in-CMake.patch    |  28 ---
 package/hiredis/hiredis.hash                  |   2 +-
 package/hiredis/hiredis.mk                    |   4 +-
 6 files changed, 174 insertions(+), 135 deletions(-)
 delete mode 100644 package/hiredis/0001-CMakeLists.txt-do-not-force-SHARED.patch
 create mode 100644 package/hiredis/0001-CMakeLists.txt-respect-BUILD_SHARED_LIBS.patch
 delete mode 100644 package/hiredis/0002-CMakeLists.txt-allow-building-without-a-C-compiler.patch
 delete mode 100644 package/hiredis/0003-Explicitly-set-c99-in-CMake.patch
package/hiredis/0001-CMakeLists.txt-do-not-force-SHARED.patch deleted +0 -47
deleted file mode 100644
index b7fdb87910..0000000000
@@ -1,47 +0,0 @@
-From 0ce382c275b087e866517c003e565f8cc4855bdd Mon Sep 17 00:00:00 2001
-From: Fabrice Fontaine <[email protected]>
-Date: Sat, 29 Aug 2020 23:19:26 +0200
-Subject: [PATCH] CMakeLists.txt: do not force SHARED
-
-Allow the user to build static libraries by removing SHARED from
-ADD_LIBRARY calls.
-
-Here is an extract of
-https://cmake.org/cmake/help/latest/command/add_library.html:
-
-"If no type is given explicitly the type is STATIC or SHARED based on
-whether the current value of the variable BUILD_SHARED_LIBS is ON."
-
-Signed-off-by: Fabrice Fontaine <[email protected]>
-[Upstream status: probably not upstreamable as is because it will
-conflict with https://github.com/redis/hiredis/pull/851. So, this patch
-will probably have to be reworked for 1.0.x]
----
- CMakeLists.txt | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 1beccc6..fed79fd 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -40,7 +40,7 @@ IF(WIN32)
-     ADD_COMPILE_DEFINITIONS(_CRT_SECURE_NO_WARNINGS WIN32_LEAN_AND_MEAN)
- ENDIF()
- 
--ADD_LIBRARY(hiredis SHARED ${hiredis_sources})
-+ADD_LIBRARY(hiredis ${hiredis_sources})
- 
- SET_TARGET_PROPERTIES(hiredis
-     PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS TRUE
-@@ -97,7 +97,7 @@ IF(ENABLE_SSL)
-     FIND_PACKAGE(OpenSSL REQUIRED)
-     SET(hiredis_ssl_sources
-         ssl.c)
--    ADD_LIBRARY(hiredis_ssl SHARED
-+    ADD_LIBRARY(hiredis_ssl
-             ${hiredis_ssl_sources})
- 
-     IF (APPLE)
--- 
-2.28.0
-
package/hiredis/0001-CMakeLists.txt-respect-BUILD_SHARED_LIBS.patch new file +171 -0

171 lines not on this page · raw message

package/hiredis/0002-CMakeLists.txt-allow-building-without-a-C-compiler.patch deleted +0 -57

57 lines not on this page · raw message

package/hiredis/0003-Explicitly-set-c99-in-CMake.patch deleted +0 -28
deleted file mode 100644
index 7e6ef8bca4..0000000000
@@ -1,28 +0,0 @@
-From 13a35bdb64615e381c5e1151cdd4e78bba71a6db Mon Sep 17 00:00:00 2001
-From: michael-grunder <[email protected]>
-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 <[email protected]>
----
- 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
package/hiredis/hiredis.hash +1 -1
index a45cf68f99..cdcbef1525 100644
@@ -1,3 +1,3 @@
 # Locally computed:
-sha256  e0ab696e2f07deb4252dda45b703d09854e53b9703c7d52182ce5a22616c3819  hiredis-1.0.2.tar.gz
+sha256  fe6d21741ec7f3fc9df409d921f47dfc73a4d8ff64f4ac6f1d95f951bf7f53d6  hiredis-1.1.0.tar.gz
 sha256  dca05ce8fc87a8261783b4aed0deef8becc9350b6aa770bc714d0c1833b896eb  COPYING
package/hiredis/hiredis.mk +2 -2
index 83f0268c2b..a5efb61acc 100644
@@ -4,8 +4,8 @@
 #
 ################################################################################
 
-HIREDIS_VERSION_MAJOR = 1.0
-HIREDIS_VERSION = $(HIREDIS_VERSION_MAJOR).2
+HIREDIS_VERSION_MAJOR = 1.1
+HIREDIS_VERSION = $(HIREDIS_VERSION_MAJOR).0
 HIREDIS_SITE = $(call github,redis,hiredis,v$(HIREDIS_VERSION))
 HIREDIS_LICENSE = BSD-3-Clause
 HIREDIS_LICENSE_FILES = COPYING
Signature · 6 lines
2.35.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Fabrice" == Fabrice Fontaine <[email protected]> writes:

- Replace first patch
- Drop second and third patches (already in version)

https://github.com/redis/hiredis/blob/v1.1.0/CHANGELOG.md

Committed, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot