[1/1] package/monit: update the patches to be applied with fuzz 0

Message ID 20240707055007.3839165-1-dario.binacchi@amarulasolutions.com
State New
Headers show
Series
  • [1/1] package/monit: update the patches to be applied with fuzz 0
Related show

Commit Message

Dario Binacchi July 7, 2024, 5:50 a.m. UTC
Commit 8f88a644ed7d6 ("support/scripts/apply-patches.sh: set the maximum
fuzz factor to 0") reduced the fuzz factor.

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

    Applying 0001-no-force-static.patch using patch:
    patching file Makefile.am
    Hunk #1 FAILED at 85.
    1 out of 1 hunk FAILED -- saving rejects to file Makefile.am.rej

    Applying 0002-configure.ac-fixes-missing-config-macro-dir.patch using patch:
    patching file configure.ac
    Hunk #1 FAILED at 8.
    1 out of 1 hunk FAILED -- saving rejects to file configure.ac.rej

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

Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---
 package/monit/0001-no-force-static.patch                  | 8 +++++---
 ...0002-configure.ac-fixes-missing-config-macro-dir.patch | 6 ++++--
 2 files changed, 9 insertions(+), 5 deletions(-)

Comments

'Krzysztof Kozlowski' via Amarula Linux July 8, 2024, 8:21 p.m. UTC | #1
On Sun,  7 Jul 2024 07:50:05 +0200
Dario Binacchi <dario.binacchi@amarulasolutions.com> wrote:

> Commit 8f88a644ed7d6 ("support/scripts/apply-patches.sh: set the maximum
> fuzz factor to 0") reduced the fuzz factor.
> 
> Due to this change, monit fails to build with output:
> 
>     Applying 0001-no-force-static.patch using patch:
>     patching file Makefile.am
>     Hunk #1 FAILED at 85.
>     1 out of 1 hunk FAILED -- saving rejects to file Makefile.am.rej
> 
>     Applying 0002-configure.ac-fixes-missing-config-macro-dir.patch using patch:
>     patching file configure.ac
>     Hunk #1 FAILED at 8.
>     1 out of 1 hunk FAILED -- saving rejects to file configure.ac.rej
> 
> This commit refreshes the package patches on the current package version.
> 
> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
> ---
>  package/monit/0001-no-force-static.patch                  | 8 +++++---
>  ...0002-configure.ac-fixes-missing-config-macro-dir.patch | 6 ++++--
>  2 files changed, 9 insertions(+), 5 deletions(-)

Applied to master, thanks.

Thomas

Patch

diff --git a/package/monit/0001-no-force-static.patch b/package/monit/0001-no-force-static.patch
index edb619b54152..4634a951f3c7 100644
--- a/package/monit/0001-no-force-static.patch
+++ b/package/monit/0001-no-force-static.patch
@@ -5,13 +5,15 @@  still dlopen()s the NSS libraries.
 
 Reported-by: Peter Kümmel <syntheticpp@gmx.net>
 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
+[Dario: make the patch to be applied with fuzz factor 0]
+Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
 
 diff -durN monit-5.7.orig/Makefile.am monit-5.7/Makefile.am
 --- monit-5.7.orig/Makefile.am	2014-02-20 09:00:42.000000000 +0100
 +++ monit-5.7/Makefile.am	2014-09-05 12:49:43.711104001 +0200
-@@ -85,7 +85,7 @@
- 		  src/process/sysdep_@ARCH@.c
-  
+@@ -97,7 +97,7 @@
+                   src/statistics/Statistics.c
+ 
  monit_LDADD 	= libmonit/libmonit.la
 -monit_LDFLAGS 	= -static $(EXTLDFLAGS)
 +monit_LDFLAGS 	= $(EXTLDFLAGS)
diff --git a/package/monit/0002-configure.ac-fixes-missing-config-macro-dir.patch b/package/monit/0002-configure.ac-fixes-missing-config-macro-dir.patch
index 325dcc17e136..31b20b3cbc9b 100644
--- a/package/monit/0002-configure.ac-fixes-missing-config-macro-dir.patch
+++ b/package/monit/0002-configure.ac-fixes-missing-config-macro-dir.patch
@@ -8,6 +8,8 @@  so that m4 macros are properly loaded upon autoreconf use.
 
 Upstream: N/A (specific to buildroot)
 Signed-off-by: Jens Maus <mail@jens-maus.de>
+[Dario: make the patch to be applied with fuzz factor 0]
+Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
 ---
  configure.ac          | 2 +-
  libmonit/configure.ac | 2 +-
@@ -17,9 +19,9 @@  diff --git a/configure.ac b/configure.ac
 index 3c3d30a2..f4c5ea07 100644
 --- a/configure.ac
 +++ b/configure.ac
-@@ -8,7 +8,7 @@ AC_PREREQ([2.53])
+@@ -8,7 +8,7 @@
  # Example: 5.0_beta2
- AC_INIT([monit], [5.34.0], [monit-general@nongnu.org])
+ AC_INIT([monit], [5.33.0], [monit-general@nongnu.org])
  AC_CONFIG_AUX_DIR(config)
 -AC_CONFIG_MACRO_DIR([m4])
 +AC_CONFIG_MACRO_DIRS([m4 config])