Skip to content

Commit

Permalink
package/ympd: update the patches to be applied with fuzz 0
Browse files Browse the repository at this point in the history
Commit 8f88a64 ("support/scripts/apply-patches.sh: set the maximum
fuzz factor to 0") reduced the fuzz factor.

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

    Applying 0002-added-forward-declarations.patch using patch:
    patching file src/mpd_client.c
    Hunk #1 succeeded at 29 (offset -1 lines).
    patching file src/mpd_client.h
    Hunk #1 FAILED at 96.
    1 out of 1 hunk FAILED -- saving rejects to file src/mpd_client.h.rej

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

Signed-off-by: Dario Binacchi <[email protected]>
Signed-off-by: Thomas Petazzoni <[email protected]>
  • Loading branch information
passgat authored and tpetazzoni committed Jul 8, 2024
1 parent d584a2e commit 61d67ad
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions package/ympd/0002-added-forward-declarations.patch
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ Subject: [PATCH] added forward declarations
from:
https://github.com/notandy/ympd/pull/191/commits/2268e0f0f372a61827b912155a1796490968b3ff]
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/mpd_client.c | 2 ++
src/mpd_client.h | 6 ++++--
Expand All @@ -17,7 +19,7 @@ diff --git a/src/mpd_client.c b/src/mpd_client.c
index 2911e461..9f003ab0 100644
--- a/src/mpd_client.c
+++ b/src/mpd_client.c
@@ -30,6 +30,8 @@
@@ -29,6 +29,8 @@

/* forward declaration */
static int mpd_notify_callback(struct mg_connection *c, enum mg_event ev);
Expand All @@ -30,7 +32,7 @@ diff --git a/src/mpd_client.h b/src/mpd_client.h
index 447dd563..9342c550 100644
--- a/src/mpd_client.h
+++ b/src/mpd_client.h
@@ -96,6 +96,8 @@ struct t_mpd {
@@ -92,7 +92,9 @@

int song_id;
unsigned queue_version;
Expand Down

0 comments on commit 61d67ad

Please sign in to comment.