All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Armin Kuster" <akuster808@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: [hardnott 27/50] redis: upgrade 6.0.9 -> 6.2.1
Date: Sat, 17 Apr 2021 14:05:36 -0700	[thread overview]
Message-ID: <34c6ad05d2b2cb6c3ddb7ca394d73ca8abcfad65.1618692905.git.akuster808@gmail.com> (raw)
In-Reply-To: <cover.1618692905.git.akuster808@gmail.com>

From: Yi Fan Yu <yifan.yu@windriver.com>

Refresh 3 patches.

Removed Patch:
ilp32.patch fixed by upstream 0719388cfb1a79160204314beb1de1f9c29a3684

Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 0c006765426bc41c1344e856528b499637574f97)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
---
 ...06-Define-correct-gregs-for-RISCV32.patch} | 26 ++++++--
 .../recipes-extended/redis/redis/ilp32.patch  | 29 --------
 ...ile-to-use-environment-build-setting.patch | 66 ++++++++++---------
 .../redis/redis/oe-use-libc-malloc.patch      | 12 ++--
 .../redis/{redis_6.0.9.bb => redis_6.2.1.bb}  |  5 +-
 5 files changed, 62 insertions(+), 76 deletions(-)
 rename meta-oe/recipes-extended/redis/redis/{riscv32.patch => 0006-Define-correct-gregs-for-RISCV32.patch} (61%)
 delete mode 100644 meta-oe/recipes-extended/redis/redis/ilp32.patch
 rename meta-oe/recipes-extended/redis/{redis_6.0.9.bb => redis_6.2.1.bb} (93%)

diff --git a/meta-oe/recipes-extended/redis/redis/riscv32.patch b/meta-oe/recipes-extended/redis/redis/0006-Define-correct-gregs-for-RISCV32.patch
similarity index 61%
rename from meta-oe/recipes-extended/redis/redis/riscv32.patch
rename to meta-oe/recipes-extended/redis/redis/0006-Define-correct-gregs-for-RISCV32.patch
index 79ec7423da5..b2d1a32eda7 100644
--- a/meta-oe/recipes-extended/redis/redis/riscv32.patch
+++ b/meta-oe/recipes-extended/redis/redis/0006-Define-correct-gregs-for-RISCV32.patch
@@ -1,21 +1,33 @@
-Define correct gregs for RISCV32
+From 6134b471c35df826ccb41aab9a47e5c89e15a0c4 Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+Date: Mon, 26 Oct 2020 21:32:22 -0700
+Subject: [PATCH] Define correct gregs for RISCV32
 
 Upstream-Status: Pending
 Signed-off-by: Khem Raj <raj.khem@gmail.com>
+
+Updated patch for 6.2.1
+Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com>
+---
+ src/debug.c | 26 ++++++++++++++++++++++++--
+ 1 file changed, 24 insertions(+), 2 deletions(-)
+
+diff --git a/src/debug.c b/src/debug.c
+index e7fec29..5abb404 100644
 --- a/src/debug.c
 +++ b/src/debug.c
