Skip to contentSkip to conversation

package/redis: update the patches to be applied with fuzz 0

PATCH Applied Dario Binacchi 3 participants 3 messages Jul 7, 2024 – Jul 8, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/redis: update the patches to be applied with fuzz 0

Commit 8f88a644ed7d6 ("support/scripts/apply-patches.sh: set the maximum fuzz factor to 0") reduced the fuzz factor.

Due to this change, redis fails to build with output:

Applying 0002-largefile-conditional-define.patch using patch:
patching file src/fmacros.h
Hunk #1 FAILED at 42.
1 out of 1 hunk FAILED -- saving rejects to file src/fmacros.h.rej

This commit refreshes the package patch on the current package version.

---
 package/redis/0002-largefile-conditional-define.patch | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
package/redis/0002-largefile-conditional-define.patch +6 -3
index 747e0552b379..685a30cc5b72 100644
@@ -12,13 +12,15 @@ Avoids:
   <command-line>:0:0: note: this is the location of the previous definition
 
 Signed-off-by: Thomas Petazzoni <[email protected]>
+[Dario: make the patch to be applied with fuzz factor 0]
+Signed-off-by: Dario Binacchi <[email protected]>
 
 Index: redis-2.6.11/src/fmacros.h
 ===================================================================
 --- redis-2.6.11.orig/src/fmacros.h	2013-03-25 22:09:15.000000000 +0100
 +++ redis-2.6.11/src/fmacros.h	2013-03-25 22:09:40.000000000 +0100
-@@ -42,7 +42,12 @@
- #define _XOPEN_SOURCE
+@@ -55,8 +55,13 @@
+ #define _POSIX_C_SOURCE 199506L
  #endif
  
 +#ifndef _LARGEFILE_SOURCE
@@ -29,4 +31,5 @@ Index: redis-2.6.11/src/fmacros.h
  #define _FILE_OFFSET_BITS 64
 +#endif
  
- #endif
+ /* deprecate unsafe functions
+  *
Signature · 6 lines
2.43.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Tested-by on v1 1/1
#1 lore raw

Hello Dario and all,

Thank you for fixing the Redis build !

Quoted 5 lines · Dario Binacchi

Commit 8f88a644ed7d6 ("support/scripts/apply-patches.sh: set the maximum fuzz factor to 0") reduced the fuzz factor.

Due to this change, redis fails to build with output:

Quoted 8 lines

Applying 0002-largefile-conditional-define.patch using patch:
patching file src/fmacros.h
Hunk #1 FAILED at 42.
1 out of 1 hunk FAILED -- saving rejects to file src/fmacros.h.rej

This commit refreshes the package patch on the current package version.

Quoted 27 lines
---
  package/redis/0002-largefile-conditional-define.patch | 9 ++++++---
  1 file changed, 6 insertions(+), 3 deletions(-)
package/redis/0002-largefile-conditional-define.patch +4 -2
index 747e0552b379..685a30cc5b72 100644
@@ -12,13 +12,15 @@ Avoids:
    <command-line>:0:0: note: this is the location of the previous definition
 
  Signed-off-by: Thomas Petazzoni <[email protected]>
+[Dario: make the patch to be applied with fuzz factor 0]
+Signed-off-by: Dario Binacchi <[email protected]>
 
  Index: redis-2.6.11/src/fmacros.h
  ===================================================================
  --- redis-2.6.11.orig/src/fmacros.h	2013-03-25 22:09:15.000000000 +0100
  +++ redis-2.6.11/src/fmacros.h	2013-03-25 22:09:40.000000000 +0100
-@@ -42,7 +42,12 @@
- #define _XOPEN_SOURCE
+@@ -55,8 +55,13 @@
+ #define _POSIX_C_SOURCE 199506L
   #endif
 
  +#ifndef _LARGEFILE_SOURCE

package/redis/0002-largefile-conditional-define.patch Index: redis-2.6.11/src/fmacros.h · line 35

Quoted 6 lines
package/redis/0002-largefile-conditional-define.patch +2 -1
@@ -29,4 +31,5 @@ Index: redis-2.6.11/src/fmacros.h
   #define _FILE_OFFSET_BITS 64
  +#endif
 
- #endif
+ /* deprecate unsafe functions
+  *

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#2 lore raw
In reply to Dario Binacchi
Quoted 10 lines · On Sun, 7 Jul 2024 14:41:10 +0200 Dario Binacchi…

Commit 8f88a644ed7d6 ("support/scripts/apply-patches.sh: set the maximum fuzz factor to 0") reduced the fuzz factor.

Due to this change, redis fails to build with output:

Applying 0002-largefile-conditional-define.patch using patch:
patching file src/fmacros.h
Hunk #1 FAILED at 42.
1 out of 1 hunk FAILED -- saving rejects to file src/fmacros.h.rej

Quoted 6 lines

This commit refreshes the package patch on the current package version.

---
 package/redis/0002-largefile-conditional-define.patch | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

Applied to master, thanks.

Thomas

Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot