Skip to contentSkip to conversation

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

PATCH Applied Dario Binacchi 2 participants 2 messages Jul 5, 2024 – Jul 12, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/libsvgtiny: 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, libsvgtiny fails to build with output:

Applying 0004-Build-Include-gperf-generated-code-directly.patch using patch:
patching file src/Makefile
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file src/Makefile.rej

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

---
 ...0004-Build-Include-gperf-generated-code-directly.patch | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
package/libsvgtiny/0004-Build-Include-gperf-generated-code-directly.patch +5 -3
index c17426ff051b..b5443e991217 100644
@@ -11,6 +11,8 @@ svgtiny.c instead, which is the only place its used.
 [Retrieved from:
 https://source.netsurf-browser.org/libsvgtiny.git/commit/src?id=4390f1c84e8fee51fc22468821e6fc158e783053]
 Signed-off-by: Fabrice Fontaine <[email protected]>
+[Dario: make the patch to be applied with fuzz factor 0]
+Signed-off-by: Dario Binacchi <[email protected]>
 ---
  src/Makefile           | 13 +++++++------
  src/colors.gperf       |  8 --------
@@ -44,7 +46,7 @@ index a979720..fb8a72f 100644
 +
 +CLEAN_ITEMS := $(DIR)autogenerated_colors.c
  
- include $(NSBUILD)/Makefile.subdir
+ include build/makefiles/Makefile.subdir
 diff --git a/src/colors.gperf b/src/colors.gperf
 index 96d5b9e..a836787 100644
 --- a/src/colors.gperf
@@ -68,7 +70,7 @@ diff --git a/src/svgtiny.c b/src/svgtiny.c
 index 4661a58..bbefb88 100644
 --- a/src/svgtiny.c
 +++ b/src/svgtiny.c
-@@ -20,6 +20,9 @@
+@@ -17,6 +17,9 @@
  #include "svgtiny.h"
  #include "svgtiny_internal.h"
  
@@ -82,7 +84,7 @@ diff --git a/src/svgtiny_internal.h b/src/svgtiny_internal.h
 index 158d230..6bf5d64 100644
 --- a/src/svgtiny_internal.h
 +++ b/src/svgtiny_internal.h
-@@ -102,9 +102,4 @@ void *svgtiny_list_get(struct svgtiny_list *list,
+@@ -87,9 +87,4 @@
  void *svgtiny_list_push(struct svgtiny_list *list);
  void svgtiny_list_free(struct svgtiny_list *list);
  
Signature · 6 lines
2.43.0

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

Hello Dario,

Le 05/07/2024 à 21:52, Dario Binacchi a écrit :

Quoted 5 lines

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

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

Quoted 8 lines

Applying 0004-Build-Include-gperf-generated-code-directly.patch using patch:
patching file src/Makefile
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file src/Makefile.rej

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

Note: the first patch 0001-disable-debug-printfs.patch produce some hunks (-1 offset).

Applied to master, thanks.

Best regards,
Romain

Quoted 36 lines
---
 ...0004-Build-Include-gperf-generated-code-directly.patch | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
package/libsvgtiny/0004-Build-Include-gperf-generated-code-directly.patch +4 -2
index c17426ff051b..b5443e991217 100644
@@ -11,6 +11,8 @@ svgtiny.c instead, which is the only place its used.
 [Retrieved from:
 https://source.netsurf-browser.org/libsvgtiny.git/commit/src?id=4390f1c84e8fee51fc22468821e6fc158e783053]
 Signed-off-by: Fabrice Fontaine <[email protected]>
+[Dario: make the patch to be applied with fuzz factor 0]
+Signed-off-by: Dario Binacchi <[email protected]>
 ---
  src/Makefile           | 13 +++++++------
  src/colors.gperf       |  8 --------
@@ -44,7 +46,7 @@ index a979720..fb8a72f 100644
 +
 +CLEAN_ITEMS := $(DIR)autogenerated_colors.c
 
- include $(NSBUILD)/Makefile.subdir
+ include build/makefiles/Makefile.subdir
 diff --git a/src/colors.gperf b/src/colors.gperf
 index 96d5b9e..a836787 100644
 --- a/src/colors.gperf
@@ -68,7 +70,7 @@ diff --git a/src/svgtiny.c b/src/svgtiny.c
 index 4661a58..bbefb88 100644
 --- a/src/svgtiny.c
 +++ b/src/svgtiny.c
-@@ -20,6 +20,9 @@
+@@ -17,6 +17,9 @@
  #include "svgtiny.h"
  #include "svgtiny_internal.h"
 

package/libsvgtiny/0004-Build-Include-gperf-generated-code-directly.patch diff --git a/src/svgtiny_internal.h b/src/svgtiny_internal.h · line 90

Quoted 8 lines
package/libsvgtiny/0004-Build-Include-gperf-generated-code-directly.patch +1 -1
@@ -82,7 +84,7 @@ diff --git a/src/svgtiny_internal.h b/src/svgtiny_internal.h
 index 158d230..6bf5d64 100644
 --- a/src/svgtiny_internal.h
 +++ b/src/svgtiny_internal.h
-@@ -102,9 +102,4 @@ void *svgtiny_list_get(struct svgtiny_list *list,
+@@ -87,9 +87,4 @@
  void *svgtiny_list_push(struct svgtiny_list *list);
  void svgtiny_list_free(struct svgtiny_list *list);
 

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