From 638a18280a4ff9559c2f68510e81671a3df185f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E6=99=A8=E5=8D=89?= Date: Wed, 2 Apr 2025 11:43:17 +0800 Subject: [PATCH] Fix binutils download error. --- download.sh | 2 ++ gcc-cross.spec | 12 +++++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/download.sh b/download.sh index aae24c3..327c384 100755 --- a/download.sh +++ b/download.sh @@ -21,6 +21,8 @@ cd $LIB_PATH && delete_dir $GCC $BINUTILS $GMP $MPC $MPFR $ISL pushd $LIB_PATH function do_patch() { pushd $1 + git lfs install + git lfs pull cp -f * $src_rpmdir specfile=`ls *.spec` rpmbuild -bp $src_rpmdir/$specfile diff --git a/gcc-cross.spec b/gcc-cross.spec index 223acce..ad2cbe3 100644 --- a/gcc-cross.spec +++ b/gcc-cross.spec @@ -1,7 +1,7 @@ Summary: C/C++ Cross Compiler Toolchain Name: gcc-cross Version: 1.0 -Release: 8 +Release: 9 # libgcc, libgfortran, libmudflap, libgomp, libstdc++ and crtstuff have # GCC Runtime Exception. License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD @@ -18,8 +18,8 @@ BuildRequires: binutils, gettext, gmp-devel, isl-devel, libmpc-devel, mpfr-devel BuildRequires: audit-libs-devel, gd-devel, libcap-devel, libpng-devel, libselinux-devel, libstdc++-static, systemtap-sdt-devel, valgrind BuildRequires: jansson-devel BuildRequires: gdb, native-turbo-tools, gcc, gcc-c++, make, git, flex, bison, rpm-build, automake, autoconf -BuildRequires: libtool, ncurses-devel, bc, zlib-devel, openssl-devel, texinfo, rsync, chrpath -#ExclusiveArch: i386 x86-64 +BuildRequires: libtool, ncurses-devel, bc, zlib-devel, openssl-devel, texinfo, rsync, chrpath, git-lfs +ExclusiveArch: i386 x86_64 %description C/C++ Cross Compiler Toolchain @@ -50,6 +50,12 @@ cp %{_builddir}/output/gcc_arm32le/gcc_arm32le.tar.gz %{buildroot}/tmp %attr(755, root, root) /tmp/gcc_arm32le.tar.gz %changelog +* Wed Apr 2 2025 zhengchenhui - 1.0-9 +-Type:Fix +-ID:NA +-SUG:NA +-DESC: Fix binutils download error. + * Mon Dec 9 2024 zhengchenhui - 1.0-8 -Type:Fix -ID:NA -- Gitee