Skip to contentSkip to conversation

redis: fix do_patch fuzz warning

PATCH Superseded [email protected] 3 participants 4 messages Aug 12, 2022 – Aug 15, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 redis: fix do_patch fuzz warning

From: Changqing Li <[email protected]>

Fix:
WARNING: lib32-redis-7.0.4-r0 do_patch: Fuzz detected:
Applying patch GNU_SOURCE.patch
patching file src/zmalloc.c
Hunk #1 succeeded at 32 with fuzz 2 (offset 4 lines).

There are two version of redis, and need different GNU_SOURCE.patch

---
 .../redis/redis-7/{GNU_SOURCE.patch => GNU_SOURCE-7.patch}      | 0
 meta-oe/recipes-extended/redis/redis_7.0.4.bb                   | 2 +-
 2 files changed, 1 insertion(+), 1 deletion(-)
 rename meta-oe/recipes-extended/redis/redis-7/{GNU_SOURCE.patch => GNU_SOURCE-7.patch} (100%)
meta-oe/recipes-extended/redis/redis-7/GNU_SOURCE-7.patch renamed from meta-oe/recipes-extended/redis/redis-7/GNU_SOURCE.patch +0 -0
similarity index 100%
rename from meta-oe/recipes-extended/redis/redis-7/GNU_SOURCE.patch
rename to meta-oe/recipes-extended/redis/redis-7/GNU_SOURCE-7.patch
meta-oe/recipes-extended/redis/redis_7.0.4.bb +1 -1
index 993ff34b10..e292237097 100644
@@ -16,7 +16,7 @@ SRC_URI = "http://download.redis.io/releases/${BP}.tar.gz \
            file://lua-update-Makefile-to-use-environment-build-setting.patch \
            file://oe-use-libc-malloc.patch \
            file://0001-src-Do-not-reset-FINAL_LIBS.patch \
-           file://GNU_SOURCE.patch \
+           file://GNU_SOURCE-7.patch \
            file://0006-Define-correct-gregs-for-RISCV32.patch \
            "
 SRC_URI[sha256sum] = "f0e65fda74c44a3dd4fa9d512d4d4d833dd0939c934e946a5c622a630d057f2f"
Signature · 1 line
2.25.1
#1 lore raw

Please hold on this patch, we need a V2 to fix the multilib do_fetch error.

// Robert

Quoted 45 lines · Changqing Li

From: Changqing Li <[email protected]>

Fix:
WARNING: lib32-redis-7.0.4-r0 do_patch: Fuzz detected:
Applying patch GNU_SOURCE.patch
patching file src/zmalloc.c
Hunk #1 succeeded at 32 with fuzz 2 (offset 4 lines).

There are two version of redis, and need different GNU_SOURCE.patch

---
  .../redis/redis-7/{GNU_SOURCE.patch => GNU_SOURCE-7.patch}      | 0
  meta-oe/recipes-extended/redis/redis_7.0.4.bb                   | 2 +-
  2 files changed, 1 insertion(+), 1 deletion(-)

rename meta-oe/recipes-extended/redis/redis-7/{GNU_SOURCE.patch => GNU_SOURCE-7.patch} (100%)

meta-oe/recipes-extended/redis/redis-7/GNU_SOURCE-7.patch renamed from meta-oe/recipes-extended/redis/redis-7/GNU_SOURCE.patch +0 -0
similarity index 100%
rename from meta-oe/recipes-extended/redis/redis-7/GNU_SOURCE.patch
rename to meta-oe/recipes-extended/redis/redis-7/GNU_SOURCE-7.patch
meta-oe/recipes-extended/redis/redis_7.0.4.bb +1 -2
index 993ff34b10..e292237097 100644
@@ -16,7 +16,7 @@ SRC_URI = "http://download.redis.io/releases/${BP}.tar.gz \
             file://lua-update-Makefile-to-use-environment-build-setting.patch \
             file://oe-use-libc-malloc.patch \
             file://0001-src-Do-not-reset-FINAL_LIBS.patch \
-           file://GNU_SOURCE.patch \
+           file://GNU_SOURCE-7.patch \
             file://0006-Define-correct-gregs-for-RISCV32.patch \
             "
  SRC_URI[sha256sum] = "f0e65fda74c44a3dd4fa9d512d4d4d833dd0939c934e946a5c622a630d057f2f"
 
 
 
-=-=-=-=-=-=-=-=-=-=-=-

