diff mbox series

[meta-oe,28/39] redis: upgrade 8.10.3 -> 8.12.0

Message ID 20261127003543.2167775-29-khem.raj@oss.qualcomm.com
State New
Headers show
Series Source fixes, upgrades and build fixes | expand

Commit Message

Khem Raj Nov. 27, 2026, 12:35 a.m. UTC
8.12 adds compressed bitmaps (CRoaring integrated into the core),
a B+ tree encoding for large sorted sets, set member expiration
(SEXPIRE, STTL, ...), BLESS, ZMOVE/BZMOVE/ZMOVEMEMBER and
BITRANGEINTARRAY. It also fixes a TLS session resumption issue
across listeners/changed settings and many replication, AOF,
cluster slot migration and module crash bugs.

The bundled CRoaring dependency is new, so build it with the other
bundled deps before the server. The deps/Makefile hunk of the lua
Makefile patch is dropped as upstream now uses "AR?=ar". Add an
upstream version check based on the release listing.

The top-level install target is now an alias for deploy, which also
builds and installs the bundled modules (redisbloom, redisearch,
redisjson, redistimeseries). Install the core binaries with
src/Makefile's install target instead.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 ...0001-hiredis-use-default-CC-if-it-is-set.patch |  0
 ...akefile-to-use-environment-build-setting.patch | 15 +--------------
 .../0003-hack-to-force-use-of-libc-malloc.patch   |  0
 .../0004-src-Do-not-reset-FINAL_LIBS.patch        |  0
 ..._SOURCE-to-get-PTHREAD_MUTEX_INITIALIZER.patch |  0
 ...e-do-not-build-the-test-modules-from-all.patch |  0
 .../init-redis-server                             |  0
 .../{redis-8.10.3 => redis-8.12.0}/redis.conf     |  0
 .../{redis-8.10.3 => redis-8.12.0}/redis.service  |  0
 .../redis/{redis_8.10.3.bb => redis_8.12.0.bb}    | 10 +++++++---
 10 files changed, 8 insertions(+), 17 deletions(-)
 rename meta-oe/recipes-extended/redis/{redis-8.10.3 => redis-8.12.0}/0001-hiredis-use-default-CC-if-it-is-set.patch (100%)
 rename meta-oe/recipes-extended/redis/{redis-8.10.3 => redis-8.12.0}/0002-lua-update-Makefile-to-use-environment-build-setting.patch (77%)
 rename meta-oe/recipes-extended/redis/{redis-8.10.3 => redis-8.12.0}/0003-hack-to-force-use-of-libc-malloc.patch (100%)
 rename meta-oe/recipes-extended/redis/{redis-8.10.3 => redis-8.12.0}/0004-src-Do-not-reset-FINAL_LIBS.patch (100%)
 rename meta-oe/recipes-extended/redis/{redis-8.10.3 => redis-8.12.0}/0005-Define-_GNU_SOURCE-to-get-PTHREAD_MUTEX_INITIALIZER.patch (100%)
 rename meta-oe/recipes-extended/redis/{redis-8.10.3 => redis-8.12.0}/0006-src-Makefile-do-not-build-the-test-modules-from-all.patch (100%)
 rename meta-oe/recipes-extended/redis/{redis-8.10.3 => redis-8.12.0}/init-redis-server (100%)
 rename meta-oe/recipes-extended/redis/{redis-8.10.3 => redis-8.12.0}/redis.conf (100%)
 rename meta-oe/recipes-extended/redis/{redis-8.10.3 => redis-8.12.0}/redis.service (100%)
 rename meta-oe/recipes-extended/redis/{redis_8.10.3.bb => redis_8.12.0.bb} (92%)
diff mbox series

Patch

