All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Yann E. MORIN" <yann.morin.1998@free.fr>
To: Julien Olivain <ju.o@free.fr>
Cc: buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH v2 1/1] package/sox: fix patch fuzz
Date: Sun, 30 Jun 2024 11:29:14 +0200	[thread overview]
Message-ID: <ZoElaofFqV6r27Jb@landeda> (raw)
In-Reply-To: <20240629121828.12178-1-ju.o@free.fr>

Julien, All,

On 2024-06-29 14:18 +0200, Julien Olivain spake thusly:
> Commit 8f88a644ed "support/scripts/apply-patches.sh: set the maximum
> fuzz factor to 0" reduced the fuzz factor.
> 
> Due to this change, sox fails to build with output:
> 
>     Applying 0001-uclibc.patch using patch:
>     patching file src/formats.c
>     Hunk #1 FAILED at 409.
>     Hunk #2 succeeded at 477 (offset 60 lines).
>     1 out of 2 hunks FAILED -- saving rejects to file src/formats.c.rej
> 
> This commit refreshes the package patch on the current package version.
> Note 1: the failing patch 0001 was regenerated with "git format-patch".
> Since the patch file 0001 name changed in the regeneration, the
> ".checkpackageignore" entry is also updated accordingly.
> Note 2: patch 0002 did not require any update.
> 
> Fixes:
> http://autobuild.buildroot.org/results/1bc396386aa3321fe48101caf9635ae41feb057b
> 
> Signed-off-by: Julien Olivain <ju.o@free.fr>

Applied to master, thanks.

Regards,
Yann E. MORIN.