Links: You receive all messages sent to this group.
View/Reply Online (#98209): https://lists.openembedded.org/g/openembedded-devel/message/98209
Mute This Topic: https://lists.openembedded.org/mt/92976372/3616940
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw
Quoted 3 lines · Robert Yang

Please hold on this patch, we need a V2 to fix the multilib do_fetch error.

dropped. thanks

Quoted 51 lines

// Robert

Quoted 31 lines · Changqing Li

From: Changqing Li <[email protected]>

Fix:
WARNING: lib32-redis-7.0.4-r0 do_patch: Fuzz detected:
Applying patch GNU_SOURCE.patch
patching file src/zmalloc.c
Hunk #1 succeeded at 32 with fuzz 2 (offset 4 lines).

There are two version of redis, and need different GNU_SOURCE.patch

---
  .../redis/redis-7/{GNU_SOURCE.patch => GNU_SOURCE-7.patch}      | 0
  meta-oe/recipes-extended/redis/redis_7.0.4.bb                   | 2 +-
  2 files changed, 1 insertion(+), 1 deletion(-)

rename meta-oe/recipes-extended/redis/redis-7/{GNU_SOURCE.patch => GNU_SOURCE-7.patch} (100%)

meta-oe/recipes-extended/redis/redis-7/GNU_SOURCE-7.patch renamed from meta-oe/recipes-extended/redis/redis-7/GNU_SOURCE.patch +0 -0
similarity index 100%
rename from meta-oe/recipes-extended/redis/redis-7/GNU_SOURCE.patch
rename to meta-oe/recipes-extended/redis/redis-7/GNU_SOURCE-7.patch
meta-oe/recipes-extended/redis/redis_7.0.4.bb +0 -0
index 993ff34b10..e292237097 100644

meta-oe/recipes-extended/redis/redis_7.0.4.bb SRC_URI = "http://download.redis.io/releases/${BP}.tar.gz \ · line 22

Quoted 8 lines
meta-oe/recipes-extended/redis/redis_7.0.4.bb +1 -1
@@ -16,7 +16,7 @@ SRC_URI = "http://download.redis.io/releases/${BP}.tar.gz \
             file://lua-update-Makefile-to-use-environment-build-setting.patch \
             file://oe-use-libc-malloc.patch \
             file://0001-src-Do-not-reset-FINAL_LIBS.patch \
-           file://GNU_SOURCE.patch \
+           file://GNU_SOURCE-7.patch \
             file://0006-Define-correct-gregs-for-RISCV32.patch \
             "
  SRC_URI[sha256sum] = "f0e65fda74c44a3dd4fa9d512d4d4d833dd0939c934e946a5c622a630d057f2f"

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#98227): https://lists.openembedded.org/g/openembedded-devel/message/98227
Mute This Topic: https://lists.openembedded.org/mt/92976372/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#3 lore raw

PATCH v2 1/1 redis: fix do_patch fuzz warning

From: Changqing Li <[email protected]>

Fix:
WARNING: lib32-redis-7.0.4-r0 do_patch: Fuzz detected:
Applying patch GNU_SOURCE.patch
patching file src/zmalloc.c
Hunk #1 succeeded at 32 with fuzz 2 (offset 4 lines).

There are two version of redis, and need different GNU_SOURCE.patch

---
 .../redis/redis-7/{GNU_SOURCE.patch => GNU_SOURCE-7.patch}    | 0
 meta-oe/recipes-extended/redis/redis_7.0.4.bb                 | 4 ++--
 2 files changed, 2 insertions(+), 2 deletions(-)
 rename meta-oe/recipes-extended/redis/redis-7/{GNU_SOURCE.patch => GNU_SOURCE-7.patch} (100%)
meta-oe/recipes-extended/redis/redis-7/GNU_SOURCE-7.patch renamed from meta-oe/recipes-extended/redis/redis-7/GNU_SOURCE.patch +0 -0
similarity index 100%
rename from meta-oe/recipes-extended/redis/redis-7/GNU_SOURCE.patch
rename to meta-oe/recipes-extended/redis/redis-7/GNU_SOURCE-7.patch
meta-oe/recipes-extended/redis/redis_7.0.4.bb +2 -2
index 993ff34b10..cde32e4147 100644
@@ -6,7 +6,7 @@ LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://COPYING;md5=8ffdd6c926faaece928cf9d9640132d2"
 DEPENDS = "readline lua ncurses"
 
-FILESPATH =. "${FILE_DIRNAME}/${PN}-7:"
+FILESPATH =. "${FILE_DIRNAME}/${BPN}-7:"
 
 SRC_URI = "http://download.redis.io/releases/${BP}.tar.gz \
            file://redis.conf \
@@ -16,7 +16,7 @@ SRC_URI = "http://download.redis.io/releases/${BP}.tar.gz \
            file://lua-update-Makefile-to-use-environment-build-setting.patch \
            file://oe-use-libc-malloc.patch \
            file://0001-src-Do-not-reset-FINAL_LIBS.patch \
-           file://GNU_SOURCE.patch \
+           file://GNU_SOURCE-7.patch \
            file://0006-Define-correct-gregs-for-RISCV32.patch \
            "
 SRC_URI[sha256sum] = "f0e65fda74c44a3dd4fa9d512d4d4d833dd0939c934e946a5c622a630d057f2f"
Signature · 1 line
2.25.1