diff --git a/meta-oe/recipes-extended/redis/redis-8.10.3/0001-hiredis-use-default-CC-if-it-is-set.patch b/meta-oe/recipes-extended/redis/redis-8.12.0/0001-hiredis-use-default-CC-if-it-is-set.patch
similarity index 100%
rename from meta-oe/recipes-extended/redis/redis-8.10.3/0001-hiredis-use-default-CC-if-it-is-set.patch
rename to meta-oe/recipes-extended/redis/redis-8.12.0/0001-hiredis-use-default-CC-if-it-is-set.patch
diff --git a/meta-oe/recipes-extended/redis/redis-8.10.3/0002-lua-update-Makefile-to-use-environment-build-setting.patch b/meta-oe/recipes-extended/redis/redis-8.12.0/0002-lua-update-Makefile-to-use-environment-build-setting.patch
similarity index 77%
rename from meta-oe/recipes-extended/redis/redis-8.10.3/0002-lua-update-Makefile-to-use-environment-build-setting.patch
rename to meta-oe/recipes-extended/redis/redis-8.12.0/0002-lua-update-Makefile-to-use-environment-build-setting.patch
index f1b59ad0a1..71cefb83b5 100644
--- a/meta-oe/recipes-extended/redis/redis-8.10.3/0002-lua-update-Makefile-to-use-environment-build-setting.patch
+++ b/meta-oe/recipes-extended/redis/redis-8.12.0/0002-lua-update-Makefile-to-use-environment-build-setting.patch
@@ -21,23 +21,10 @@  Reworked for 8.0.0
 Signed-off-by: Eric Meyers <eric.meyers@arthrex.com>
 
 ---
- deps/Makefile         |  1 -
  deps/lua/Makefile     |  1 -
  deps/lua/src/Makefile | 16 ++++++----------
- 3 files changed, 6 insertions(+), 12 deletions(-)
+ 2 files changed, 6 insertions(+), 11 deletions(-)
 
-diff --git a/deps/Makefile b/deps/Makefile
-index 5593e0c..d71265a 100644
---- a/deps/Makefile
-+++ b/deps/Makefile
-@@ -101,7 +101,6 @@ endif
- # lua's Makefile defines AR="ar rcu", which is unusual, and makes it more
- # challenging to cross-compile lua (and redis).  These defines make it easier
- # to fit redis into cross-compilation environments, which typically set AR.
--AR=ar
- ARFLAGS=rc
- 
- lua: .make-prerequisites
 diff --git a/deps/lua/Makefile b/deps/lua/Makefile
 index 209a132..72f4b2b 100644
 --- a/deps/lua/Makefile
