mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
sb/gcc-common: Allow URL overrides for downloaded source
- This allows the URL for an older package to be defined when gcc no longer hosts it
This commit is contained in:
@@ -46,18 +46,37 @@ URL: http://gcc.gnu.org/
|
|||||||
%define rtems_gcc_version %{rtems_version}
|
%define rtems_gcc_version %{rtems_version}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
#
|
||||||
|
# Packages GCC URLs, can be defined for older packages
|
||||||
|
#
|
||||||
|
%if %{!defined cloog_url}
|
||||||
|
%define cloog_url https://gcc.gnu.org/pub/gcc/infrastructure
|
||||||
|
%endif
|
||||||
|
%if %{!defined isl_url}
|
||||||
|
%define isl_url https://gcc.gnu.org/pub/gcc/infrastructure
|
||||||
|
%endif
|
||||||
|
%if %{!defined mpc_url}
|
||||||
|
%define mpc_url https://gcc.gnu.org/pub/gcc/infrastructure
|
||||||
|
%endif
|
||||||
|
%if %{!defined gmp_url}
|
||||||
|
%define gmp_url https://gcc.gnu.org/pub/gcc/infrastructure
|
||||||
|
%endif
|
||||||
|
%if %{!defined mpfr_url}
|
||||||
|
%define mpfr_url https://gcc.gnu.org/pub/gcc/infrastructure
|
||||||
|
%endif
|
||||||
|
|
||||||
#
|
#
|
||||||
# Packages GCC requires
|
# Packages GCC requires
|
||||||
#
|
#
|
||||||
%if %{defined cloog_version}
|
%if %{defined cloog_version}
|
||||||
%source set cloog https://gcc.gnu.org/pub/gcc/infrastructure/cloog-%{cloog_version}.tar.gz
|
%source set cloog %{_url}/cloog-%{cloog_version}.tar.gz
|
||||||
%endif
|
%endif
|
||||||
%if %{defined isl_version}
|
%if %{defined isl_version}
|
||||||
%source set isl https://gcc.gnu.org/pub/gcc/infrastructure/isl-%{isl_version}.tar.bz2
|
%source set isl %{isl_url}/isl-%{isl_version}.tar.bz2
|
||||||
%endif
|
%endif
|
||||||
%source set mpc https://gcc.gnu.org/pub/gcc/infrastructure/mpc-%{mpc_version}.tar.gz
|
%source set mpc %{mpc_url}/mpc-%{mpc_version}.tar.gz
|
||||||
%source set gmp https://gcc.gnu.org/pub/gcc/infrastructure/gmp-%{gmp_version}.tar.bz2
|
%source set gmp %{gmp_url}/gmp-%{gmp_version}.tar.bz2
|
||||||
%source set mpfr https://gcc.gnu.org/pub/gcc/infrastructure/mpfr-%{mpfr_version}.tar.bz2
|
%source set mpfr %{mpfr_url}/mpfr-%{mpfr_version}.tar.bz2
|
||||||
|
|
||||||
#
|
#
|
||||||
# Prepare the source code.
|
# Prepare the source code.
|
||||||
@@ -93,7 +112,7 @@ URL: http://gcc.gnu.org/
|
|||||||
%source setup cloog -q -D -n cloog-%{cloog_version}
|
%source setup cloog -q -D -n cloog-%{cloog_version}
|
||||||
%patch setup cloog -p1
|
%patch setup cloog -p1
|
||||||
cd ${build_top}
|
cd ${build_top}
|
||||||
# Build MPFR one-tree style
|
# Build CLooG one-tree style
|
||||||
%{__rmfile} ${source_dir_gcc}/cloog
|
%{__rmfile} ${source_dir_gcc}/cloog
|
||||||
%{__ln_s} $PWD/${source_dir_cloog} ${source_dir_gcc}/cloog
|
%{__ln_s} $PWD/${source_dir_cloog} ${source_dir_gcc}/cloog
|
||||||
%endif
|
%endif
|
||||||
@@ -104,7 +123,7 @@ URL: http://gcc.gnu.org/
|
|||||||
%source setup isl -q -D -n isl-%{isl_version}
|
%source setup isl -q -D -n isl-%{isl_version}
|
||||||
%patch setup isl -p1
|
%patch setup isl -p1
|
||||||
cd ${build_top}
|
cd ${build_top}
|
||||||
# Build MPFR one-tree style
|
# Build ISL one-tree style
|
||||||
%{__rmfile} ${source_dir_gcc}/isl
|
%{__rmfile} ${source_dir_gcc}/isl
|
||||||
%{__ln_s} $PWD/${source_dir_isl} ${source_dir_gcc}/isl
|
%{__ln_s} $PWD/${source_dir_isl} ${source_dir_gcc}/isl
|
||||||
%endif
|
%endif
|
||||||
|
Reference in New Issue
Block a user