Skip to contentSkip to conversation

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

PATCH Applied Dario Binacchi 2 participants 2 messages Jul 2, 2024

lore
Share & tools
lore
#0 lore raw

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

Applying 0002-fix-autoreconf.patch using patch:
patching file Makefile.am
Hunk #1 FAILED at 4.
1 out of 1 hunk FAILED -- saving rejects to file Makefile.am.rej patching file configure.ac
Hunk #1 FAILED at 68.
1 out of 1 hunk FAILED -- saving rejects to file configure.ac.rej

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

---
 .checkpackageignore                         |  1 -
 package/libtheora/0002-fix-autoreconf.patch | 14 +++++++-------
 2 files changed, 7 insertions(+), 8 deletions(-)
.checkpackageignore +0 -1
index 949b7467cfe6..94ed9a19fdd4 100644
@@ -911,7 +911,6 @@ package/libsvgtiny/0004-Build-Include-gperf-generated-code-directly.patch lib_pa
 package/libtalloc/0001-buildtools-wafsamba-add-disable-stack-protector-opti.patch lib_patch.Upstream
 package/libtelnet/0001-fix-compilation-without-zlib.patch lib_patch.Upstream
 package/libtheora/0001-link-libtheoradec.patch lib_patch.Upstream
-package/libtheora/0002-fix-autoreconf.patch lib_patch.Upstream
 package/libtomcrypt/0001-fix-CVE-2019-17362.patch lib_patch.Upstream
 package/libtommath/0001-Build-test-bn_mp_set_double-c-on-more-platforms.patch lib_patch.Upstream
 package/libtorrent/0001-libtorrent.pc.in-add-Libs.Private.patch lib_patch.Upstream
package/libtheora/0002-fix-autoreconf.patch +7 -7
index dd3f47322235..27fc379ad404 100644
@@ -1,9 +1,10 @@
 Fix broken autoreconf
 
-Downloaded from upstream git
-https://git.xiph.org/?p=theora.git;a=commitdiff;h=28cc6dbd9b2a141df94f60993256a5fca368fa54
+Upstream: https://git.xiph.org/?p=theora.git;a=commitdiff;h=28cc6dbd9b2a141df94f60993256a5fca368fa54
 
 Signed-off-by: Bernd Kuhls <[email protected]>
+[Dario: make the patch to be applied with fuzz factor 0]
+Signed-off-by: Dario Binacchi <[email protected]>
 
 
 From: Tim Terriberry <[email protected]>
@@ -22,9 +23,8 @@ diff --git a/Makefile.am b/Makefile.am
 index 89fd753..1783857 100644
 --- a/Makefile.am
 +++ b/Makefile.am
-@@ -4,6 +4,8 @@
- #AUTOMAKE_OPTIONS = foreign 1.7 dist-zip dist-bzip2
- AUTOMAKE_OPTIONS = foreign 1.11 dist-zip dist-xz
+@@ -2,5 +2,7 @@
+ AUTOMAKE_OPTIONS = foreign 1.6 dist-zip dist-bzip2
  
 +ACLOCAL_AMFLAGS=-I m4
 +
@@ -35,7 +35,7 @@ diff --git a/configure.ac b/configure.ac
 index 1cbec1a..456b603 100644
 --- a/configure.ac
 +++ b/configure.ac
-@@ -68,7 +68,7 @@ AC_LIBTOOL_WIN32_DLL
+@@ -61,7 +61,7 @@ AC_LIBTOOL_WIN32_DLL
  AM_PROG_LIBTOOL
  
  dnl Add parameters for aclocal
@@ -43,4 +43,4 @@ index 1cbec1a..456b603 100644
 +AC_CONFIG_MACRO_DIR([m4])
  
  dnl Check for doxygen