diff --git a/meta-oe/recipes-extended/redis/redis-8.10.3/0003-hack-to-force-use-of-libc-malloc.patch b/meta-oe/recipes-extended/redis/redis-8.12.0/0003-hack-to-force-use-of-libc-malloc.patch
similarity index 100%
rename from meta-oe/recipes-extended/redis/redis-8.10.3/0003-hack-to-force-use-of-libc-malloc.patch
rename to meta-oe/recipes-extended/redis/redis-8.12.0/0003-hack-to-force-use-of-libc-malloc.patch
diff --git a/meta-oe/recipes-extended/redis/redis-8.10.3/0004-src-Do-not-reset-FINAL_LIBS.patch b/meta-oe/recipes-extended/redis/redis-8.12.0/0004-src-Do-not-reset-FINAL_LIBS.patch
similarity index 100%
rename from meta-oe/recipes-extended/redis/redis-8.10.3/0004-src-Do-not-reset-FINAL_LIBS.patch
rename to meta-oe/recipes-extended/redis/redis-8.12.0/0004-src-Do-not-reset-FINAL_LIBS.patch
diff --git a/meta-oe/recipes-extended/redis/redis-8.10.3/0005-Define-_GNU_SOURCE-to-get-PTHREAD_MUTEX_INITIALIZER.patch b/meta-oe/recipes-extended/redis/redis-8.12.0/0005-Define-_GNU_SOURCE-to-get-PTHREAD_MUTEX_INITIALIZER.patch
similarity index 100%
rename from meta-oe/recipes-extended/redis/redis-8.10.3/0005-Define-_GNU_SOURCE-to-get-PTHREAD_MUTEX_INITIALIZER.patch
rename to meta-oe/recipes-extended/redis/redis-8.12.0/0005-Define-_GNU_SOURCE-to-get-PTHREAD_MUTEX_INITIALIZER.patch
diff --git a/meta-oe/recipes-extended/redis/redis-8.10.3/0006-src-Makefile-do-not-build-the-test-modules-from-all.patch b/meta-oe/recipes-extended/redis/redis-8.12.0/0006-src-Makefile-do-not-build-the-test-modules-from-all.patch
similarity index 100%
rename from meta-oe/recipes-extended/redis/redis-8.10.3/0006-src-Makefile-do-not-build-the-test-modules-from-all.patch
rename to meta-oe/recipes-extended/redis/redis-8.12.0/0006-src-Makefile-do-not-build-the-test-modules-from-all.patch
diff --git a/meta-oe/recipes-extended/redis/redis-8.10.3/init-redis-server b/meta-oe/recipes-extended/redis/redis-8.12.0/init-redis-server
similarity index 100%
rename from meta-oe/recipes-extended/redis/redis-8.10.3/init-redis-server
rename to meta-oe/recipes-extended/redis/redis-8.12.0/init-redis-server
diff --git a/meta-oe/recipes-extended/redis/redis-8.10.3/redis.conf b/meta-oe/recipes-extended/redis/redis-8.12.0/redis.conf
similarity index 100%
rename from meta-oe/recipes-extended/redis/redis-8.10.3/redis.conf
rename to meta-oe/recipes-extended/redis/redis-8.12.0/redis.conf
diff --git a/meta-oe/recipes-extended/redis/redis-8.10.3/redis.service b/meta-oe/recipes-extended/redis/redis-8.12.0/redis.service
similarity index 100%
rename from meta-oe/recipes-extended/redis/redis-8.10.3/redis.service
rename to meta-oe/recipes-extended/redis/redis-8.12.0/redis.service
diff --git a/meta-oe/recipes-extended/redis/redis_8.10.3.bb b/meta-oe/recipes-extended/redis/redis_8.12.0.bb
similarity index 92%
rename from meta-oe/recipes-extended/redis/redis_8.10.3.bb
rename to meta-oe/recipes-extended/redis/redis_8.12.0.bb
index 5cf8e6fdbb..44cf3cd252 100644
--- a/meta-oe/recipes-extended/redis/redis_8.10.3.bb
+++ b/meta-oe/recipes-extended/redis/redis_8.12.0.bb
@@ -17,7 +17,10 @@  SRC_URI = "http://download.redis.io/releases/${BP}.tar.gz \
            file://0005-Define-_GNU_SOURCE-to-get-PTHREAD_MUTEX_INITIALIZER.patch \
            file://0006-src-Makefile-do-not-build-the-test-modules-from-all.patch \
           "
-SRC_URI[sha256sum] = "edde778f6bdee7581e42fc139ca9e07e2822212092f7501f99989656e3629d02"
+SRC_URI[sha256sum] = "b0100a879b2d45dc97d8fda941127609d648f8913008db1b65a2f72a8ae36c8b"
+
+UPSTREAM_CHECK_URI = "https://download.redis.io/releases/"
+UPSTREAM_CHECK_REGEX = "redis-(?P<pver>\d+\.\d+\.\d+)\.tar"
 
 RPROVIDES:${PN} = "virtual-redis"
 
@@ -54,7 +57,7 @@  TARGET_LDFLAGS:append = " ${DEBUG_PREFIX_MAP}"
 CFLAGS += "${@bb.utils.contains('SELECTED_OPTIMIZATION', '-Og', '-DXXH_NO_INLINE_HINTS', '', d)}"
 
 do_compile:prepend() {
-    oe_runmake -C deps hdr_histogram fpconv hiredis lua linenoise
+    oe_runmake -C deps hdr_histogram fpconv hiredis lua linenoise croaring
 }
 
 # 8.10.0's default "all"/"build" goal also builds the bundled modules
@@ -66,7 +69,8 @@  do_compile() {
 }
 
 do_install() {
-    oe_runmake install PREFIX=${D}${prefix}
+    # The top-level install is now "deploy", which also builds and installs the modules
+    oe_runmake -C src install PREFIX=${D}${prefix}
     install -d ${D}/${sysconfdir}/redis
     install -m 0644 ${UNPACKDIR}/redis.conf ${D}/${sysconfdir}/redis/redis.conf
     install -d ${D}/${sysconfdir}/init.d