> ---
> Change v1 -> v2:
> - update .checkpackageignore entry
> ---
>  .checkpackageignore                           |  2 +-
>  ...-SoX-support-uclibc-based-toolchains.patch | 40 +++++++++++++++++++
>  package/sox/0001-uclibc.patch                 | 26 ------------
>  ...re.ac-fix-static-linking-with-id3tag.patch | 10 +++--
>  ...ure.ac-fix-static-linking-with-magic.patch | 10 +++--
>  ...e.ac-fix-static-linking-with-sndfile.patch | 10 +++--
>  6 files changed, 59 insertions(+), 39 deletions(-)
>  create mode 100644 package/sox/0001-Make-SoX-support-uclibc-based-toolchains.patch
>  delete mode 100644 package/sox/0001-uclibc.patch
> 
> diff --git a/.checkpackageignore b/.checkpackageignore
> index 313201b0e68..1689b96e628 100644
> --- a/.checkpackageignore
> +++ b/.checkpackageignore
> @@ -1401,7 +1401,7 @@ package/softether/0008-librt.patch lib_patch.Upstream
>  package/softether/0009-uclibc-ai-addrconfig.patch lib_patch.Upstream
>  package/solarus/0001-cmake-remove-Werror.patch lib_patch.Upstream
>  package/solarus/0002-Add-a-basic-FindOpenGLES2.cmake.patch lib_patch.Sob lib_patch.Upstream
> -package/sox/0001-uclibc.patch lib_patch.Upstream
> +package/sox/0001-Make-SoX-support-uclibc-based-toolchains.patch lib_patch.Upstream
>  package/sox/0002-configure.ac-put-back-disable-stack-protector.patch lib_patch.Upstream
>  package/sox/0003-configure.ac-fix-static-linking-with-id3tag.patch lib_patch.Upstream
>  package/sox/0004-configure.ac-fix-static-linking-with-magic.patch lib_patch.Upstream
> diff --git a/package/sox/0001-Make-SoX-support-uclibc-based-toolchains.patch b/package/sox/0001-Make-SoX-support-uclibc-based-toolchains.patch
> new file mode 100644
> index 00000000000..3d21b570f18
> --- /dev/null
> +++ b/package/sox/0001-Make-SoX-support-uclibc-based-toolchains.patch
> @@ -0,0 +1,40 @@
> +From 5d51acafe9c38fb05939b4d2d6a9dcde12476458 Mon Sep 17 00:00:00 2001
> +From: Gustavo Zacarias <gustavo@zacarias.com.ar>
> +Date: Sat, 29 Jun 2024 12:28:54 +0200
> +Subject: [PATCH] Make SoX support uclibc-based toolchains
> +
> +From:
> +http://sourceforge.net/p/sox/bugs/179/
> +
> +Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
> +[Julien: rebased patch on package git version 7524160,
> +and regenerated with git format-patch]
> +Signed-off-by: Julien Olivain <ju.o@free.fr>
> +---
> + src/formats.c | 3 +--
> + 1 file changed, 1 insertion(+), 2 deletions(-)
> +
> +diff --git a/src/formats.c b/src/formats.c
> +index 3fcf4382..9fc001bd 100644
> +--- a/src/formats.c
> ++++ b/src/formats.c
> +@@ -466,7 +466,7 @@ static void UNUSED rewind_pipe(FILE * fp)
> + #if defined _FSTDIO || defined _NEWLIB_VERSION || defined __APPLE__
> +   fp->_p -= PIPE_AUTO_DETECT_SIZE;
> +   fp->_r += PIPE_AUTO_DETECT_SIZE;
> +-#elif defined __GLIBC__
> ++#elif defined __GLIBC__ && ! defined __UCLIBC__
> +   fp->_IO_read_ptr = fp->_IO_read_base;
> + #elif defined _MSC_VER && _MSC_VER >= 1900
> +   #define NO_REWIND_PIPE
> +@@ -477,7 +477,6 @@ static void UNUSED rewind_pipe(FILE * fp)
> +   /* To fix this #error, either simply remove the #error line and live without
> +    * file-type detection with pipes, or add support for your compiler in the
> +    * lines above.  Test with cat monkey.wav | ./sox --info - */
> +-  #error FIX NEEDED HERE
> +   #define NO_REWIND_PIPE
> +   (void)fp;
> + #endif
> +-- 
> +2.45.2
> +
> diff --git a/package/sox/0001-uclibc.patch b/package/sox/0001-uclibc.patch
> deleted file mode 100644
> index 5c118fa4dca..00000000000
> --- a/package/sox/0001-uclibc.patch
> +++ /dev/null
> @@ -1,26 +0,0 @@
> -Make SoX support uclibc-based toolchains, from:
> -http://sourceforge.net/p/sox/bugs/179/
> -
> -Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
> -
> -Index: sox-14.4.1/src/formats.c
> -===================================================================
> ---- sox-14.4.1.orig/src/formats.c
> -+++ sox-14.4.1/src/formats.c
> -@@ -409,7 +409,7 @@ static void UNUSED rewind_pipe(FILE * fp
> - #if defined _FSTDIO || defined _NEWLIB_VERSION || defined __APPLE__
> -   fp->_p -= PIPE_AUTO_DETECT_SIZE;
> -   fp->_r += PIPE_AUTO_DETECT_SIZE;
> --#elif defined __GLIBC__
> -+#elif defined __GLIBC__ && ! defined __UCLIBC__
> -   fp->_IO_read_ptr = fp->_IO_read_base;
> - #elif defined _MSC_VER || defined _WIN32 || defined _WIN64 || defined _ISO_STDIO_ISO_H
> -   fp->_ptr = fp->_base;
> -@@ -417,7 +417,6 @@ static void UNUSED rewind_pipe(FILE * fp
> -   /* To fix this #error, either simply remove the #error line and live without
> -    * file-type detection with pipes, or add support for your compiler in the
> -    * lines above.  Test with cat monkey.wav | ./sox --info - */
> --  #error FIX NEEDED HERE
> -   #define NO_REWIND_PIPE
> -   (void)fp;
> - #endif
> diff --git a/package/sox/0003-configure.ac-fix-static-linking-with-id3tag.patch b/package/sox/0003-configure.ac-fix-static-linking-with-id3tag.patch
> index 32d6f83b0cd..2bb574b319f 100644
> --- a/package/sox/0003-configure.ac-fix-static-linking-with-id3tag.patch
> +++ b/package/sox/0003-configure.ac-fix-static-linking-with-id3tag.patch
> @@ -1,4 +1,4 @@
> -From 8df3a56cfb104c84d4701562ae2e3c9dc4686798 Mon Sep 17 00:00:00 2001
> +From 06e5cc069dbdfa060c3d9e75a798ec121ecc9349 Mon Sep 17 00:00:00 2001
>  From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
>  Date: Sat, 6 Feb 2021 11:08:45 +0100
>  Subject: [PATCH] configure.ac: fix static linking with id3tag
> @@ -23,6 +23,8 @@ util.c:(.text+0x240): undefined reference to `uncompress'
>  Fixes:
>   - http://autobuild.buildroot.org/results/73efdacf237e3d567fa66f3b3f68e624f5e35bc7
>  
> +Signed-off-by: Julien Olivain <ju.o@free.fr>
> +[Julien: rebased patch on package git version 7524160]
>  Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
>  [Upstream status: https://sourceforge.net/p/sox/patches/123]
>  ---
> @@ -30,10 +32,10 @@ Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
>   1 file changed, 1 insertion(+), 1 deletion(-)
>  
>  diff --git a/configure.ac b/configure.ac
> -index 39306398..896714f5 100644
> +index a1665467..8f47a978 100644
>  --- a/configure.ac
>  +++ b/configure.ac
> -@@ -83,7 +83,7 @@ dnl Various libraries
> +@@ -88,7 +88,7 @@ dnl Various libraries
>   SOX_WITH_LIB([magic], [magic.h], [magic], [magic_open])
>   SOX_CHECK_LIB([ZLIB], [zlib.h], [z], [uncompress])
>   SOX_WITH_LIB([png], [png.h], [png], [png_set_rows], [], [], [], [$ZLIB_LIBS])
> @@ -43,5 +45,5 @@ index 39306398..896714f5 100644
>   
>   dnl Optional formats
>  -- 
> -2.29.2
> +2.45.2
>  
> diff --git a/package/sox/0004-configure.ac-fix-static-linking-with-magic.patch b/package/sox/0004-configure.ac-fix-static-linking-with-magic.patch
> index 7d2e390df11..ad36ecad57c 100644
> --- a/package/sox/0004-configure.ac-fix-static-linking-with-magic.patch
> +++ b/package/sox/0004-configure.ac-fix-static-linking-with-magic.patch
> @@ -1,4 +1,4 @@
> -From 4630e574e6c0269b94fd910e7c72b8ad1ee62ce7 Mon Sep 17 00:00:00 2001
> +From 76b78cb89cf8fc36b4ced568f3b34f778df53411 Mon Sep 17 00:00:00 2001
>  From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
>  Date: Wed, 3 Mar 2021 16:48:57 +0100
>  Subject: [PATCH] configure.ac: fix static linking with magic
> @@ -24,6 +24,8 @@ compress.c:(.text+0x1d0): undefined reference to `inflateInit_'
>  Fixes:
>   - http://autobuild.buildroot.org/results/d96f27cd96926060046e2e1115777f5bceda3741
>  
> +Signed-off-by: Julien Olivain <ju.o@free.fr>
> +[Julien: rebased patch on package git version 7524160]
>  Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
>  [Upstream status: not sent yet (waiting for feedback on third patch)]
>  ---
> @@ -31,10 +33,10 @@ Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
>   1 file changed, 1 insertion(+), 1 deletion(-)
>  
>  diff --git a/configure.ac b/configure.ac
> -index 896714f5..8ae3202c 100644
> +index 8f47a978..20454ed5 100644
>  --- a/configure.ac
>  +++ b/configure.ac
> -@@ -80,7 +80,7 @@ SOX_REPORT([other], [LADSPA effect plugins], [$HAVE_LADSPA])
> +@@ -85,7 +85,7 @@ SOX_REPORT([other], [LADSPA effect plugins], [$HAVE_LADSPA])
>   
>   dnl Various libraries
>   
> @@ -44,5 +46,5 @@ index 896714f5..8ae3202c 100644
>   SOX_WITH_LIB([png], [png.h], [png], [png_set_rows], [], [], [], [$ZLIB_LIBS])
>   SOX_WITH_LIB([id3tag], [id3tag.h], [id3tag], [id3_file_open], [], [], [], [$ZLIB_LIBS])
>  -- 
> -2.30.1
> +2.45.2
>  
> diff --git a/package/sox/0005-configure.ac-fix-static-linking-with-sndfile.patch b/package/sox/0005-configure.ac-fix-static-linking-with-sndfile.patch
> index 22334593317..46e5ca0ea13 100644
> --- a/package/sox/0005-configure.ac-fix-static-linking-with-sndfile.patch
> +++ b/package/sox/0005-configure.ac-fix-static-linking-with-sndfile.patch
> @@ -1,4 +1,4 @@
> -From 06109c84ab6930265287049c4bf9405e7ebc4986 Mon Sep 17 00:00:00 2001
> +From 7a2e270989037663e740487a8248db1227697c92 Mon Sep 17 00:00:00 2001
>  From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
>  Date: Wed, 4 Aug 2021 10:27:16 +0200
>  Subject: [PATCH] configure.ac: fix static linking with sndfile
> @@ -20,6 +20,8 @@ flac.c:(.text+0xfc): undefined reference to `FLAC__StreamDecoderErrorStatusStrin
>  Fixes:
>   - http://autobuild.buildroot.org/results/4bc58ed68b29642876bb02710d0cd4f31540de86
>  
> +Signed-off-by: Julien Olivain <ju.o@free.fr>
> +[Julien: rebased patch on package git version 7524160]
>  Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
>  [Upstream status: not sent yet (waiting for feedback on third patch)]
>  ---
> @@ -27,10 +29,10 @@ Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
>   1 file changed, 1 insertion(+), 1 deletion(-)
>  
>  diff --git a/configure.ac b/configure.ac
> -index 8ae3202c..26510769 100644
> +index 20454ed5..4330360b 100644
>  --- a/configure.ac
>  +++ b/configure.ac
> -@@ -117,7 +117,7 @@ SOX_FMT_REQ([mp3], [MAD LAME TWOLAME])
> +@@ -122,7 +122,7 @@ SOX_FMT_REQ([mp3], [MAD LAME TWOLAME])
>   SOX_FMT_PKG([oggvorbis], [ogg vorbis vorbisenc vorbisfile])
>   SOX_FMT_PKG([opus], [opusfile])
>   
> @@ -40,5 +42,5 @@ index 8ae3202c..26510769 100644
>   
>   SOX_FMT_LIB([wavpack], [wavpack/wavpack.h], [wavpack], [WavpackGetSampleRate])
>  -- 
> -2.30.2
> +2.45.2
>  
> -- 
> 2.45.2
> 
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

      reply	other threads:[~2024-06-30  9:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-29 12:18 [Buildroot] [PATCH v2 1/1] package/sox: fix patch fuzz Julien Olivain
2024-06-30  9:29 ` Yann E. MORIN [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZoElaofFqV6r27Jb@landeda \
    --to=yann.morin.1998@free.fr \
    --cc=buildroot@buildroot.org \
    --cc=ju.o@free.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.