postgresql: upgrade 16.12 -> 16.14
PATCH 1/3 postgresql: upgrade 16.12 -> 16.14
From: Ankur Tyagi <[email protected]>
Also refreshed patches to resolve patch fuzz QA issue.
Bug fix releases
https://www.postgresql.org/docs/release/16.13/
https://www.postgresql.org/docs/release/16.14/
---
.../files/0001-Add-support-for-RISC-V.patch | 7 ++-----
.../files/0002-Improve-reproducibility.patch | 7 ++-----
...figure.ac-bypass-autoconf-2.69-version-check.patch | 11 ++++-------
.../0004-config_info.c-not-expose-build-info.patch | 9 +++------
...005-postgresql-fix-ptest-failure-of-sysviews.patch | 7 ++-----
.../postgresql/files/not-check-libperl.patch | 9 +++------
.../{postgresql_16.12.bb => postgresql_16.14.bb} | 2 +-
7 files changed, 17 insertions(+), 35 deletions(-)
rename meta-oe/recipes-dbs/postgresql/{postgresql_16.12.bb => postgresql_16.14.bb} (86%)meta-oe/recipes-dbs/postgresql/files/0001-Add-support-for-RISC-V.patch +2 -5
@@ -1,7 +1,7 @@ -From ba079b8d6a50796db41bb0ddf4c22bfe022ef898 Mon Sep 17 00:00:00 2001 +From c0f5c3d176baf893658e9534256887633e18e3c4 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" <[email protected]> Date: Sun, 20 Nov 2016 15:04:52 +0000 -Subject: [PATCH 1/5] Add support for RISC-V. +Subject: [PATCH] Add support for RISC-V. The architecture is sufficiently similar to aarch64 that simply extending the existing aarch64 macro works.
@@ -38,6 +38,3 @@ index c9fa84c..9b491e8 100644 /* S/390 and S/390x Linux (32- and 64-bit zSeries) */ --- -2.25.1 -
meta-oe/recipes-dbs/postgresql/files/0002-Improve-reproducibility.patch +2 -5
@@ -1,7 +1,7 @@ -From 084cc44215c1d5e6d33bc3d2e1d24da4fc98bdcd Mon Sep 17 00:00:00 2001 +From 97d56c79bf8807563d58cb08a8c5f3e3422e8740 Mon Sep 17 00:00:00 2001 From: Changqing Li <[email protected]> Date: Mon, 28 Dec 2020 16:38:21 +0800 -Subject: [PATCH 2/5] Improve reproducibility, +Subject: [PATCH] Improve reproducibility, Remove build patch from binaries which pg_config do not record var-CC, var-CFLAGS, and configure
@@ -36,6 +36,3 @@ index 113029b..58842a6 100644 override CPPFLAGS += -DVAL_CFLAGS_SL="\"$(CFLAGS_SL)\"" override CPPFLAGS += -DVAL_LDFLAGS="\"$(STD_LDFLAGS)\"" override CPPFLAGS += -DVAL_LDFLAGS_EX="\"$(LDFLAGS_EX)\"" --- -2.25.1 -
meta-oe/recipes-dbs/postgresql/files/0003-configure.ac-bypass-autoconf-2.69-version-check.patch +4 -7
@@ -1,7 +1,7 @@ -From 30b1b37d309f67ba6d58f2197bd917107bc7d56c Mon Sep 17 00:00:00 2001 +From 0a068e697b54037664eb485d1f31342f07caac0b Mon Sep 17 00:00:00 2001 From: Yi Fan Yu <[email protected]> Date: Fri, 5 Feb 2021 17:15:42 -0500 -Subject: [PATCH 3/5] configure.ac: bypass autoconf 2.69 version check +Subject: [PATCH] configure.ac: bypass autoconf 2.69 version check for upgrade to autoconf 2.71
@@ -13,12 +13,12 @@ Signed-off-by: Yi Fan Yu <[email protected]> 1 file changed, 4 deletions(-) diff --git a/configure.ac b/configure.ac -index 4f25567..b6b1eff 100644 +index 9e30e42..4a5937f 100644 --- a/configure.ac +++ b/configure.ac @@ -19,10 +19,6 @@ m4_pattern_forbid(^PGAC_)dnl to catch undefined macros - AC_INIT([PostgreSQL], [16.12], [[email protected]], [], [https://www.postgresql.org/]) + AC_INIT([PostgreSQL], [16.14], [[email protected]], [], [https://www.postgresql.org/]) -m4_if(m4_defn([m4_PACKAGE_VERSION]), [2.69], [], [m4_fatal([Autoconf version 2.69 is required. -Untested combinations of 'autoconf' and PostgreSQL versions are not
@@ -27,6 +27,3 @@ index 4f25567..b6b1eff 100644 AC_COPYRIGHT([Copyright (c) 1996-2023, PostgreSQL Global Development Group]) AC_CONFIG_SRCDIR([src/backend/access/common/heaptuple.c]) AC_CONFIG_AUX_DIR(config) --- -2.40.0 -
meta-oe/recipes-dbs/postgresql/files/0004-config_info.c-not-expose-build-info.patch +3 -6
@@ -1,7 +1,7 @@ -From 5be3ffdf767c1efcbfd2d1be87aa83f2e37e348e Mon Sep 17 00:00:00 2001 +From 474b18fefb4adbf394b30529a11348104c077299 Mon Sep 17 00:00:00 2001 From: Mingli Yu <[email protected]> Date: Mon, 1 Aug 2022 15:44:38 +0800 -Subject: [PATCH 4/5] config_info.c: not expose build info +Subject: [PATCH] config_info.c: not expose build info Don't collect the build information to fix the buildpaths issue.
@@ -14,7 +14,7 @@ Signed-off-by: Mingli Yu <[email protected]> 2 files changed, 2 insertions(+), 70 deletions(-) diff --git a/configure.ac b/configure.ac -index 27f382d..3dd6bb1 100644 +index 4a5937f..ece6463 100644 --- a/configure.ac +++ b/configure.ac @@ -23,7 +23,7 @@ AC_COPYRIGHT([Copyright (c) 1996-2023, PostgreSQL Global Development Group])
@@ -114,6 +114,3 @@ index 09e78a6..86e4230 100644 configdata[i].name = pstrdup("VERSION"); configdata[i].setting = pstrdup("PostgreSQL " PG_VERSION); i++; --- -2.25.1 -
meta-oe/recipes-dbs/postgresql/files/0005-postgresql-fix-ptest-failure-of-sysviews.patch +2 -5
@@ -1,7 +1,7 @@ -From 1a8b94140988d2ee5ff987b0bb3e7c3e936b8c01 Mon Sep 17 00:00:00 2001 +From 83a2f0e9989269516f344fd665fa26c9828b5599 Mon Sep 17 00:00:00 2001 From: Manoj Saun <[email protected]> Date: Wed, 22 Mar 2023 08:07:26 +0000 -Subject: [PATCH 5/5] postgresql: fix ptest failure of sysviews +Subject: [PATCH] postgresql: fix ptest failure of sysviews The patch "0001-config_info.c-not-expose-build-info.patch" hides the debug info in pg_config table which reduces the count of rows from pg_config and leads to
@@ -44,6 +44,3 @@ index 351e469..84c113e 100644 -- We expect no cursors in this test; see also portals.sql select count(*) = 0 as ok from pg_cursors; --- -2.25.1 -
meta-oe/recipes-dbs/postgresql/files/not-check-libperl.patch +3 -6
@@ -1,4 +1,4 @@ -From 56b830edecff1cac5f8a8a956e7a7eeef2aa7c17 Mon Sep 17 00:00:00 2001 +From 31543bddfed8882fa2d37998d966f3985fcdf351 Mon Sep 17 00:00:00 2001 From: Changqing Li <[email protected]> Date: Tue, 27 Nov 2018 13:25:15 +0800 Subject: [PATCH] not check libperl under cross compiling
@@ -20,10 +20,10 @@ Signed-off-by: Changqing Li <[email protected]> 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac -index fba79ee..7170f26 100644 +index ecdfefd..9e30e42 100644 --- a/configure.ac +++ b/configure.ac -@@ -2297,7 +2297,7 @@ Use --without-tcl to disable building PL/Tcl.]) +@@ -2307,7 +2307,7 @@ Use --without-tcl to disable building PL/Tcl.]) fi # check for <perl.h>
@@ -32,6 +32,3 @@ index fba79ee..7170f26 100644 ac_save_CPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $perl_includespec" AC_CHECK_HEADER(perl.h, [], [AC_MSG_ERROR([header file <perl.h> is required for Perl])], --- -2.34.1 -
meta-oe/recipes-dbs/postgresql/postgresql_16.14.bb renamed from meta-oe/recipes-dbs/postgresql/postgresql_16.12.bb +1 -1
@@ -11,6 +11,6 @@ SRC_URI += "\ file://0005-postgresql-fix-ptest-failure-of-sysviews.patch \ " -SRC_URI[sha256sum] = "b253ee949303ef5df00e24002600da4fb37e5ccfafa78718c6ea6a936b4d97f1" +SRC_URI[sha256sum] = "f6d077142737920858ce958ccdb75c6ee137a63b5b0853c70693d401ac7e3471" CVE_STATUS[CVE-2017-8806] = "not-applicable-config: Doesn't apply to our configuration of postgresql so we can safely ignore it."
PATCH 2/3 redis: upgrade 7.2.12 -> 7.2.14
From: Ankur Tyagi <[email protected]>
Also refreshed patches to resolve patch fuzz QA issue.
Bug and security fix release
https://github.com/redis/redis/releases/tag/7.2.13
https://github.com/redis/redis/releases/tag/7.2.14
---
.../0001-hiredis-use-default-CC-if-it-is-set.patch | 12 ++++++++----
...e-Makefile-to-use-environment-build-setting.patch | 6 +++---
.../0003-hack-to-force-use-of-libc-malloc.patch | 8 ++++----
.../redis/0004-src-Do-not-reset-FINAL_LIBS.patch | 6 +++---
...GNU_SOURCE-to-get-PTHREAD_MUTEX_INITIALIZER.patch | 10 +++++-----
.../0006-Define-correct-gregs-for-RISCV32.patch | 8 ++++----
.../redis/{redis_7.2.12.bb => redis_7.2.14.bb} | 2 +-
7 files changed, 28 insertions(+), 24 deletions(-)
rename meta-oe/recipes-extended/redis/{redis_7.2.12.bb => redis_7.2.14.bb} (97%)meta-oe/recipes-extended/redis/redis/0001-hiredis-use-default-CC-if-it-is-set.patch +8 -4
@@ -1,4 +1,4 @@ -From 67990f216f2fbbc8a6699c700dfc089aa617905f Mon Sep 17 00:00:00 2001 +From 61ae3e0277ac92323584bbe75ce79de6e030e84a Mon Sep 17 00:00:00 2001 From: Venture Research <[email protected]> Date: Fri, 8 Feb 2013 17:39:52 -0600 Subject: [PATCH] hiredis: use default CC if it is set
@@ -6,6 +6,10 @@ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + Instead of trying to automagically figure out CC, which breaks with OE as CC has spaces in it, just skip it if one was already passed in.
@@ -23,15 +27,15 @@ Signed-off-by: Andreas Müller <[email protected]> 1 file changed, 2 deletions(-) diff --git a/deps/hiredis/Makefile b/deps/hiredis/Makefile -index 7e41c97..54717e3 100644 +index bd2106b..9ce768d 100644 --- a/deps/hiredis/Makefile +++ b/deps/hiredis/Makefile -@@ -42,8 +42,6 @@ endef +@@ -36,8 +36,6 @@ endef export REDIS_TEST_CONFIG # Fallback to gcc when $CC is not in $PATH. -CC:=$(shell sh -c 'type $${CC%% *} >/dev/null 2>/dev/null && echo $(CC) || echo gcc') -CXX:=$(shell sh -c 'type $${CXX%% *} >/dev/null 2>/dev/null && echo $(CXX) || echo g++') OPTIMIZATION?=-O3 - WARNINGS=-Wall -W -Wstrict-prototypes -Wwrite-strings -Wno-missing-field-initializers + WARNINGS=-Wall -Wextra -Werror -Wstrict-prototypes -Wwrite-strings -Wno-missing-field-initializers DEBUG_FLAGS?= -g -ggdb
meta-oe/recipes-extended/redis/redis/0002-lua-update-Makefile-to-use-environment-build-setting.patch +3 -3
@@ -1,4 +1,4 @@ -From ef989aab052510bfda32b2b325a5f80b76c42677 Mon Sep 17 00:00:00 2001 +From a35a89981e28fb118efa86a798dacda826eb6f74 Mon Sep 17 00:00:00 2001 From: Venture Research <[email protected]> Date: Fri, 8 Feb 2013 20:22:19 -0600 Subject: [PATCH] lua: update Makefile to use environment build settings
@@ -23,10 +23,10 @@ Signed-off-by: Yi Fan Yu <[email protected]> 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/deps/Makefile b/deps/Makefile -index cbe3aef..76bc222 100644 +index 3bf0363..fd8765a 100644 --- a/deps/Makefile +++ b/deps/Makefile -@@ -81,7 +81,6 @@ endif +@@ -94,7 +94,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.
meta-oe/recipes-extended/redis/redis/0003-hack-to-force-use-of-libc-malloc.patch +4 -4
@@ -1,4 +1,4 @@ -From b9586abcb803747301f6cc4ff93c7642bef693ea Mon Sep 17 00:00:00 2001 +From a6246b17e94a2f7ad3560787a476b18aa7a45358 Mon Sep 17 00:00:00 2001 From: Venture Research <[email protected]> Date: Wed, 6 Feb 2013 20:51:02 -0600 Subject: [PATCH] hack to force use of libc malloc
@@ -20,7 +20,7 @@ Signed-off-by: Alistair Francis <[email protected]> 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile -index 7d75c83..35dd314 100644 +index 6a87909..b8e0d44 100644 --- a/src/Makefile +++ b/src/Makefile @@ -13,7 +13,8 @@
@@ -31,5 +31,5 @@ index 7d75c83..35dd314 100644 +# use fake uname option to force use of generic libc +uname_S := "USE_LIBC_MALLOC" uname_M := $(shell sh -c 'uname -m 2>/dev/null || echo not') - OPTIMIZATION?=-O2 - DEPENDENCY_TARGETS=hiredis linenoise lua hdr_histogram + CLANG := $(findstring clang,$(shell sh -c '$(CC) --version | head -1')) + OPTIMIZATION?=-O3
meta-oe/recipes-extended/redis/redis/0004-src-Do-not-reset-FINAL_LIBS.patch +3 -3
@@ -1,4 +1,4 @@ -From a4d87aca1c00c53b386ee7490223971e00873add Mon Sep 17 00:00:00 2001 +From 1b59adad94137eedfbcddb27adae74b80b4e0909 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Tue, 10 Sep 2019 20:04:26 -0700 Subject: [PATCH] src: Do not reset FINAL_LIBS
@@ -16,10 +16,10 @@ Signed-off-by: Khem Raj <[email protected]> 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile -index 35dd314..3770f96 100644 +index b8e0d44..3a68fa6 100644 --- a/src/Makefile +++ b/src/Makefile -@@ -93,7 +93,7 @@ endif +@@ -122,7 +122,7 @@ endif FINAL_CFLAGS=$(STD) $(WARN) $(OPT) $(DEBUG) $(CFLAGS) $(REDIS_CFLAGS) FINAL_LDFLAGS=$(LDFLAGS) $(REDIS_LDFLAGS) $(DEBUG)
meta-oe/recipes-extended/redis/redis/0005-Define-_GNU_SOURCE-to-get-PTHREAD_MUTEX_INITIALIZER.patch +5 -5
@@ -1,4 +1,4 @@ -From 2e6311c9c7cd85bf63eab8fe92c08ec1ec01b6fc Mon Sep 17 00:00:00 2001 +From 5a58c573d486411a3a1585ca42bee70a661a983d Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Sat, 21 Dec 2019 12:09:51 -0800 Subject: [PATCH] Define _GNU_SOURCE to get PTHREAD_MUTEX_INITIALIZER
@@ -16,12 +16,12 @@ Signed-off-by: Khem Raj <[email protected]> 1 file changed, 1 insertion(+) diff --git a/src/zmalloc.c b/src/zmalloc.c -index 1f33d09..5e182d1 100644 +index bbfa386..93e07ff 100644 --- a/src/zmalloc.c +++ b/src/zmalloc.c -@@ -28,6 +28,7 @@ - * POSSIBILITY OF SUCH DAMAGE. - */ +@@ -32,6 +32,7 @@ + #include "config.h" + #include "solarisfixes.h" +#define _GNU_SOURCE #include <stdio.h>
meta-oe/recipes-extended/redis/redis/0006-Define-correct-gregs-for-RISCV32.patch +4 -4
@@ -1,4 +1,4 @@ -From 6149911f7a6fbaef3ed418408e2b501fa9479ffa Mon Sep 17 00:00:00 2001 +From 8a16ff40b75671725e4bd92b50a5f083460e796b Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Mon, 26 Oct 2020 21:32:22 -0700 Subject: [PATCH] Define correct gregs for RISCV32
@@ -14,10 +14,10 @@ Signed-off-by: Yi Fan Yu <[email protected]> 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/src/debug.c b/src/debug.c -index bb76c5d..55a0696 100644 +index 684f692..2ee151f 100644 --- a/src/debug.c +++ b/src/debug.c -@@ -1067,7 +1067,9 @@ static void* getAndSetMcontextEip(ucontext_t *uc, void *eip) { +@@ -1215,7 +1215,9 @@ static void* getAndSetMcontextEip(ucontext_t *uc, void *eip) { #endif #elif defined(__linux__) /* Linux */
@@ -28,7 +28,7 @@ index bb76c5d..55a0696 100644 GET_SET_RETURN(uc->uc_mcontext.gregs[14], eip); #elif defined(__X86_64__) || defined(__x86_64__) GET_SET_RETURN(uc->uc_mcontext.gregs[16], eip); -@@ -1234,8 +1236,28 @@ void logRegisters(ucontext_t *uc) { +@@ -1401,8 +1403,28 @@ void logRegisters(ucontext_t *uc) { #endif /* Linux */ #elif defined(__linux__)
meta-oe/recipes-extended/redis/redis_7.2.14.bb renamed from meta-oe/recipes-extended/redis/redis_7.2.12.bb +1 -1
@@ -17,7 +17,7 @@ SRC_URI = "http://download.redis.io/releases/${BP}.tar.gz \ file://0005-Define-_GNU_SOURCE-to-get-PTHREAD_MUTEX_INITIALIZER.patch \ file://0006-Define-correct-gregs-for-RISCV32.patch \ " -SRC_URI[sha256sum] = "97c60478a7c777ac914ca9d87a7e88ba265926456107e758c62d8f971d0196bc" +SRC_URI[sha256sum] = "21326da3f66c0aead4c8204c0ac52ff905337a77cadd169f75ac22835ea30025" inherit autotools-brokensep pkgconfig update-rc.d systemd useradd
Re: [oe][meta-oe][scarthgap][PATCH 2/3] redis: upgrade 7.2.12 -> 7.2.14
Quoted 10 lines · Ankur Tyagi via lists.openembedded.org
From: Ankur Tyagi <[email protected]>
Also refreshed patches to resolve patch fuzz QA issue.
Bug and security fix release
https://github.com/redis/redis/releases/tag/7.2.13
https://github.com/redis/redis/releases/tag/7.2.14Signed-off-by Ankur Tyagi <[email protected]>
Quoted 10 lines
---
.../0001-hiredis-use-default-CC-if-it-is-set.patch | 12 ++++++++----
...e-Makefile-to-use-environment-build-setting.patch | 6 +++---
.../0003-hack-to-force-use-of-libc-malloc.patch | 8 ++++----
.../redis/0004-src-Do-not-reset-FINAL_LIBS.patch | 6 +++---
...GNU_SOURCE-to-get-PTHREAD_MUTEX_INITIALIZER.patch | 10 +++++-----
.../0006-Define-correct-gregs-for-RISCV32.patch | 8 ++++----
.../redis/{redis_7.2.12.bb => redis_7.2.14.bb} | 2 +-
7 files changed, 28 insertions(+), 24 deletions(-)
rename meta-oe/recipes-extended/redis/{redis_7.2.12.bb => redis_7.2.14.bb} (97%)Fails with error:
ERROR: redis-7.2.14-r0 do_patch: QA Issue: Fuzz detected:
Applying patch 0001-hiredis-use-default-CC-if-it-is-set.patch patching file deps/hiredis/Makefile
Hunk #1 succeeded at 36 with fuzz 2 (offset -6 lines).
Applying patch 0003-hack-to-force-use-of-libc-malloc.patch patching file src/Makefile
Hunk #1 succeeded at 13 with fuzz 2.
Applying patch 0005-Define-_GNU_SOURCE-to-get-PTHREAD_MUTEX_INITIALIZER.patch patching file src/zmalloc.c
Hunk #1 succeeded at 32 with fuzz 2 (offset 4 lines).
The context lines in the patches can be updated with devtool:
devtool modify redis
devtool finish --force-patch-refresh redis <layer_path>
Don't forget to review changes done by devtool!
Patch log indicates that patches do not apply cleanly. [patch-fuzz]
Quoted 198 lines
meta-oe/recipes-extended/redis/redis/0001-hiredis-use-default-CC-if-it-is-set.patch +8
-4@@ -1,4 +1,4 @@ -From 67990f216f2fbbc8a6699c700dfc089aa617905f Mon Sep 17 00:00:00 2001 +From 61ae3e0277ac92323584bbe75ce79de6e030e84a Mon Sep 17 00:00:00 2001 From: Venture Research <[email protected]> Date: Fri, 8 Feb 2013 17:39:52 -0600 Subject: [PATCH] hiredis: use default CC if it is set@@ -6,6 +6,10 @@ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + Instead of trying to automagically figure out CC, which breaks with OE as CC has spaces in it, just skip it if one was already passed in.@@ -23,15 +27,15 @@ Signed-off-by: Andreas Müller <[email protected]> 1 file changed, 2 deletions(-) diff --git a/deps/hiredis/Makefile b/deps/hiredis/Makefile -index 7e41c97..54717e3 100644 +index bd2106b..9ce768d 100644 --- a/deps/hiredis/Makefile +++ b/deps/hiredis/Makefile -@@ -42,8 +42,6 @@ endef +@@ -36,8 +36,6 @@ endef export REDIS_TEST_CONFIG # Fallback to gcc when $CC is not in $PATH. -CC:=$(shell sh -c 'type $${CC%% *} >/dev/null 2>/dev/null && echo $(CC) || echo gcc') -CXX:=$(shell sh -c 'type $${CXX%% *} >/dev/null 2>/dev/null && echo $(CXX) || echo g++') OPTIMIZATION?=-O3 - WARNINGS=-Wall -W -Wstrict-prototypes -Wwrite-strings -Wno-missing-field-initializers + WARNINGS=-Wall -Wextra -Werror -Wstrict-prototypes -Wwrite-strings -Wno-missing-field-initializers DEBUG_FLAGS?= -g -ggdbmeta-oe/recipes-extended/redis/redis/0002-lua-update-Makefile-to-use-environment-build-setting.patch +3
-3@@ -1,4 +1,4 @@ -From ef989aab052510bfda32b2b325a5f80b76c42677 Mon Sep 17 00:00:00 2001 +From a35a89981e28fb118efa86a798dacda826eb6f74 Mon Sep 17 00:00:00 2001 From: Venture Research <[email protected]> Date: Fri, 8 Feb 2013 20:22:19 -0600 Subject: [PATCH] lua: update Makefile to use environment build settings@@ -23,10 +23,10 @@ Signed-off-by: Yi Fan Yu <[email protected]> 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/deps/Makefile b/deps/Makefile -index cbe3aef..76bc222 100644 +index 3bf0363..fd8765a 100644 --- a/deps/Makefile +++ b/deps/Makefile -@@ -81,7 +81,6 @@ endif +@@ -94,7 +94,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.meta-oe/recipes-extended/redis/redis/0003-hack-to-force-use-of-libc-malloc.patch +4
-4@@ -1,4 +1,4 @@ -From b9586abcb803747301f6cc4ff93c7642bef693ea Mon Sep 17 00:00:00 2001 +From a6246b17e94a2f7ad3560787a476b18aa7a45358 Mon Sep 17 00:00:00 2001 From: Venture Research <[email protected]> Date: Wed, 6 Feb 2013 20:51:02 -0600 Subject: [PATCH] hack to force use of libc malloc@@ -20,7 +20,7 @@ Signed-off-by: Alistair Francis <[email protected]> 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile -index 7d75c83..35dd314 100644 +index 6a87909..b8e0d44 100644 --- a/src/Makefile +++ b/src/Makefile @@ -13,7 +13,8 @@@@ -31,5 +31,5 @@ index 7d75c83..35dd314 100644 +# use fake uname option to force use of generic libc +uname_S := "USE_LIBC_MALLOC" uname_M := $(shell sh -c 'uname -m 2>/dev/null || echo not') - OPTIMIZATION?=-O2 - DEPENDENCY_TARGETS=hiredis linenoise lua hdr_histogram + CLANG := $(findstring clang,$(shell sh -c '$(CC) --version | head -1')) + OPTIMIZATION?=-O3meta-oe/recipes-extended/redis/redis/0004-src-Do-not-reset-FINAL_LIBS.patch +3
-3@@ -1,4 +1,4 @@ -From a4d87aca1c00c53b386ee7490223971e00873add Mon Sep 17 00:00:00 2001 +From 1b59adad94137eedfbcddb27adae74b80b4e0909 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Tue, 10 Sep 2019 20:04:26 -0700 Subject: [PATCH] src: Do not reset FINAL_LIBS@@ -16,10 +16,10 @@ Signed-off-by: Khem Raj <[email protected]> 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile -index 35dd314..3770f96 100644 +index b8e0d44..3a68fa6 100644 --- a/src/Makefile +++ b/src/Makefile -@@ -93,7 +93,7 @@ endif +@@ -122,7 +122,7 @@ endif FINAL_CFLAGS=$(STD) $(WARN) $(OPT) $(DEBUG) $(CFLAGS) $(REDIS_CFLAGS) FINAL_LDFLAGS=$(LDFLAGS) $(REDIS_LDFLAGS) $(DEBUG)meta-oe/recipes-extended/redis/redis/0005-Define-_GNU_SOURCE-to-get-PTHREAD_MUTEX_INITIALIZER.patch +5
-5@@ -1,4 +1,4 @@ -From 2e6311c9c7cd85bf63eab8fe92c08ec1ec01b6fc Mon Sep 17 00:00:00 2001 +From 5a58c573d486411a3a1585ca42bee70a661a983d Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Sat, 21 Dec 2019 12:09:51 -0800 Subject: [PATCH] Define _GNU_SOURCE to get PTHREAD_MUTEX_INITIALIZER@@ -16,12 +16,12 @@ Signed-off-by: Khem Raj <[email protected]> 1 file changed, 1 insertion(+) diff --git a/src/zmalloc.c b/src/zmalloc.c -index 1f33d09..5e182d1 100644 +index bbfa386..93e07ff 100644 --- a/src/zmalloc.c +++ b/src/zmalloc.c -@@ -28,6 +28,7 @@ - * POSSIBILITY OF SUCH DAMAGE. - */ +@@ -32,6 +32,7 @@ + #include "config.h" + #include "solarisfixes.h" +#define _GNU_SOURCE #include <stdio.h>meta-oe/recipes-extended/redis/redis/0006-Define-correct-gregs-for-RISCV32.patch +4
-4@@ -1,4 +1,4 @@ -From 6149911f7a6fbaef3ed418408e2b501fa9479ffa Mon Sep 17 00:00:00 2001 +From 8a16ff40b75671725e4bd92b50a5f083460e796b Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Mon, 26 Oct 2020 21:32:22 -0700 Subject: [PATCH] Define correct gregs for RISCV32@@ -14,10 +14,10 @@ Signed-off-by: Yi Fan Yu <[email protected]> 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/src/debug.c b/src/debug.c -index bb76c5d..55a0696 100644 +index 684f692..2ee151f 100644 --- a/src/debug.c +++ b/src/debug.c -@@ -1067,7 +1067,9 @@ static void* getAndSetMcontextEip(ucontext_t *uc, void *eip) { +@@ -1215,7 +1215,9 @@ static void* getAndSetMcontextEip(ucontext_t *uc, void *eip) { #endif #elif defined(__linux__) /* Linux */@@ -28,7 +28,7 @@ index bb76c5d..55a0696 100644 GET_SET_RETURN(uc->uc_mcontext.gregs[14], eip); #elif defined(__X86_64__) || defined(__x86_64__) GET_SET_RETURN(uc->uc_mcontext.gregs[16], eip); -@@ -1234,8 +1236,28 @@ void logRegisters(ucontext_t *uc) { +@@ -1401,8 +1403,28 @@ void logRegisters(ucontext_t *uc) { #endif /* Linux */ #elif defined(__linux__)meta-oe/recipes-extended/redis/redis_7.2.14.bb renamed from meta-oe/recipes-extended/redis/redis_7.2.12.bb +1
-2@@ -17,7 +17,7 @@ SRC_URI = "http://download.redis.io/releases/${BP}.tar.gz \ file://0005-Define-_GNU_SOURCE-to-get-PTHREAD_MUTEX_INITIALIZER.patch \ file://0006-Define-correct-gregs-for-RISCV32.patch \ " -SRC_URI[sha256sum] = "97c60478a7c777ac914ca9d87a7e88ba265926456107e758c62d8f971d0196bc" +SRC_URI[sha256sum] = "21326da3f66c0aead4c8204c0ac52ff905337a77cadd169f75ac22835ea30025" inherit autotools-brokensep pkgconfig update-rc.d systemd useradd -=-=-=-=-=-=-=-=-=-=-=-Links: You receive all messages sent to this group.
View/Reply Online (#127177): https://lists.openembedded.org/g/openembedded-devel/message/127177
Mute This Topic: https://lists.openembedded.org/mt/119453647/3616702
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [oe][meta-oe][scarthgap][PATCH 2/3] redis: upgrade 7.2.12 -> 7.2.14
Quoted 44 lines · Anuj Mittal
Quoted 10 lines · Ankur Tyagi via lists.openembedded.org
From: Ankur Tyagi <[email protected]>
Also refreshed patches to resolve patch fuzz QA issue.
Bug and security fix release
https://github.com/redis/redis/releases/tag/7.2.13
https://github.com/redis/redis/releases/tag/7.2.14Signed-off-by Ankur Tyagi <[email protected]>Quoted 10 lines
--- .../0001-hiredis-use-default-CC-if-it-is-set.patch | 12 ++++++++---- ...e-Makefile-to-use-environment-build-setting.patch | 6 +++--- .../0003-hack-to-force-use-of-libc-malloc.patch | 8 ++++---- .../redis/0004-src-Do-not-reset-FINAL_LIBS.patch | 6 +++--- ...GNU_SOURCE-to-get-PTHREAD_MUTEX_INITIALIZER.patch | 10 +++++----- .../0006-Define-correct-gregs-for-RISCV32.patch | 8 ++++---- .../redis/{redis_7.2.12.bb => redis_7.2.14.bb} | 2 +- 7 files changed, 28 insertions(+), 24 deletions(-) rename meta-oe/recipes-extended/redis/{redis_7.2.12.bb => redis_7.2.14.bb} (97%)Fails with error:
ERROR: redis-7.2.14-r0
do_patch: QA Issue: Fuzz detected:Applying patch 0001-hiredis-use-default-CC-if-it-is-set.patch patching file deps/hiredis/Makefile
Hunk #1 succeeded at 36 with fuzz 2 (offset -6 lines).Applying patch 0003-hack-to-force-use-of-libc-malloc.patch patching file src/Makefile
Hunk #1 succeeded at 13 with fuzz 2.Applying patch 0005-Define-_GNU_SOURCE-to-get-PTHREAD_MUTEX_INITIALIZER.patch patching file
src/zmalloc.c
Hunk #1 succeeded at 32 with fuzz 2 (offset 4 lines).
Quoted 9 lines
The context lines in the patches can be updated with devtool:
devtool modify redis
devtool finish --force-patch-refresh redis <layer_path>Don't forget to review changes done by devtool!
Patch log indicates that patches do not apply cleanly. [patch-fuzz]
odd, I'll try to reproduce the issue and send v2 later on. Thanks for the feedback.
Quoted 199 lines
Quoted 199 lines
meta-oe/recipes-extended/redis/redis/0001-hiredis-use-default-CC-if-it-is-set.patch +8
-4@@ -1,4 +1,4 @@ -From 67990f216f2fbbc8a6699c700dfc089aa617905f Mon Sep 17 00:00:00 2001 +From 61ae3e0277ac92323584bbe75ce79de6e030e84a Mon Sep 17 00:00:00 2001 From: Venture Research <[email protected]> Date: Fri, 8 Feb 2013 17:39:52 -0600 Subject: [PATCH] hiredis: use default CC if it is set@@ -6,6 +6,10 @@ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + Instead of trying to automagically figure out CC, which breaks with OE as CC has spaces in it, just skip it if one was already passed in.@@ -23,15 +27,15 @@ Signed-off-by: Andreas Müller <[email protected]> 1 file changed, 2 deletions(-) diff --git a/deps/hiredis/Makefile b/deps/hiredis/Makefile -index 7e41c97..54717e3 100644 +index bd2106b..9ce768d 100644 --- a/deps/hiredis/Makefile +++ b/deps/hiredis/Makefile -@@ -42,8 +42,6 @@ endef +@@ -36,8 +36,6 @@ endef export REDIS_TEST_CONFIG # Fallback to gcc when $CC is not in $PATH. -CC:=$(shell sh -c 'type $${CC%% *} >/dev/null 2>/dev/null && echo $(CC) || echo gcc') -CXX:=$(shell sh -c 'type $${CXX%% *} >/dev/null 2>/dev/null && echo $(CXX) || echo g++') OPTIMIZATION?=-O3 - WARNINGS=-Wall -W -Wstrict-prototypes -Wwrite-strings -Wno-missing-field-initializers + WARNINGS=-Wall -Wextra -Werror -Wstrict-prototypes -Wwrite-strings -Wno-missing-field-initializers DEBUG_FLAGS?= -g -ggdbmeta-oe/recipes-extended/redis/redis/0002-lua-update-Makefile-to-use-environment-build-setting.patch +3
-3@@ -1,4 +1,4 @@ -From ef989aab052510bfda32b2b325a5f80b76c42677 Mon Sep 17 00:00:00 2001 +From a35a89981e28fb118efa86a798dacda826eb6f74 Mon Sep 17 00:00:00 2001 From: Venture Research <[email protected]> Date: Fri, 8 Feb 2013 20:22:19 -0600 Subject: [PATCH] lua: update Makefile to use environment build settings@@ -23,10 +23,10 @@ Signed-off-by: Yi Fan Yu <[email protected]> 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/deps/Makefile b/deps/Makefile -index cbe3aef..76bc222 100644 +index 3bf0363..fd8765a 100644 --- a/deps/Makefile +++ b/deps/Makefile -@@ -81,7 +81,6 @@ endif +@@ -94,7 +94,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.meta-oe/recipes-extended/redis/redis/0003-hack-to-force-use-of-libc-malloc.patch +4
-4@@ -1,4 +1,4 @@ -From b9586abcb803747301f6cc4ff93c7642bef693ea Mon Sep 17 00:00:00 2001 +From a6246b17e94a2f7ad3560787a476b18aa7a45358 Mon Sep 17 00:00:00 2001 From: Venture Research <[email protected]> Date: Wed, 6 Feb 2013 20:51:02 -0600 Subject: [PATCH] hack to force use of libc malloc@@ -20,7 +20,7 @@ Signed-off-by: Alistair Francis <[email protected]> 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile -index 7d75c83..35dd314 100644 +index 6a87909..b8e0d44 100644 --- a/src/Makefile +++ b/src/Makefile @@ -13,7 +13,8 @@@@ -31,5 +31,5 @@ index 7d75c83..35dd314 100644 +# use fake uname option to force use of generic libc +uname_S := "USE_LIBC_MALLOC" uname_M := $(shell sh -c 'uname -m 2>/dev/null || echo not') - OPTIMIZATION?=-O2 - DEPENDENCY_TARGETS=hiredis linenoise lua hdr_histogram + CLANG := $(findstring clang,$(shell sh -c '$(CC) --version | head -1')) + OPTIMIZATION?=-O3meta-oe/recipes-extended/redis/redis/0004-src-Do-not-reset-FINAL_LIBS.patch +3
-3@@ -1,4 +1,4 @@ -From a4d87aca1c00c53b386ee7490223971e00873add Mon Sep 17 00:00:00 2001 +From 1b59adad94137eedfbcddb27adae74b80b4e0909 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Tue, 10 Sep 2019 20:04:26 -0700 Subject: [PATCH] src: Do not reset FINAL_LIBS@@ -16,10 +16,10 @@ Signed-off-by: Khem Raj <[email protected]> 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile -index 35dd314..3770f96 100644 +index b8e0d44..3a68fa6 100644 --- a/src/Makefile +++ b/src/Makefile -@@ -93,7 +93,7 @@ endif +@@ -122,7 +122,7 @@ endif FINAL_CFLAGS=$(STD) $(WARN) $(OPT) $(DEBUG) $(CFLAGS) $(REDIS_CFLAGS) FINAL_LDFLAGS=$(LDFLAGS) $(REDIS_LDFLAGS) $(DEBUG)meta-oe/recipes-extended/redis/redis/0005-Define-_GNU_SOURCE-to-get-PTHREAD_MUTEX_INITIALIZER.patch +5
-5@@ -1,4 +1,4 @@ -From 2e6311c9c7cd85bf63eab8fe92c08ec1ec01b6fc Mon Sep 17 00:00:00 2001 +From 5a58c573d486411a3a1585ca42bee70a661a983d Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Sat, 21 Dec 2019 12:09:51 -0800 Subject: [PATCH] Define _GNU_SOURCE to get PTHREAD_MUTEX_INITIALIZER@@ -16,12 +16,12 @@ Signed-off-by: Khem Raj <[email protected]> 1 file changed, 1 insertion(+) diff --git a/src/zmalloc.c b/src/zmalloc.c -index 1f33d09..5e182d1 100644 +index bbfa386..93e07ff 100644 --- a/src/zmalloc.c +++ b/src/zmalloc.c -@@ -28,6 +28,7 @@ - * POSSIBILITY OF SUCH DAMAGE. - */ +@@ -32,6 +32,7 @@ + #include "config.h" + #include "solarisfixes.h" +#define _GNU_SOURCE #include <stdio.h>meta-oe/recipes-extended/redis/redis/0006-Define-correct-gregs-for-RISCV32.patch +4
-4@@ -1,4 +1,4 @@ -From 6149911f7a6fbaef3ed418408e2b501fa9479ffa Mon Sep 17 00:00:00 2001 +From 8a16ff40b75671725e4bd92b50a5f083460e796b Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Mon, 26 Oct 2020 21:32:22 -0700 Subject: [PATCH] Define correct gregs for RISCV32@@ -14,10 +14,10 @@ Signed-off-by: Yi Fan Yu <[email protected]> 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/src/debug.c b/src/debug.c -index bb76c5d..55a0696 100644 +index 684f692..2ee151f 100644 --- a/src/debug.c +++ b/src/debug.c -@@ -1067,7 +1067,9 @@ static void* getAndSetMcontextEip(ucontext_t *uc, void *eip) { +@@ -1215,7 +1215,9 @@ static void* getAndSetMcontextEip(ucontext_t *uc, void *eip) { #endif #elif defined(__linux__) /* Linux */@@ -28,7 +28,7 @@ index bb76c5d..55a0696 100644 GET_SET_RETURN(uc->uc_mcontext.gregs[14], eip); #elif defined(__X86_64__) || defined(__x86_64__) GET_SET_RETURN(uc->uc_mcontext.gregs[16], eip); -@@ -1234,8 +1236,28 @@ void logRegisters(ucontext_t *uc) { +@@ -1401,8 +1403,28 @@ void logRegisters(ucontext_t *uc) { #endif /* Linux */ #elif defined(__linux__)meta-oe/recipes-extended/redis/redis_7.2.14.bb renamed from meta-oe/recipes-extended/redis/redis_7.2.12.bb +1
-2@@ -17,7 +17,7 @@ SRC_URI = "http://download.redis.io/releases/${BP}.tar.gz \ file://0005-Define-_GNU_SOURCE-to-get-PTHREAD_MUTEX_INITIALIZER.patch \ file://0006-Define-correct-gregs-for-RISCV32.patch \ " -SRC_URI[sha256sum] = "97c60478a7c777ac914ca9d87a7e88ba265926456107e758c62d8f971d0196bc" +SRC_URI[sha256sum] = "21326da3f66c0aead4c8204c0ac52ff905337a77cadd169f75ac22835ea30025" inherit autotools-brokensep pkgconfig update-rc.d systemd useradd -=-=-=-=-=-=-=-=-=-=-=-Links: You receive all messages sent to this group.
View/Reply Online (#127177): https://lists.openembedded.org/g/openembedded-devel/message/127177
Mute This Topic: https://lists.openembedded.org/mt/119453647/3616702
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [oe][meta-oe][scarthgap][PATCH 2/3] redis: upgrade 7.2.12 -> 7.2.14
Please drop this patch, submitted new patch
https://lists.openembedded.org/g/openembedded-devel/message/127379
Quoted 259 lines · Ankur Tyagi
Quoted 44 lines · Anuj Mittal
Quoted 10 lines · Ankur Tyagi via lists.openembedded.org
From: Ankur Tyagi <[email protected]>
Also refreshed patches to resolve patch fuzz QA issue.
Bug and security fix release
https://github.com/redis/redis/releases/tag/7.2.13
https://github.com/redis/redis/releases/tag/7.2.14Signed-off-by Ankur Tyagi <[email protected]>Quoted 10 lines
--- .../0001-hiredis-use-default-CC-if-it-is-set.patch | 12 ++++++++---- ...e-Makefile-to-use-environment-build-setting.patch | 6 +++--- .../0003-hack-to-force-use-of-libc-malloc.patch | 8 ++++---- .../redis/0004-src-Do-not-reset-FINAL_LIBS.patch | 6 +++--- ...GNU_SOURCE-to-get-PTHREAD_MUTEX_INITIALIZER.patch | 10 +++++----- .../0006-Define-correct-gregs-for-RISCV32.patch | 8 ++++---- .../redis/{redis_7.2.12.bb => redis_7.2.14.bb} | 2 +- 7 files changed, 28 insertions(+), 24 deletions(-) rename meta-oe/recipes-extended/redis/{redis_7.2.12.bb => redis_7.2.14.bb} (97%)Fails with error:
ERROR: redis-7.2.14-r0
do_patch: QA Issue: Fuzz detected:Applying patch 0001-hiredis-use-default-CC-if-it-is-set.patch patching file deps/hiredis/Makefile
Hunk #1 succeeded at 36 with fuzz 2 (offset -6 lines).Applying patch 0003-hack-to-force-use-of-libc-malloc.patch patching file src/Makefile
Hunk #1 succeeded at 13 with fuzz 2.Applying patch 0005-Define-_GNU_SOURCE-to-get-PTHREAD_MUTEX_INITIALIZER.patch patching file
src/zmalloc.c
Hunk #1 succeeded at 32 with fuzz 2 (offset 4 lines).Quoted 9 lines
The context lines in the patches can be updated with devtool:
devtool modify redis
devtool finish --force-patch-refresh redis <layer_path>Don't forget to review changes done by devtool!
Patch log indicates that patches do not apply cleanly. [patch-fuzz]
odd, I'll try to reproduce the issue and send v2 later on. Thanks for the feedback.
Quoted 199 lines
Quoted 199 lines
meta-oe/recipes-extended/redis/redis/0001-hiredis-use-default-CC-if-it-is-set.patch +8
-4@@ -1,4 +1,4 @@ -From 67990f216f2fbbc8a6699c700dfc089aa617905f Mon Sep 17 00:00:00 2001 +From 61ae3e0277ac92323584bbe75ce79de6e030e84a Mon Sep 17 00:00:00 2001 From: Venture Research <[email protected]> Date: Fri, 8 Feb 2013 17:39:52 -0600 Subject: [PATCH] hiredis: use default CC if it is set@@ -6,6 +6,10 @@ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + Instead of trying to automagically figure out CC, which breaks with OE as CC has spaces in it, just skip it if one was already passed in.@@ -23,15 +27,15 @@ Signed-off-by: Andreas Müller <[email protected]> 1 file changed, 2 deletions(-) diff --git a/deps/hiredis/Makefile b/deps/hiredis/Makefile -index 7e41c97..54717e3 100644 +index bd2106b..9ce768d 100644 --- a/deps/hiredis/Makefile +++ b/deps/hiredis/Makefile -@@ -42,8 +42,6 @@ endef +@@ -36,8 +36,6 @@ endef export REDIS_TEST_CONFIG # Fallback to gcc when $CC is not in $PATH. -CC:=$(shell sh -c 'type $${CC%% *} >/dev/null 2>/dev/null && echo $(CC) || echo gcc') -CXX:=$(shell sh -c 'type $${CXX%% *} >/dev/null 2>/dev/null && echo $(CXX) || echo g++') OPTIMIZATION?=-O3 - WARNINGS=-Wall -W -Wstrict-prototypes -Wwrite-strings -Wno-missing-field-initializers + WARNINGS=-Wall -Wextra -Werror -Wstrict-prototypes -Wwrite-strings -Wno-missing-field-initializers DEBUG_FLAGS?= -g -ggdbmeta-oe/recipes-extended/redis/redis/0002-lua-update-Makefile-to-use-environment-build-setting.patch +3
-3@@ -1,4 +1,4 @@ -From ef989aab052510bfda32b2b325a5f80b76c42677 Mon Sep 17 00:00:00 2001 +From a35a89981e28fb118efa86a798dacda826eb6f74 Mon Sep 17 00:00:00 2001 From: Venture Research <[email protected]> Date: Fri, 8 Feb 2013 20:22:19 -0600 Subject: [PATCH] lua: update Makefile to use environment build settings@@ -23,10 +23,10 @@ Signed-off-by: Yi Fan Yu <[email protected]> 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/deps/Makefile b/deps/Makefile -index cbe3aef..76bc222 100644 +index 3bf0363..fd8765a 100644 --- a/deps/Makefile +++ b/deps/Makefile -@@ -81,7 +81,6 @@ endif +@@ -94,7 +94,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.meta-oe/recipes-extended/redis/redis/0003-hack-to-force-use-of-libc-malloc.patch +4
-4@@ -1,4 +1,4 @@ -From b9586abcb803747301f6cc4ff93c7642bef693ea Mon Sep 17 00:00:00 2001 +From a6246b17e94a2f7ad3560787a476b18aa7a45358 Mon Sep 17 00:00:00 2001 From: Venture Research <[email protected]> Date: Wed, 6 Feb 2013 20:51:02 -0600 Subject: [PATCH] hack to force use of libc malloc@@ -20,7 +20,7 @@ Signed-off-by: Alistair Francis <[email protected]> 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile -index 7d75c83..35dd314 100644 +index 6a87909..b8e0d44 100644 --- a/src/Makefile +++ b/src/Makefile @@ -13,7 +13,8 @@@@ -31,5 +31,5 @@ index 7d75c83..35dd314 100644 +# use fake uname option to force use of generic libc +uname_S := "USE_LIBC_MALLOC" uname_M := $(shell sh -c 'uname -m 2>/dev/null || echo not') - OPTIMIZATION?=-O2 - DEPENDENCY_TARGETS=hiredis linenoise lua hdr_histogram + CLANG := $(findstring clang,$(shell sh -c '$(CC) --version | head -1')) + OPTIMIZATION?=-O3meta-oe/recipes-extended/redis/redis/0004-src-Do-not-reset-FINAL_LIBS.patch +3
-3@@ -1,4 +1,4 @@ -From a4d87aca1c00c53b386ee7490223971e00873add Mon Sep 17 00:00:00 2001 +From 1b59adad94137eedfbcddb27adae74b80b4e0909 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Tue, 10 Sep 2019 20:04:26 -0700 Subject: [PATCH] src: Do not reset FINAL_LIBS@@ -16,10 +16,10 @@ Signed-off-by: Khem Raj <[email protected]> 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile -index 35dd314..3770f96 100644 +index b8e0d44..3a68fa6 100644 --- a/src/Makefile +++ b/src/Makefile -@@ -93,7 +93,7 @@ endif +@@ -122,7 +122,7 @@ endif FINAL_CFLAGS=$(STD) $(WARN) $(OPT) $(DEBUG) $(CFLAGS) $(REDIS_CFLAGS) FINAL_LDFLAGS=$(LDFLAGS) $(REDIS_LDFLAGS) $(DEBUG)meta-oe/recipes-extended/redis/redis/0005-Define-_GNU_SOURCE-to-get-PTHREAD_MUTEX_INITIALIZER.patch +5
-5@@ -1,4 +1,4 @@ -From 2e6311c9c7cd85bf63eab8fe92c08ec1ec01b6fc Mon Sep 17 00:00:00 2001 +From 5a58c573d486411a3a1585ca42bee70a661a983d Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Sat, 21 Dec 2019 12:09:51 -0800 Subject: [PATCH] Define _GNU_SOURCE to get PTHREAD_MUTEX_INITIALIZER@@ -16,12 +16,12 @@ Signed-off-by: Khem Raj <[email protected]> 1 file changed, 1 insertion(+) diff --git a/src/zmalloc.c b/src/zmalloc.c -index 1f33d09..5e182d1 100644 +index bbfa386..93e07ff 100644 --- a/src/zmalloc.c +++ b/src/zmalloc.c -@@ -28,6 +28,7 @@ - * POSSIBILITY OF SUCH DAMAGE. - */ +@@ -32,6 +32,7 @@ + #include "config.h" + #include "solarisfixes.h" +#define _GNU_SOURCE #include <stdio.h>meta-oe/recipes-extended/redis/redis/0006-Define-correct-gregs-for-RISCV32.patch +4
-4@@ -1,4 +1,4 @@ -From 6149911f7a6fbaef3ed418408e2b501fa9479ffa Mon Sep 17 00:00:00 2001 +From 8a16ff40b75671725e4bd92b50a5f083460e796b Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Mon, 26 Oct 2020 21:32:22 -0700 Subject: [PATCH] Define correct gregs for RISCV32@@ -14,10 +14,10 @@ Signed-off-by: Yi Fan Yu <[email protected]> 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/src/debug.c b/src/debug.c -index bb76c5d..55a0696 100644 +index 684f692..2ee151f 100644 --- a/src/debug.c +++ b/src/debug.c -@@ -1067,7 +1067,9 @@ static void* getAndSetMcontextEip(ucontext_t *uc, void *eip) { +@@ -1215,7 +1215,9 @@ static void* getAndSetMcontextEip(ucontext_t *uc, void *eip) { #endif #elif defined(__linux__) /* Linux */@@ -28,7 +28,7 @@ index bb76c5d..55a0696 100644 GET_SET_RETURN(uc->uc_mcontext.gregs[14], eip); #elif defined(__X86_64__) || defined(__x86_64__) GET_SET_RETURN(uc->uc_mcontext.gregs[16], eip); -@@ -1234,8 +1236,28 @@ void logRegisters(ucontext_t *uc) { +@@ -1401,8 +1403,28 @@ void logRegisters(ucontext_t *uc) { #endif /* Linux */ #elif defined(__linux__)meta-oe/recipes-extended/redis/redis_7.2.14.bb renamed from meta-oe/recipes-extended/redis/redis_7.2.12.bb +1
-2@@ -17,7 +17,7 @@ SRC_URI = "http://download.redis.io/releases/${BP}.tar.gz \ file://0005-Define-_GNU_SOURCE-to-get-PTHREAD_MUTEX_INITIALIZER.patch \ file://0006-Define-correct-gregs-for-RISCV32.patch \ " -SRC_URI[sha256sum] = "97c60478a7c777ac914ca9d87a7e88ba265926456107e758c62d8f971d0196bc" +SRC_URI[sha256sum] = "21326da3f66c0aead4c8204c0ac52ff905337a77cadd169f75ac22835ea30025" inherit autotools-brokensep pkgconfig update-rc.d systemd useradd -=-=-=-=-=-=-=-=-=-=-=-Links: You receive all messages sent to this group.
View/Reply Online (#127177): https://lists.openembedded.org/g/openembedded-devel/message/127177
Mute This Topic: https://lists.openembedded.org/mt/119453647/3616702
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
PATCH 3/3 redis: upgrade 6.2.21 -> 6.2.22
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Also refreshed patches to resolve patch fuzz QA issue.
Bug and security fix release
https://github.com/redis/redis/releases/tag/6.2.22
---
.../0001-hiredis-use-default-CC-if-it-is-set.patch | 12 ++++++++----
...e-Makefile-to-use-environment-build-setting.patch | 6 +++---
.../0003-hack-to-force-use-of-libc-malloc.patch | 8 ++++----
.../redis/0004-src-Do-not-reset-FINAL_LIBS.patch | 6 +++---
...GNU_SOURCE-to-get-PTHREAD_MUTEX_INITIALIZER.patch | 10 +++++-----
.../0006-Define-correct-gregs-for-RISCV32.patch | 8 ++++----
.../redis/redis/CVE-2025-27151.patch | 2 +-
.../redis/{redis_6.2.21.bb => redis_6.2.22.bb} | 2 +-
8 files changed, 29 insertions(+), 25 deletions(-)
rename meta-oe/recipes-extended/redis/{redis_6.2.21.bb => redis_6.2.22.bb} (97%)meta-oe/recipes-extended/redis/redis/0001-hiredis-use-default-CC-if-it-is-set.patch +8 -4
@@ -1,4 +1,4 @@ -From 61ae3e0277ac92323584bbe75ce79de6e030e84a Mon Sep 17 00:00:00 2001 +From 494ddfc9945d867409c22c5f1e5d2a33f257fc9f Mon Sep 17 00:00:00 2001 From: Venture Research <[email protected]> Date: Fri, 8 Feb 2013 17:39:52 -0600 Subject: [PATCH] hiredis: use default CC if it is set
@@ -10,6 +10,10 @@ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + Instead of trying to automagically figure out CC, which breaks with OE as CC has spaces in it, just skip it if one was already passed in.
@@ -27,15 +31,15 @@ Signed-off-by: Andreas Müller <[email protected]> 1 file changed, 2 deletions(-) diff --git a/deps/hiredis/Makefile b/deps/hiredis/Makefile -index bd2106b..9ce768d 100644 +index 7e41c97..54717e3 100644 --- a/deps/hiredis/Makefile +++ b/deps/hiredis/Makefile -@@ -36,8 +36,6 @@ endef +@@ -42,8 +42,6 @@ endef export REDIS_TEST_CONFIG # Fallback to gcc when $CC is not in $PATH. -CC:=$(shell sh -c 'type $${CC%% *} >/dev/null 2>/dev/null && echo $(CC) || echo gcc') -CXX:=$(shell sh -c 'type $${CXX%% *} >/dev/null 2>/dev/null && echo $(CXX) || echo g++') OPTIMIZATION?=-O3 - WARNINGS=-Wall -Wextra -Werror -Wstrict-prototypes -Wwrite-strings -Wno-missing-field-initializers + WARNINGS=-Wall -W -Wstrict-prototypes -Wwrite-strings -Wno-missing-field-initializers DEBUG_FLAGS?= -g -ggdb
meta-oe/recipes-extended/redis/redis/0002-lua-update-Makefile-to-use-environment-build-setting.patch +3 -3
@@ -1,4 +1,4 @@ -From a35a89981e28fb118efa86a798dacda826eb6f74 Mon Sep 17 00:00:00 2001 +From 31de6e24a299442a0b7808b2860af8984362f299 Mon Sep 17 00:00:00 2001 From: Venture Research <[email protected]> Date: Fri, 8 Feb 2013 20:22:19 -0600 Subject: [PATCH] lua: update Makefile to use environment build settings
@@ -23,10 +23,10 @@ Signed-off-by: Yi Fan Yu <[email protected]> 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/deps/Makefile b/deps/Makefile -index 3bf0363..fd8765a 100644 +index cbe3aef..76bc222 100644 --- a/deps/Makefile +++ b/deps/Makefile -@@ -94,7 +94,6 @@ endif +@@ -81,7 +81,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.
meta-oe/recipes-extended/redis/redis/0003-hack-to-force-use-of-libc-malloc.patch +4 -4
@@ -1,4 +1,4 @@ -From a6246b17e94a2f7ad3560787a476b18aa7a45358 Mon Sep 17 00:00:00 2001 +From dc42b5043ef16122b005d360fc9b679c5da6b40b Mon Sep 17 00:00:00 2001 From: Venture Research <[email protected]> Date: Wed, 6 Feb 2013 20:51:02 -0600 Subject: [PATCH] hack to force use of libc malloc
@@ -20,7 +20,7 @@ Signed-off-by: Alistair Francis <[email protected]> 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile -index 6a87909..b8e0d44 100644 +index 49335f0..5af2b48 100644 --- a/src/Makefile +++ b/src/Makefile @@ -13,7 +13,8 @@
@@ -31,5 +31,5 @@ index 6a87909..b8e0d44 100644 +# use fake uname option to force use of generic libc +uname_S := "USE_LIBC_MALLOC" uname_M := $(shell sh -c 'uname -m 2>/dev/null || echo not') - CLANG := $(findstring clang,$(shell sh -c '$(CC) --version | head -1')) - OPTIMIZATION?=-O3 + OPTIMIZATION?=-O2 + DEPENDENCY_TARGETS=hiredis linenoise lua hdr_histogram
meta-oe/recipes-extended/redis/redis/0004-src-Do-not-reset-FINAL_LIBS.patch +3 -3
@@ -1,4 +1,4 @@ -From 1b59adad94137eedfbcddb27adae74b80b4e0909 Mon Sep 17 00:00:00 2001 +From e69dbf949fbc9d682fc21b3b22cfc23b9ddd9a0e Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Tue, 10 Sep 2019 20:04:26 -0700 Subject: [PATCH] src: Do not reset FINAL_LIBS
@@ -16,10 +16,10 @@ Signed-off-by: Khem Raj <[email protected]> 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile -index b8e0d44..3a68fa6 100644 +index 5af2b48..071798d 100644 --- a/src/Makefile +++ b/src/Makefile -@@ -122,7 +122,7 @@ endif +@@ -93,7 +93,7 @@ endif FINAL_CFLAGS=$(STD) $(WARN) $(OPT) $(DEBUG) $(CFLAGS) $(REDIS_CFLAGS) FINAL_LDFLAGS=$(LDFLAGS) $(REDIS_LDFLAGS) $(DEBUG)
meta-oe/recipes-extended/redis/redis/0005-Define-_GNU_SOURCE-to-get-PTHREAD_MUTEX_INITIALIZER.patch +5 -5
@@ -1,4 +1,4 @@ -From 5a58c573d486411a3a1585ca42bee70a661a983d Mon Sep 17 00:00:00 2001 +From 93b0eb691fa0208a10ca169483bb0d00cfcddcec Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Sat, 21 Dec 2019 12:09:51 -0800 Subject: [PATCH] Define _GNU_SOURCE to get PTHREAD_MUTEX_INITIALIZER
@@ -16,12 +16,12 @@ Signed-off-by: Khem Raj <[email protected]> 1 file changed, 1 insertion(+) diff --git a/src/zmalloc.c b/src/zmalloc.c -index bbfa386..93e07ff 100644 +index 1f33d09..5e182d1 100644 --- a/src/zmalloc.c +++ b/src/zmalloc.c -@@ -32,6 +32,7 @@ - #include "config.h" - #include "solarisfixes.h" +@@ -28,6 +28,7 @@ + * POSSIBILITY OF SUCH DAMAGE. + */ +#define _GNU_SOURCE #include <stdio.h>
meta-oe/recipes-extended/redis/redis/0006-Define-correct-gregs-for-RISCV32.patch +4 -4
@@ -1,4 +1,4 @@ -From 8a16ff40b75671725e4bd92b50a5f083460e796b Mon Sep 17 00:00:00 2001 +From 5aef49d7f4e26009e4af408cd9a736b0394e69a2 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Mon, 26 Oct 2020 21:32:22 -0700 Subject: [PATCH] Define correct gregs for RISCV32
@@ -14,10 +14,10 @@ Signed-off-by: Yi Fan Yu <[email protected]> 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/src/debug.c b/src/debug.c -index 684f692..2ee151f 100644 +index bb76c5d..55a0696 100644 --- a/src/debug.c +++ b/src/debug.c -@@ -1215,7 +1215,9 @@ static void* getAndSetMcontextEip(ucontext_t *uc, void *eip) { +@@ -1067,7 +1067,9 @@ static void* getAndSetMcontextEip(ucontext_t *uc, void *eip) { #endif #elif defined(__linux__) /* Linux */
@@ -28,7 +28,7 @@ index 684f692..2ee151f 100644 GET_SET_RETURN(uc->uc_mcontext.gregs[14], eip); #elif defined(__X86_64__) || defined(__x86_64__) GET_SET_RETURN(uc->uc_mcontext.gregs[16], eip); -@@ -1401,8 +1403,28 @@ void logRegisters(ucontext_t *uc) { +@@ -1234,8 +1236,28 @@ void logRegisters(ucontext_t *uc) { #endif /* Linux */ #elif defined(__linux__)
meta-oe/recipes-extended/redis/redis/CVE-2025-27151.patch +1 -1
@@ -1,4 +1,4 @@ -From 845233cecd6327a20957a97b78e61bccaaa652f7 Mon Sep 17 00:00:00 2001 +From 4d985adf522f8c6bbe1e8d225f9d11cbee4bbc26 Mon Sep 17 00:00:00 2001 From: YaacovHazan <[email protected]> Date: Tue, 27 May 2025 10:23:27 +0300 Subject: [PATCH] Check length of AOF file name in redis-check-aof
meta-oe/recipes-extended/redis/redis_6.2.22.bb renamed from meta-oe/recipes-extended/redis/redis_6.2.21.bb +1 -1
@@ -19,7 +19,7 @@ SRC_URI = "http://download.redis.io/releases/${BP}.tar.gz \ file://CVE-2025-27151.patch \ " -SRC_URI[sha256sum] = "6383b32ba8d246f41bbbb83663381f5a5f4c4713235433cec22fc4a47e9b6d5f" +SRC_URI[sha256sum] = "3ce191a727505b2d711bb45cfde8d9eeab1e061bdc0e5cb56a50201069a9729d" inherit autotools-brokensep update-rc.d systemd useradd