- AC_ARG_ENABLE([doc],
+ AC_CHECK_PROG(HAVE_DOXYGEN, doxygen, true, false)
Signature · 6 lines
2.43.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 26 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, theora fails to build with output:

Applying 0002-fix-autoreconf.patch using patch:
patching file Makefile.am
Hunk #1 FAILED at 4.
1 out of 1 hunk FAILED -- saving rejects to file Makefile.am.rej patching file configure.ac
Hunk #1 FAILED at 68.
1 out of 1 hunk FAILED -- saving rejects to file configure.ac.rej

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

---
  .checkpackageignore                         |  1 -
  package/libtheora/0002-fix-autoreconf.patch | 14 +++++++-------
  2 files changed, 7 insertions(+), 8 deletions(-)
.checkpackageignore +0 -0
index 949b7467cfe6..94ed9a19fdd4 100644

.checkpackageignore package/libsvgtiny/0004-Build-Include-gperf-generated-code-directly.patch lib_pa · line 914

Quoted 4 lines
.checkpackageignore +0 -1
@@ -911,7 +911,6 @@ package/libsvgtiny/0004-Build-Include-gperf-generated-code-directly.patch lib_pa
  package/libtalloc/0001-buildtools-wafsamba-add-disable-stack-protector-opti.patch lib_patch.Upstream
  package/libtelnet/0001-fix-compilation-without-zlib.patch lib_patch.Upstream
  package/libtheora/0001-link-libtheoradec.patch lib_patch.Upstream
-package/libtheora/0002-fix-autoreconf.patch lib_patch.Upstream

Did you update your patches to fix the Upstream tags as a reaction to the
change I made to your patch of an hour ago? Wow, you sure move fast!

In the future, please mention this explicitly in the commit message. I added:

While we're at it, fix the usage of the Upstream: tag and update .checkpackageignore accordingly.

Applied to master, thanks.

Regards,
Arnout

Quoted 42 lines
.checkpackageignore +0 -0
  package/libtomcrypt/0001-fix-CVE-2019-17362.patch lib_patch.Upstream
  package/libtommath/0001-Build-test-bn_mp_set_double-c-on-more-platforms.patch lib_patch.Upstream
  package/libtorrent/0001-libtorrent.pc.in-add-Libs.Private.patch lib_patch.Upstream
package/libtheora/0002-fix-autoreconf.patch +6 -6
index dd3f47322235..27fc379ad404 100644
@@ -1,9 +1,10 @@
  Fix broken autoreconf
 
-Downloaded from upstream git
-https://git.xiph.org/?p=theora.git;a=commitdiff;h=28cc6dbd9b2a141df94f60993256a5fca368fa54
+Upstream: https://git.xiph.org/?p=theora.git;a=commitdiff;h=28cc6dbd9b2a141df94f60993256a5fca368fa54
 
  Signed-off-by: Bernd Kuhls <[email protected]>
+[Dario: make the patch to be applied with fuzz factor 0]
+Signed-off-by: Dario Binacchi <[email protected]>
 
 
  From: Tim Terriberry <[email protected]>
@@ -22,9 +23,8 @@ diff --git a/Makefile.am b/Makefile.am
  index 89fd753..1783857 100644
  --- a/Makefile.am
  +++ b/Makefile.am
-@@ -4,6 +4,8 @@
- #AUTOMAKE_OPTIONS = foreign 1.7 dist-zip dist-bzip2
- AUTOMAKE_OPTIONS = foreign 1.11 dist-zip dist-xz
+@@ -2,5 +2,7 @@
+ AUTOMAKE_OPTIONS = foreign 1.6 dist-zip dist-bzip2
 
  +ACLOCAL_AMFLAGS=-I m4
  +
@@ -35,7 +35,7 @@ diff --git a/configure.ac b/configure.ac
  index 1cbec1a..456b603 100644
  --- a/configure.ac
  +++ b/configure.ac
-@@ -68,7 +68,7 @@ AC_LIBTOOL_WIN32_DLL
+@@ -61,7 +61,7 @@ AC_LIBTOOL_WIN32_DLL
   AM_PROG_LIBTOOL
 
   dnl Add parameters for aclocal

package/libtheora/0002-fix-autoreconf.patch index 1cbec1a..456b603 100644 · line 46

Quoted 5 lines
package/libtheora/0002-fix-autoreconf.patch +1 -1
@@ -43,4 +43,4 @@ index 1cbec1a..456b603 100644
  +AC_CONFIG_MACRO_DIR([m4])
 
   dnl Check for doxygen
- AC_ARG_ENABLE([doc],
+ AC_CHECK_PROG(HAVE_DOXYGEN, doxygen, true, false)

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