From 05baad4d49c9410d03fac1c3df3ce228dc3e3369 Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Fri, 5 Jan 2024 22:37:52 +0100 Subject: [PATCH] automatic version update by autodist [release 11.1.0-1mamba;Thu Apr 29 2021] --- gcc.spec | 75 +++++++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 55 insertions(+), 20 deletions(-) diff --git a/gcc.spec b/gcc.spec index 96ec31a..8750847 100644 --- a/gcc.spec +++ b/gcc.spec @@ -39,20 +39,20 @@ %define majver %(echo %version | cut -d. -f 1-2) Name: gcc -Version: 10.2.0 +Version: 11.1.0 Release: 1mamba Summary: GNU Compiler Collection (C, C++, Fortran, Go, Ada) Group: Applications/Development Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco -URL: http://gcc.gnu.org/ +URL: https://gcc.gnu.org/ Source: ftp://ftp.gnu.org/gnu/gcc/gcc-%{version}/gcc-%{version}%{?gcc_extraver}.tar.xz Source1: ftp://sourceware.org/pub/java/ecj-latest.jar Source2: gcc-4.3.2-ecj1-wrapper -Patch2: gcc4-java-nomulti.patch Patch0: %{name}-4.5.0-no_fixincludes.patch Patch1: %{name}-4.0.2-zextract.patch +Patch2: gcc4-java-nomulti.patch Patch3: %{name}-4.0.2-BufferStrategy.patch Patch4: %{name}-4.0.2-failure_with_compound_literals.patch Patch5: %{name}-4.1.1-arm-t-linux.patch @@ -110,15 +110,14 @@ BuildRequires: libcairo-devel >= 1.4.10 BuildRequires: libxcb-util-devel >= 0.2 BuildRequires: libisl-devel >= 0.14 #% endif -%else -BuildRequires: cross-%{target_cpu}-glibc%{?glibc_require_append} >= 2.5 +#% else +#BuildRequires: cross-%{target_cpu}-glibc%{?glibc_require_append} >= 2.5 %endif Requires(post):%{__install_info} Requires: %{name}-cpp = %{version}-%{release} Requires: libgcc >= %{version}-%{release} Requires: binutils >= 2.16.1 -BuildRoot: %{_tmppath}/%{name}-%{version}-root %description A compiler aimed at integrating all the optimizations and features necessary for a high-performance and stable development environment. @@ -308,7 +307,8 @@ Summary: Fortran 95 support for gcc Group: Applications/Development Requires: libgfortran = %{version}-%{release} Requires: %{name} = %{version}-%{release} -Obsoletes: gcc-g77, gcc-gfortran +Obsoletes: gcc-g77 < 10.3.0 +Obsoletes: gcc-gfortran < 10.3.0 %description fortran This package adds support for compiling Fortran 95 programs with the GNU compiler. @@ -475,6 +475,21 @@ Requires: libasan = %{version}-%{release} %description -n libasan-devel This package contains static libraries and headers to be used for development. +%package -n libhwasan +Summary: GCC HW address sanitizer runtime library +Group: System/Libraries + +%description -n libhwasan +This package contains the GCC HW addess sanitizer runtime library. + +%package -n libhwasan-devel +Summary: libhwasan development libraries and headers +Group: Development/Libraries +Requires: libhwasan = %{version}-%{release} + +%description -n libhwasan-devel +This package contains static libraries and headers to be used for development. + %package -n liblsan Summary: GCC Leak Sanitizer runtime library Group: System/Libraries @@ -566,7 +581,7 @@ Summary: Cross Platform gcc for %{_target_platform} Group: Development/Tools Requires: cross-%{_target_platform}-binutils %if "%{?stage1}" != "1" -Obsoletes: cross-%{_target_platform}-%{name}-stage1 +Obsoletes: cross-%{_target_platform}-%{name}-stage1 <= %{version} %endif AutoReqProv: no @@ -595,10 +610,13 @@ Cross Platform gcc for %{_target_platform}. %ifarch arm %patch20 -p1 -# workaround for gcc-go -cp libgo/go/internal/syscall/unix/{getrandom_linux_arm.go,dummy.go} +## workaround for gcc-go +#cp libgo/go/internal/syscall/unix/{getrandom_linux_arm.go,dummy.go} %endif +# Do not run fixincludes +sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in + %build #:<< ____EOF rm -rf ../%{name}-build-%{_target_platform} @@ -757,8 +775,9 @@ CROSS_SYSTEM_HEADER_DIR=/usr/%{_target_platform}/include \ %endif %else - make %{?_smp_mflags} CFLAGS='-O -I/usr/include/freetype2' LIBCFLAGS='-g -O2' \ - LIBCXXFLAGS='-g -O2 -fno-implicit-templates' bootstrap + make %{?_smp_mflags} CFLAGS="%{optflags}" CXXFLAGS="%{optflags}" +# CFLAGS='-O -I/usr/include/freetype2' LIBCFLAGS='-g -O2' \ +# LIBCXXFLAGS='-g -O2 -fno-implicit-templates' bootstrap %endif %if "%{target_cpu}" != "avr" @@ -771,10 +790,10 @@ cd ../.. %endif %endif -%endif # stage1 = 1 +%endif %install -[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +[ "%{buildroot}" != "/" ] && rm -rf "%{buildroot}" cd ../%{name}-build-%{_target_platform} make DESTDIR=%{buildroot} install @@ -845,7 +864,8 @@ mv %{buildroot}%{_prefix}/lib32/libstdc++.so.*-gdb.py %{buildroot}%{_datadir}/gd chmod 755 %{buildroot}/%{_libdir}/libgcc_s.so.1 #cp gcc/doc/*.pdf ../gcc-%{version}%{?gcc_extraver}/gcc/doc/ -%else # target_platform != host +%else +# target_platform != host rm -rf %{buildroot}%{_infodir}/* rm -rf %{buildroot}%{_mandir}/man7/{fsf-funding.*,gfdl.*,gpl.*} rm -rf %{buildroot}%{_datadir}/locale/* @@ -865,7 +885,7 @@ rm -f %{buildroot}%{_infodir}/libffi.info* #%endif %clean -[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +[ "%{buildroot}" != "/" ] && rm -rf "%{buildroot}" %post -n libgcc -p /sbin/ldconfig %postun -n libgcc -p /sbin/ldconfig @@ -1090,6 +1110,18 @@ rm -f %{buildroot}%{_infodir}/libffi.info* %{_libdir}/libtsan_preinit.o %endif +%ifarch aarch64 +%files -n libhwasan +%defattr(-,root,root) +%{_libdir}/libhwasan.so.* + +%files -n libhwasan-devel +%defattr(-,root,root) +%{_libdir}/libhwasan.a +%{_libdir}/libhwasan.la +%{_libdir}/libhwasan.so +%endif + %ifarch x86_64 aarch64 %files -n liblsan %defattr(-,root,root) @@ -1201,7 +1233,7 @@ rm -f %{buildroot}%{_infodir}/libffi.info* %dir %{_includedir}/c++ %{_includedir}/c++/* #%doc libstdc++-v3/{ChangeLog*,README*,doc/html/} -%endif "%{disable_cpp} +%endif # # D language @@ -1251,7 +1283,7 @@ rm -f %{buildroot}%{_infodir}/libffi.info* %ifarch ppc %{_libdir}/nof/libgfortran.so.* %endif -%endif # disable_fortran != 1 +%endif %ifnarch arm aarch64 %files -n libquadmath @@ -1316,7 +1348,7 @@ rm -f %{buildroot}%{_infodir}/libffi.info* #%doc gcc/doc/gccinstall.pdf #%doc gcc/doc/gcc.pdf #%doc gcc/doc/gccint.pdf -%endif # "%{disable_doc}" != "1" +%endif # # Multilib @@ -1462,9 +1494,12 @@ rm -f %{buildroot}%{_infodir}/libffi.info* %{_prefix}/libexec/gcc/%{_target_platform}/%{version}/* %endif %{_mandir}/man1/%{_target_platform}-* -%endif # cross-platform +%endif %changelog +* Thu Apr 29 2021 Automatic Build System 11.1.0-1mamba +- automatic version update by autodist + * Fri Jul 24 2020 Automatic Build System 10.2.0-1mamba - automatic version update by autodist