diff options
| author | Tony Tascioglu <tony.tascioglu@windriver.com> | 2021-06-30 14:58:12 -0700 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2021-06-30 15:18:37 -0700 |
| commit | 40ed8d14ab56dff545b4bbc05663501457269395 (patch) | |
| tree | c2c5b59e1062a80685afea453de57d5b56515fd1 /meta-oe/recipes-extended/redis/redis_6.2.4.bb | |
| parent | c1c9327af17c143498c5808576c672bf8133cf53 (diff) | |
| download | meta-openembedded-40ed8d14ab56dff545b4bbc05663501457269395.tar.gz | |
redis: upgrade to 6.2.4
Upstream changelog:
Upgrade urgency: SECURITY, Contains fixes to security issues that affect
authenticated client connections. MODERATE otherwise.
Fix integer overflow in STRALGO LCS (CVE-2021-32625)
An integer overflow bug in Redis version 6.0 or newer can be exploited using the
STRALGO LCS command to corrupt the heap and potentially result with remote code
execution. This is a result of an incomplete fix by CVE-2021-29477.
Bug fixes that are only applicable to previous releases of Redis 6.2:
Fix crash after a diskless replication fork child is terminated (#8991)
Fix redis-benchmark crash on unsupported configs (#8916)
Other bug fixes:
Fix crash in UNLINK on a stream key with deleted consumer groups (#8932)
SINTERSTORE: Add missing keyspace del event when none of the sources exist (#8949)
Sentinel: Fix CONFIG SET of empty string sentinel-user/sentinel-pass configs (#8958)
Enforce client output buffer soft limit when no traffic (#8833)
Improvements:
Hide AUTH passwords in MIGRATE command from slowlog (#8859)
Signed-off-by: Tony Tascioglu <tony.tascioglu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-extended/redis/redis_6.2.4.bb')
| -rw-r--r-- | meta-oe/recipes-extended/redis/redis_6.2.4.bb | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/redis/redis_6.2.4.bb b/meta-oe/recipes-extended/redis/redis_6.2.4.bb new file mode 100644 index 0000000000..35f34a27de --- /dev/null +++ b/meta-oe/recipes-extended/redis/redis_6.2.4.bb | |||
| @@ -0,0 +1,66 @@ | |||
| 1 | SUMMARY = "Redis key-value store" | ||
| 2 | DESCRIPTION = "Redis is an open source, advanced key-value store." | ||
| 3 | HOMEPAGE = "http://redis.io" | ||
| 4 | SECTION = "libs" | ||
| 5 | LICENSE = "BSD-3-Clause" | ||
| 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=8ffdd6c926faaece928cf9d9640132d2" | ||
| 7 | DEPENDS = "readline lua ncurses" | ||
| 8 | |||
| 9 | SRC_URI = "http://download.redis.io/releases/${BP}.tar.gz \ | ||
| 10 | file://redis.conf \ | ||
| 11 | file://init-redis-server \ | ||
| 12 | file://redis.service \ | ||
| 13 | file://hiredis-use-default-CC-if-it-is-set.patch \ | ||
| 14 | file://lua-update-Makefile-to-use-environment-build-setting.patch \ | ||
| 15 | file://oe-use-libc-malloc.patch \ | ||
| 16 | file://0001-src-Do-not-reset-FINAL_LIBS.patch \ | ||
| 17 | file://GNU_SOURCE.patch \ | ||
| 18 | file://0006-Define-correct-gregs-for-RISCV32.patch \ | ||
| 19 | " | ||
| 20 | SRC_URI[sha256sum] = "ba32c406a10fc2c09426e2be2787d74ff204eb3a2e496d87cff76a476b6ae16e" | ||
| 21 | |||
| 22 | inherit autotools-brokensep update-rc.d systemd useradd | ||
| 23 | |||
| 24 | FINAL_LIBS_x86_toolchain-clang = "-latomic" | ||
| 25 | FINAL_LIBS_riscv32_toolchain-clang = "-latomic" | ||
| 26 | FINAL_LIBS_mips = "-latomic" | ||
| 27 | FINAL_LIBS_arm = "-latomic" | ||
| 28 | FINAL_LIBS_powerpc = "-latomic" | ||
| 29 | |||
| 30 | export FINAL_LIBS | ||
| 31 | |||
| 32 | USERADD_PACKAGES = "${PN}" | ||
| 33 | USERADD_PARAM_${PN} = "--system --home-dir /var/lib/redis -g redis --shell /bin/false redis" | ||
| 34 | GROUPADD_PARAM_${PN} = "--system redis" | ||
| 35 | |||
| 36 | REDIS_ON_SYSTEMD = "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}" | ||
| 37 | |||
| 38 | do_compile_prepend() { | ||
| 39 | (cd deps && oe_runmake hiredis lua linenoise) | ||
| 40 | } | ||
| 41 | |||
| 42 | do_install() { | ||
| 43 | export PREFIX=${D}/${prefix} | ||
| 44 | oe_runmake install | ||
| 45 | install -d ${D}/${sysconfdir}/redis | ||
| 46 | install -m 0644 ${WORKDIR}/redis.conf ${D}/${sysconfdir}/redis/redis.conf | ||
| 47 | install -d ${D}/${sysconfdir}/init.d | ||
| 48 | install -m 0755 ${WORKDIR}/init-redis-server ${D}/${sysconfdir}/init.d/redis-server | ||
| 49 | install -d ${D}/var/lib/redis/ | ||
| 50 | chown redis.redis ${D}/var/lib/redis/ | ||
| 51 | |||
| 52 | install -d ${D}${systemd_system_unitdir} | ||
| 53 | install -m 0644 ${WORKDIR}/redis.service ${D}${systemd_system_unitdir} | ||
| 54 | sed -i 's!/usr/sbin/!${sbindir}/!g' ${D}${systemd_system_unitdir}/redis.service | ||
| 55 | |||
| 56 | if [ "${REDIS_ON_SYSTEMD}" = true ]; then | ||
| 57 | sed -i 's!daemonize yes!# daemonize yes!' ${D}/${sysconfdir}/redis/redis.conf | ||
| 58 | fi | ||
| 59 | } | ||
| 60 | |||
| 61 | CONFFILES_${PN} = "${sysconfdir}/redis/redis.conf" | ||
| 62 | |||
| 63 | INITSCRIPT_NAME = "redis-server" | ||
| 64 | INITSCRIPT_PARAMS = "defaults 87" | ||
| 65 | |||
| 66 | SYSTEMD_SERVICE_${PN} = "redis.service" | ||
