gcc: Update mpfr with patches for use in toolchain build

Message ID 20220501134713.144438-1-adolf.belka@ipfire.org
State Accepted
Commit e1ea4c0ad2ccda7ecd09c581203f7ebce12f6c5c
Headers
Series gcc: Update mpfr with patches for use in toolchain build |

Commit Message

Adolf Belka May 1, 2022, 1:47 p.m. UTC
  - Added mpfr consolidated patches file to mpfr in gcc. mpfr is built internally for use
   in the toolchain.
- Confirmed working by running./make toolchain which ran successfully
   confirmed from the _build.toolchain.log file that the patches were successfully
   implemented for gcc pass 1, gcc pass L and gcc pass 2
- Full toolchain build successfully completed.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
---
 lfs/gcc | 1 +
 1 file changed, 1 insertion(+)
  

Comments

Peter Müller May 2, 2022, 5:33 a.m. UTC | #1
Excellent, thank you for taking care of this.

Reviewed-by: Peter Müller <peter.mueller@ipfire.org>

> - Added mpfr consolidated patches file to mpfr in gcc. mpfr is built internally for use
>    in the toolchain.
> - Confirmed working by running./make toolchain which ran successfully
>    confirmed from the _build.toolchain.log file that the patches were successfully
>    implemented for gcc pass 1, gcc pass L and gcc pass 2
> - Full toolchain build successfully completed.
> 
> Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
> ---
>  lfs/gcc | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/lfs/gcc b/lfs/gcc
> index 5ce29a13d..1d9d172c2 100644
> --- a/lfs/gcc
> +++ b/lfs/gcc
> @@ -250,6 +250,7 @@ ifeq "$(TOOLCHAIN)" "1"
>  	cd $(DIR_APP) && tar xfa $(DIR_DL)/gmp-$(GMP_VER).tar.xz
>  	cd $(DIR_APP) && mv -v gmp-$(GMP_VER) gmp
>  	cd $(DIR_APP) && tar xfa $(DIR_DL)/mpfr-$(MPFR_VER).tar.xz
> +	cd $(DIR_APP)/mpfr-$(MPFR_VER) && patch -Np1 < $(DIR_SRC)/src/patches/mpfr-4.1.0-cumulative-patches-1-to-13.patch
>  	cd $(DIR_APP) && mv -v mpfr-$(MPFR_VER) mpfr
>  	cd $(DIR_APP) && tar xfa $(DIR_DL)/mpc-$(MPC_VER).tar.gz
>  	cd $(DIR_APP) && mv -v mpc-$(MPC_VER) mpc
  

Patch

diff --git a/lfs/gcc b/lfs/gcc
index 5ce29a13d..1d9d172c2 100644
--- a/lfs/gcc
+++ b/lfs/gcc
@@ -250,6 +250,7 @@  ifeq "$(TOOLCHAIN)" "1"
 	cd $(DIR_APP) && tar xfa $(DIR_DL)/gmp-$(GMP_VER).tar.xz
 	cd $(DIR_APP) && mv -v gmp-$(GMP_VER) gmp
 	cd $(DIR_APP) && tar xfa $(DIR_DL)/mpfr-$(MPFR_VER).tar.xz
+	cd $(DIR_APP)/mpfr-$(MPFR_VER) && patch -Np1 < $(DIR_SRC)/src/patches/mpfr-4.1.0-cumulative-patches-1-to-13.patch
 	cd $(DIR_APP) && mv -v mpfr-$(MPFR_VER) mpfr
 	cd $(DIR_APP) && tar xfa $(DIR_DL)/mpc-$(MPC_VER).tar.gz
 	cd $(DIR_APP) && mv -v mpc-$(MPC_VER) mpc