-@@ -942,7 +942,9 @@ static void *getMcontextEip(ucontext_t *
+@@ -1039,7 +1039,9 @@ static void *getMcontextEip(ucontext_t *uc) {
      #endif
  #elif defined(__linux__)
      /* Linux */
--    #if defined(__i386__) || defined(__ILP32__)
+-    #if defined(__i386__) || ((defined(__X86_64__) || defined(__x86_64__)) && defined(__ILP32__))
 +    #if defined(__riscv) && __riscv_xlen == 32
 +    return (void*) uc->uc_mcontext.__gregs[REG_PC];
-+    #elif defined(__i386__) || defined(__ILP32__)
++    #elif defined(__i386__) || ((defined(__X86_64__) || defined(__x86_64__)) && defined(__ILP32__))
      return (void*) uc->uc_mcontext.gregs[14]; /* Linux 32 */
      #elif defined(__X86_64__) || defined(__x86_64__)
      return (void*) uc->uc_mcontext.gregs[16]; /* Linux 64 */
-@@ -1102,8 +1104,28 @@ void logRegisters(ucontext_t *uc) {
+@@ -1206,8 +1208,28 @@ void logRegisters(ucontext_t *uc) {
      #endif
  /* Linux */
  #elif defined(__linux__)
@@ -40,8 +52,8 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
 +    );
 +    logStackContent((void**)uc->uc_mcontext.__gregs[REG_SP]);
      /* Linux x86 */
--    #if defined(__i386__) || defined(__ILP32__)
-+    #elif defined(__i386__) || defined(__ILP32__)
+-    #if defined(__i386__) || ((defined(__X86_64__) || defined(__x86_64__)) && defined(__ILP32__))
++    #elif defined(__i386__) || ((defined(__X86_64__) || defined(__x86_64__)) && defined(__ILP32__))
      serverLog(LL_WARNING,
      "\n"
      "EAX:%08lx EBX:%08lx ECX:%08lx EDX:%08lx\n"
diff --git a/meta-oe/recipes-extended/redis/redis/ilp32.patch b/meta-oe/recipes-extended/redis/redis/ilp32.patch
deleted file mode 100644
index 48d01a1d62d..00000000000
--- a/meta-oe/recipes-extended/redis/redis/ilp32.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-__ILP32__ is defined for all 32bit architectures with clang e.g.
-which is right but it is causing issues on non-x86 architectures
-where this condition becomes true and wrongly starts using this
-code, this issue is hidden with gcc becuase gcc does not define
-__ILP32__ for all 32bit architectures but for selected 64bit arches
-who choose to use 32bit ABI e.g. x32
-
-Upstream-Status: Pending
-Signed-off-by: Khem Raj <raj.khem@gmail.com>
---- a/src/debug.c
-+++ b/src/debug.c
-@@ -944,7 +944,7 @@ static void *getMcontextEip(ucontext_t *
-     /* Linux */
-     #if defined(__riscv) && __riscv_xlen == 32
-     return (void*) uc->uc_mcontext.__gregs[REG_PC];
--    #elif defined(__i386__) || defined(__ILP32__)
-+    #elif defined(__i386__) || (defined(__X86_64__) && defined(__ILP32__))
-     return (void*) uc->uc_mcontext.gregs[14]; /* Linux 32 */
-     #elif defined(__X86_64__) || defined(__x86_64__)
-     return (void*) uc->uc_mcontext.gregs[16]; /* Linux 64 */
-@@ -1125,7 +1125,7 @@ void logRegisters(ucontext_t *uc) {
-     );
-     logStackContent((void**)uc->uc_mcontext.__gregs[REG_SP]);
-     /* Linux x86 */
--    #elif defined(__i386__) || defined(__ILP32__)
-+    #elif defined(__i386__) || ( defined(__X86_64__) && defined(__ILP32__))
-     serverLog(LL_WARNING,
-     "\n"
-     "EAX:%08lx EBX:%08lx ECX:%08lx EDX:%08lx\n"
diff --git a/meta-oe/recipes-extended/redis/redis/lua-update-Makefile-to-use-environment-build-setting.patch b/meta-oe/recipes-extended/redis/redis/lua-update-Makefile-to-use-environment-build-setting.patch
index 7e62ae1316f..1619e9db352 100644
--- a/meta-oe/recipes-extended/redis/redis/lua-update-Makefile-to-use-environment-build-setting.patch
+++ b/meta-oe/recipes-extended/redis/redis/lua-update-Makefile-to-use-environment-build-setting.patch
@@ -1,4 +1,4 @@
-From 394108035d350ae662a431c80131f812b5f72dff Mon Sep 17 00:00:00 2001
+From 097a2b259cb266c2c861dc74fa6f80712d6138c5 Mon Sep 17 00:00:00 2001
 From: Venture Research <tech@ventureresearch.com>
 Date: Fri, 8 Feb 2013 20:22:19 -0600
 Subject: [PATCH] lua: update Makefile to use environment build settings
@@ -12,14 +12,42 @@ Updated to work with 3.0.x
 
 Signed-off-by: Armin Kuster <akust808@gmail.com>
 
+updated to work wtih 6.2.1
+Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com>
 ---
- deps/lua/src/Makefile | 18 +++++++-----------
- 1 file changed, 7 insertions(+), 11 deletions(-)
+ deps/Makefile         |  1 -
+ deps/lua/Makefile     |  1 -
+ deps/lua/src/Makefile | 16 ++++++----------
+ 3 files changed, 6 insertions(+), 12 deletions(-)
 
-Index: redis-3.0.2/deps/lua/src/Makefile
-===================================================================
---- redis-3.0.2.orig/deps/lua/src/Makefile
-+++ redis-3.0.2/deps/lua/src/Makefile
+diff --git a/deps/Makefile b/deps/Makefile
+index ff16ee9..d8d64aa 100644
+--- a/deps/Makefile
++++ b/deps/Makefile
+@@ -74,7 +74,6 @@ LUA_LDFLAGS+= $(LDFLAGS)
+ # 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
++++ b/deps/lua/Makefile
+@@ -33,7 +33,6 @@ INSTALL_DATA= $(INSTALL) -m 0644
+ 
+ # Utilities.
+ MKDIR= mkdir -p
+-RANLIB= ranlib
+ 
+ # == END OF USER SETTINGS. NO NEED TO CHANGE ANYTHING BELOW THIS LINE =========
+ 
+diff --git a/deps/lua/src/Makefile b/deps/lua/src/Makefile
+index f3bba2f..1555ec0 100644
+--- a/deps/lua/src/Makefile
++++ b/deps/lua/src/Makefile
 @@ -5,18 +5,14 @@
  # == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT =======================
  
@@ -45,27 +73,3 @@ Index: redis-3.0.2/deps/lua/src/Makefile
  
  # == END OF USER SETTINGS. NO NEED TO CHANGE ANYTHING BELOW THIS LINE =========
  
-Index: redis-3.0.2/deps/Makefile
-===================================================================
---- redis-3.0.2.orig/deps/Makefile
-+++ redis-3.0.2/deps/Makefile
-@@ -63,7 +63,6 @@ LUA_LDFLAGS+= $(LDFLAGS)
- # 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=rcu
- 
- lua: .make-prerequisites
-Index: redis-3.0.2/deps/lua/Makefile
-===================================================================
---- redis-3.0.2.orig/deps/lua/Makefile
-+++ redis-3.0.2/deps/lua/Makefile
-@@ -33,7 +33,6 @@ INSTALL_DATA= $(INSTALL) -m 0644
- 
- # Utilities.
- MKDIR= mkdir -p
--RANLIB= ranlib
- 
- # == END OF USER SETTINGS. NO NEED TO CHANGE ANYTHING BELOW THIS LINE =========
- 
diff --git a/meta-oe/recipes-extended/redis/redis/oe-use-libc-malloc.patch b/meta-oe/recipes-extended/redis/redis/oe-use-libc-malloc.patch
index 6745f3d0e0a..a0f66b845e2 100644
--- a/meta-oe/recipes-extended/redis/redis/oe-use-libc-malloc.patch
+++ b/meta-oe/recipes-extended/redis/redis/oe-use-libc-malloc.patch
@@ -1,4 +1,4 @@
-From f8861d2129b9e18bba137705bfa38c6bd9be1790 Mon Sep 17 00:00:00 2001
+From 1fa047162983d4a7e0576f0837a73a6027a783bd Mon Sep 17 00:00:00 2001
 From: Venture Research <tech@ventureresearch.com>
 Date: Wed, 6 Feb 2013 20:51:02 -0600
 Subject: [PATCH] hack to force use of libc malloc
@@ -6,7 +6,7 @@ Subject: [PATCH] hack to force use of libc malloc
 Hack to force libc usage as it seems the option to pass it in has been
 removed in favor of magic.
 
-Note that this of course doesn't allow tcmalloc and jemalloc, however 
+Note that this of course doesn't allow tcmalloc and jemalloc, however
 jemalloc wasn't building correctly.
 
 Signed-off-by: Venture Research <tech@ventureresearch.com>
@@ -15,11 +15,11 @@ Update to work with 4.0.8
 Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
 
 ---
- src/Makefile | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
+ src/Makefile | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
 
 diff --git a/src/Makefile b/src/Makefile
-index 86e0b3fe..a810180b 100644
+index ecd6929..c7f43c5 100644
 --- a/src/Makefile
 +++ b/src/Makefile
 @@ -13,7 +13,8 @@
@@ -31,4 +31,4 @@ index 86e0b3fe..a810180b 100644
 +uname_S := "USE_LIBC_MALLOC"
  uname_M := $(shell sh -c 'uname -m 2>/dev/null || echo not')
  OPTIMIZATION?=-O2
- DEPENDENCY_TARGETS=hiredis linenoise lua
+ DEPENDENCY_TARGETS=hiredis linenoise lua hdr_histogram
diff --git a/meta-oe/recipes-extended/redis/redis_6.0.9.bb b/meta-oe/recipes-extended/redis/redis_6.2.1.bb
similarity index 93%
rename from meta-oe/recipes-extended/redis/redis_6.0.9.bb
rename to meta-oe/recipes-extended/redis/redis_6.2.1.bb
index 50571ed550b..89990df3de2 100644
--- a/meta-oe/recipes-extended/redis/redis_6.0.9.bb
+++ b/meta-oe/recipes-extended/redis/redis_6.2.1.bb
@@ -15,10 +15,9 @@ SRC_URI = "http://download.redis.io/releases/${BP}.tar.gz \
            file://oe-use-libc-malloc.patch \
            file://0001-src-Do-not-reset-FINAL_LIBS.patch \
            file://GNU_SOURCE.patch \
-           file://riscv32.patch \
-           file://ilp32.patch \
+           file://0006-Define-correct-gregs-for-RISCV32.patch \
            "
-SRC_URI[sha256sum] = "dc2bdcf81c620e9f09cfd12e85d3bc631c897b2db7a55218fd8a65eaa37f86dd"
+SRC_URI[sha256sum] = "cd222505012cce20b25682fca931ec93bd21ae92cb4abfe742cf7b76aa907520"
 
 inherit autotools-brokensep update-rc.d systemd useradd
 
-- 
2.17.1


  parent reply	other threads:[~2021-04-17 21:06 UTC|newest]

Thread overview: 51+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-17 21:05 [hardnott 00/50] Patch review April 17th Armin Kuster
2021-04-17 21:05 ` [hardnott 01/50] tbb: upgrade 2020.3 -> 2021.2.0 Armin Kuster
2021-04-17 21:05 ` [hardnott 02/50] tbb: Fix build with musl Armin Kuster
2021-04-17 21:05 ` [hardnott 03/50] ocl-icd: upgrade 2.2.14 -> 2.3.0 Armin Kuster
2021-04-17 21:05 ` [hardnott 04/50] python3-ruamel-yaml: Upgrade 0.17.2 -> 0.17.4 Armin Kuster
2021-04-17 21:05 ` [hardnott 05/50] python3-croniter: Upgrade 1.0.10 -> 1.0.11 Armin Kuster
2021-04-17 21:05 ` [hardnott 06/50] python3-decorator: Upgrade 5.0.5 -> 5.0.6 Armin Kuster
2021-04-17 21:05 ` [hardnott 07/50] python3-grpcio-tools: Upgrade 1.36.1 -> 1.37.0 Armin Kuster
2021-04-17 21:05 ` [hardnott 08/50] python3-speedtest-cli: Upgrade 2.1.2 -> 2.1.3 Armin Kuster
2021-04-17 21:05 ` [hardnott 09/50] python3-python-vlc: Upgrade 3.0.11115 -> 3.0.12117 Armin Kuster
2021-04-17 21:05 ` [hardnott 10/50] python3-robotframework: Upgrade 4.0 -> 4.0.1 Armin Kuster
2021-04-17 21:05 ` [hardnott 11/50] python3-grpcio: Upgrade 1.36.1 -> 1.37.0 Armin Kuster
2021-04-17 21:05 ` [hardnott 12/50] python3-absl: upgrade 0.10.0 -> 0.12.0 Armin Kuster
2021-04-17 21:05 ` [hardnott 13/50] python3-astroid: upgrade 2.5.2 -> 2.5.3 Armin Kuster
2021-04-17 21:05 ` [hardnott 14/50] python3-bitarray: upgrade 1.9.1 -> 1.9.2 Armin Kuster
2021-04-17 21:05 ` [hardnott 15/50] python3-cerberus: Upgrade 1.3.2 -> 1.3.3 Armin Kuster
2021-04-17 21:05 ` [hardnott 16/50] python3-humanize: Upgrade 3.3.0 -> 3.4.0 Armin Kuster
2021-04-17 21:05 ` [hardnott 17/50] python3-monotonic: Upgrade 1.5 -> 1.6 Armin Kuster
2021-04-17 21:05 ` [hardnott 18/50] python3-sqlalchemy: Upgrade 1.4.6 -> 1.4.7 Armin Kuster
2021-04-17 21:05 ` [hardnott 19/50] python3-typed-ast: Upgrade 1.4.2 -> 1.4.3 Armin Kuster
2021-04-17 21:05 ` [hardnott 20/50] python3-backports-functools-lru-cache: Upgrade 1.6.3 -> 1.6.4 Armin Kuster
2021-04-17 21:05 ` [hardnott 21/50] python3-xmlschema: Upgrade 1.6.0 -> 1.6.1 Armin Kuster
2021-04-17 21:05 ` [hardnott 22/50] modemmanager: upgrade 1.14.10 -> 1.16.2 Armin Kuster
2021-04-17 21:05 ` [hardnott 23/50] libqmi: upgrade 1.26.6 -> 1.28.2 Armin Kuster
2021-04-17 21:05 ` [hardnott 24/50] hostapd: fix CVE-2021-30004 Armin Kuster
2021-04-17 21:05 ` [hardnott 25/50] catfish: add python3-dbus to RDEPENDS Armin Kuster
2021-04-17 21:05 ` [hardnott 26/50] fluidsynth: upgrade 2.1.7 -> 2.2.0 Armin Kuster
2021-04-17 21:05 ` Armin Kuster [this message]
2021-04-17 21:05 ` [hardnott 28/50] python3-pyroute2: Upgrade 0.5.17 -> 0.5.18 Armin Kuster
2021-04-17 21:05 ` [hardnott 29/50] python3-sympy: Upgrade 1.7.1 -> 1.8 Armin Kuster
2021-04-17 21:05 ` [hardnott 30/50] python3-pandas: Upgrade 1.2.3 -> 1.2.4 Armin Kuster
2021-04-17 21:05 ` [hardnott 31/50] python3-humanize: Upgrade 3.4.0 -> 3.4.1 Armin Kuster
2021-04-17 21:05 ` [hardnott 32/50] python3-decorator: Upgrade 5.0.6 -> 5.0.7 Armin Kuster
2021-04-17 21:05 ` [hardnott 33/50] python3-colorlog: Upgrade 4.8.0 -> 5.0.1 Armin Kuster
2021-04-17 21:05 ` [hardnott 34/50] python3-google-api-python-client: Upgrade 2.1.0 -> 2.2.0 Armin Kuster
2021-04-17 21:05 ` [hardnott 35/50] python3-croniter: Upgrade 1.0.11 -> 1.0.12 Armin Kuster
2021-04-17 21:05 ` [hardnott 36/50] core-image-minimal-xfce: Use graphical.target as default Armin Kuster
2021-04-17 21:05 ` [hardnott 37/50] opencv: fetch wechat_qrcode files used by dnn PACKAGECONFIG Armin Kuster
2021-04-17 21:05 ` [hardnott 38/50] opencv: link sfm module with Glog Armin Kuster
2021-04-17 21:05 ` [hardnott 39/50] debootstrap: 1.0.67 -> 1.0.123 Armin Kuster
2021-04-17 21:05 ` [hardnott 40/50] bats: upgrade 1.1.0 -> 1.3.0 Armin Kuster
2021-04-17 21:05 ` [hardnott 41/50] fwts: upgrade to 21.03.00 Armin Kuster
2021-04-17 21:05 ` [hardnott 42/50] PEP8 double aggressive E701, E70 and E502 Armin Kuster
2021-04-17 21:05 ` [hardnott 43/50] PEP8 double aggressive E20 and E211 Armin Kuster
2021-04-17 21:05 ` [hardnott 44/50] PEP8 double aggressive E22, E224, E241, E242 and E27 Armin Kuster
2021-04-17 21:05 ` [hardnott 45/50] PEP8 double aggressive E301 ~ E306 Armin Kuster
2021-04-17 21:05 ` [hardnott 46/50] PEP8 double aggressive W291 ~ W293 and W391 Armin Kuster
2021-04-17 21:05 ` [hardnott 47/50] vnstat: Disable install parallism to fix a potential install race Armin Kuster
2021-04-17 21:05 ` [hardnott 48/50] uftrace: Fix error on aarch64 when binutils update to 2.35.1 Armin Kuster
2021-04-17 21:05 ` [hardnott 49/50] open-vm-tools: upgrade 11.0.1 -> 11.2.5 Armin Kuster
2021-04-17 21:05 ` [hardnott 50/50] open-vm-tools: Fix build with gcc 11 Armin Kuster

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=34c6ad05d2b2cb6c3ddb7ca394d73ca8abcfad65.1618692905.git.akuster808@gmail.com \
    --to=akuster808@gmail.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.