update to 14.1.1.20240615git.a4f8e9e [release 14.1.1.20240615git.a4f8e9e-1mamba;Mon Jun 17 2024]

This commit is contained in:
Automatic Build System 2024-06-20 11:40:31 +02:00
parent 3777557369
commit 80089f822b

132
gcc.spec
View File

@ -1,7 +1,3 @@
# openmamba cross platform gcc specfile
#%define git_commit 9a167ee2f8b9a0859fbab6cfdc276cf1f272effe
#%define git_commit_ver 13.1.1
%define target_cpu %(echo %{_target_platform} | cut -d- -f1) %define target_cpu %(echo %{_target_platform} | cut -d- -f1)
%if "%{?_target_platform}" != "%{_host}" %if "%{?_target_platform}" != "%{_host}"
# % define target_platform %{cross_target_cpu}-openmamba-linux-gnu # % define target_platform %{cross_target_cpu}-openmamba-linux-gnu
@ -18,8 +14,7 @@
%define _ld ld %define _ld ld
%endif %endif
%define gcc_branch %(echo %{version} | cut -d. -f 1-2) %define gcc_ver %(echo %{version} | cut -d. -f 1-3)
#% define gcc_extraver -20050810
# use stage1 == 1 to have a gcc build not depending on # use stage1 == 1 to have a gcc build not depending on
# glibc library; this is usually the first needed step in # glibc library; this is usually the first needed step in
@ -35,13 +30,14 @@
# % define bootstrap_append -stage2 # % define bootstrap_append -stage2
#% endif #% endif
%define gittag %(echo %version | cut -d. -f5)
%define libstdcxx_name libstdc++6 %define libstdcxx_name libstdc++6
%define MAJver %(echo %version | cut -d. -f 1) %define MAJver %(echo %version | cut -d. -f 1)
%define majver %(echo %version | cut -d. -f 1-2) %define majver %(echo %version | cut -d. -f 1-2)
Name: gcc Name: gcc
Version: 14.1.0 Version: 14.1.1.20240615git.a4f8e9e
Release: 1mamba Release: 1mamba
Summary: GNU Compiler Collection (C, C++, Fortran, Go, Ada) Summary: GNU Compiler Collection (C, C++, Fortran, Go, Ada)
Group: Applications/Development Group: Applications/Development
@ -49,11 +45,19 @@ Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://gcc.gnu.org/ URL: https://gcc.gnu.org/
Source: https://ftp.gnu.org/gnu/gcc/gcc-%{version}/gcc-%{version}.tar.xz Source: https://sourceware.org/git/gcc.git/releases%2Fgcc-14@%{gittag}/gcc-%{version}.tar.bz2
#Source: https://ftp.gnu.org/gnu/gcc/gcc-%{version}/gcc-%{version}.tar.xz
Patch0: gcc-10.1.0-arm-provide-futex-atomic-functions.patch Patch0: gcc-10.1.0-arm-provide-futex-atomic-functions.patch
Patch1: gcc-13.1.1-libgomp-workaround-null-environ.patch Patch1: gcc-13.1.1-libgomp-workaround-null-environ.patch
License: GPL License: GPL
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgmp-devel
BuildRequires: libisl-devel
BuildRequires: libmpc-devel
BuildRequires: libmpfr-devel
BuildRequires: libz-devel
BuildRequires: libzstd-devel
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
%if "%{?cross_target_cpu}" == "" %if "%{?cross_target_cpu}" == ""
BuildRequires: binutils BuildRequires: binutils
@ -187,7 +191,7 @@ Provides: libgcc_s.so.1(GLIBC_2.0)
%endif %endif
%description -n libgcc %description -n libgcc
The libgcc package contains GCC shared libraries for gcc %{gcc_branch}. The libgcc package contains GCC shared libraries for gcc.
# #
# Preprocessor # Preprocessor
@ -621,6 +625,9 @@ __EOF
# Do not run fixincludes # Do not run fixincludes
sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
# 14.1.1: from Fedora, trying to fix aarch64 problems
sed -i -e '/ldp_fusion/s/Init(1)/Init(0)/' gcc/config/aarch64/aarch64.opt
%build %build
#:<< ____EOF #:<< ____EOF
rm -rf ../%{name}-build-%{_target_platform} rm -rf ../%{name}-build-%{_target_platform}
@ -652,9 +659,6 @@ case %{_target_platform} in
i386-*|i486-*|i586-*|i686-*|athlon-*) i386-*|i486-*|i586-*|i686-*|athlon-*)
ADDITIONAL_OPTS="--with-arch=pentium4" ADDITIONAL_OPTS="--with-arch=pentium4"
;; ;;
ppc-* | powerpc-*)
ADDITIONAL_OPTS=""
;;
arm-*) arm-*)
abi=%{_target_platform} abi=%{_target_platform}
abi=`echo ${abi/*-}` abi=`echo ${abi/*-}`
@ -810,8 +814,6 @@ for p in gcc-%{version} gcc gcc-ar gcc-nm gcc-ranlib c++ g++ gfortran; do
rm -f %{buildroot}%{_bindir}/%{_target_platform}-$p rm -f %{buildroot}%{_bindir}/%{_target_platform}-$p
done done
ln -s gcc %{buildroot}%{_bindir}/%{_target_platform}-gcc-%{version}
for p in gcc gcc-ar gcc-nm gcc-ranlib cc gcov c++ g++ gfortran; do for p in gcc gcc-ar gcc-nm gcc-ranlib cc gcov c++ g++ gfortran; do
ln -s $p %{buildroot}%{_bindir}/%{_target_platform}-$p ln -s $p %{buildroot}%{_bindir}/%{_target_platform}-$p
done done
@ -820,7 +822,7 @@ done
mv %{buildroot}%{_bindir}/go %{buildroot}%{_bindir}/gcc-go mv %{buildroot}%{_bindir}/go %{buildroot}%{_bindir}/gcc-go
install -d -m755 %{buildroot}%{_libdir}/bfd-plugins install -d -m755 %{buildroot}%{_libdir}/bfd-plugins
ln -sf ../../libexec/gcc/%{_target_platform}/%{version}/liblto_plugin.so %{buildroot}%{_libdir}/bfd-plugins/ ln -sf ../../libexec/gcc/%{_target_platform}/%{gcc_ver}/liblto_plugin.so %{buildroot}%{_libdir}/bfd-plugins/
# create symlinks # create symlinks
# mkdir -p %{buildroot}/%{_lib} # mkdir -p %{buildroot}/%{_lib}
@ -878,7 +880,7 @@ chmod 755 %{buildroot}/%{_libdir}/libgcc_s.so.1
rm -rf %{buildroot}%{_infodir}/* rm -rf %{buildroot}%{_infodir}/*
rm -rf %{buildroot}%{_mandir}/man7/{fsf-funding.*,gfdl.*,gpl.*} rm -rf %{buildroot}%{_mandir}/man7/{fsf-funding.*,gfdl.*,gpl.*}
rm -rf %{buildroot}%{_datadir}/locale/* rm -rf %{buildroot}%{_datadir}/locale/*
rm -rf %{buildroot}%{_datadir}/gcc-%{version}/python/libstdcxx/* rm -rf %{buildroot}%{_datadir}/gcc-%{gcc_ver}/python/libstdcxx/*
# FIXME: since 5.2.0 # FIXME: since 5.2.0
rm -rf %{buildroot}%{_libdir}/libcc1.* rm -rf %{buildroot}%{_libdir}/libcc1.*
%endif %endif
@ -958,7 +960,7 @@ rm -f %{buildroot}%{_infodir}/dir
%{_bindir}/gcov-tool %{_bindir}/gcov-tool
%{_bindir}/lto-dump %{_bindir}/lto-dump
%{_bindir}/%{_target_platform}-cc %{_bindir}/%{_target_platform}-cc
%{_bindir}/%{_target_platform}-gcc-%{version} %{_bindir}/%{_target_platform}-gcc-%{gcc_ver}
%{_bindir}/%{_target_platform}-gcc %{_bindir}/%{_target_platform}-gcc
%{_bindir}/%{_target_platform}-gcc-ar %{_bindir}/%{_target_platform}-gcc-ar
%{_bindir}/%{_target_platform}-gcc-nm %{_bindir}/%{_target_platform}-gcc-nm
@ -967,14 +969,11 @@ rm -f %{buildroot}%{_infodir}/dir
%dir %{_libdir}/gcc %dir %{_libdir}/gcc
%{_libdir}/gcc/* %{_libdir}/gcc/*
%ifarch x86_64 aarch64 %ifarch x86_64 aarch64
%exclude %{_libdir}/gcc/%{_target_platform}/%{version}/32/* %exclude %{_libdir}/gcc/%{_target_platform}/%{gcc_ver}/32/*
%endif %endif
%dir %{_prefix}/libexec/gcc/%{_target_platform}/%{version} %dir %{_prefix}/libexec/gcc/%{_target_platform}/%{gcc_ver}
%{_prefix}/libexec/gcc/%{_target_platform}/%{version}/* %{_prefix}/libexec/gcc/%{_target_platform}/%{gcc_ver}/*
%{_libdir}/bfd-plugins/liblto_plugin.so %{_libdir}/bfd-plugins/liblto_plugin.so
%{_datadir}/gcc-%{version}/python/libstdcxx/__init__.py
%{_datadir}/gcc-%{version}/python/libstdcxx/v6/__init__.py
%{_datadir}/gcc-%{version}/python/libstdcxx/v6/printers.py
%{_mandir}/man1/gcc.1.* %{_mandir}/man1/gcc.1.*
%{_mandir}/man1/gcov.1.* %{_mandir}/man1/gcov.1.*
%{_mandir}/man1/gcov-dump.1.* %{_mandir}/man1/gcov-dump.1.*
@ -984,15 +983,12 @@ rm -f %{buildroot}%{_infodir}/dir
%{_mandir}/man7/gfdl.7.* %{_mandir}/man7/gfdl.7.*
%{_mandir}/man7/gpl.7.* %{_mandir}/man7/gpl.7.*
%doc gcc/{README*,*ChangeLog*} %doc gcc/{README*,*ChangeLog*}
%exclude %{_libdir}/gcc/%{_target_platform}/%{version}/include/objc %exclude %{_libdir}/gcc/%{_target_platform}/%{gcc_ver}/include/objc
%exclude %{_libdir}/gcc/%{_target_platform}/%{version}/include/ssp %exclude %{_libdir}/gcc/%{_target_platform}/%{gcc_ver}/include/ssp
%files -n libgcc %files -n libgcc
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/libgcc* %{_libdir}/libgcc*
%ifarch ppc
%{_libdir}/nof/libgcc*
%endif
%files cpp -f cpplib.lang %files cpp -f cpplib.lang
%defattr(-,root,root) %defattr(-,root,root)
@ -1028,59 +1024,36 @@ rm -f %{buildroot}%{_infodir}/dir
%files -n libgomp %files -n libgomp
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/libgomp.so.* %{_libdir}/libgomp.so.*
%ifarch ppc
%{_libdir}/nof/libgomp.so.*
%endif
%files -n libgomp-devel %files -n libgomp-devel
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/libgomp.a %{_libdir}/libgomp.a
%{_libdir}/libgomp.so %{_libdir}/libgomp.so
%{_libdir}/libgomp.spec %{_libdir}/libgomp.spec
%ifarch ppc
%{_libdir}/nof/libgomp.a
%{_libdir}/nof/libgomp.so
%{_libdir}/nof/libgomp.spec
%endif
%{_datadir}/info/libgomp.info.gz %{_datadir}/info/libgomp.info.gz
%files -n libobjc %files -n libobjc
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/libobjc.so.* %{_libdir}/libobjc.so.*
%ifarch ppc
%{_libdir}/nof/libobjc.so.*
%endif
%files -n libobjc-devel %files -n libobjc-devel
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/libobjc.a %{_libdir}/libobjc.a
%{_libdir}/libobjc.so %{_libdir}/libobjc.so
%ifarch ppc %dir %{_libdir}/gcc/%{_target_platform}/%{gcc_ver}/include/objc
%{_libdir}/nof/libobjc.a %{_libdir}/gcc/%{_target_platform}/%{gcc_ver}/include/objc/*
%{_libdir}/nof/libobjc.so
%endif
%dir %{_libdir}/gcc/%{_target_platform}/%{version}/include/objc
%{_libdir}/gcc/%{_target_platform}/%{version}/include/objc/*
%files -n libssp %files -n libssp
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/libssp.so.* %{_libdir}/libssp.so.*
%ifarch ppc
%{_libdir}/nof/libssp.so.*
%endif
%files -n libssp-devel %files -n libssp-devel
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/libssp.a %{_libdir}/libssp.a
%{_libdir}/libssp.so %{_libdir}/libssp.so
%{_libdir}/libssp_nonshared.a %{_libdir}/libssp_nonshared.a
%ifarch ppc %dir %{_libdir}/gcc/%{_target_platform}/%{gcc_ver}/include/ssp
%{_libdir}/nof/libssp.a %{_libdir}/gcc/%{_target_platform}/%{gcc_ver}/include/ssp/*
%{_libdir}/nof/libssp.so
%{_libdir}/nof/libssp_nonshared.a
%endif
%dir %{_libdir}/gcc/%{_target_platform}/%{version}/include/ssp
%{_libdir}/gcc/%{_target_platform}/%{version}/include/ssp/*
%files -n libasan %files -n libasan
%defattr(-,root,root) %defattr(-,root,root)
@ -1152,16 +1125,16 @@ rm -f %{buildroot}%{_infodir}/dir
%{_bindir}/g++ %{_bindir}/g++
%{_bindir}/%{_target_platform}-c++ %{_bindir}/%{_target_platform}-c++
%{_bindir}/%{_target_platform}-g++ %{_bindir}/%{_target_platform}-g++
%{_datadir}/gcc-%{version}/python/libstdcxx/v6/xmethods.py
%{_mandir}/man1/g++.1.* %{_mandir}/man1/g++.1.*
#%doc gcc/cp/ChangeLog* #%doc gcc/cp/ChangeLog*
%files -n %{libstdcxx_name} %files -n %{libstdcxx_name}
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/libstdc++.so.* %{_libdir}/libstdc++.so.*
%ifarch ppc %dir %{_datadir}/gcc-%{gcc_ver}/python/libstdcx
%{_libdir}/nof/libstdc++.so.* %{_datadir}/gcc-%{gcc_ver}/python/libstdcxx/__init__.py
%endif %dir %{_datadir}/gcc-%{gcc_ver}/python/libstdcx/v6
%{_datadir}/gcc-%{gcc_ver}/python/libstdcxx/v6/*.py
%files -n %{libstdcxx_name}-debug %files -n %{libstdcxx_name}-debug
%defattr(-,root,root) %defattr(-,root,root)
@ -1174,11 +1147,6 @@ rm -f %{buildroot}%{_infodir}/dir
%{_libdir}/libstdc++.so %{_libdir}/libstdc++.so
%{_libdir}/libsupc++.a %{_libdir}/libsupc++.a
%{_libdir}/libstdc++fs.a %{_libdir}/libstdc++fs.a
%ifarch ppc
%{_libdir}/nof/libstdc++.a
%{_libdir}/nof/libstdc++.so
%{_libdir}/nof/libsupc++.a
%endif
%dir %{_includedir}/c++ %dir %{_includedir}/c++
%{_includedir}/c++/* %{_includedir}/c++/*
#%doc libstdc++-v3/{ChangeLog*,README*,doc/html/} #%doc libstdc++-v3/{ChangeLog*,README*,doc/html/}
@ -1215,18 +1183,11 @@ rm -f %{buildroot}%{_infodir}/dir
%{_libdir}/libgfortran.a %{_libdir}/libgfortran.a
%{_libdir}/libgfortran.so %{_libdir}/libgfortran.so
%{_libdir}/libgfortran.spec %{_libdir}/libgfortran.spec
%ifarch ppc
%{_libdir}/nof/libgfortran.a
%{_libdir}/nof/libgfortran.so
%endif
%{_mandir}/man1/gfortran.1.* %{_mandir}/man1/gfortran.1.*
%files -n libgfortran %files -n libgfortran
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/libgfortran.so.* %{_libdir}/libgfortran.so.*
%ifarch ppc
%{_libdir}/nof/libgfortran.so.*
%endif
%endif %endif
%ifnarch arm aarch64 %ifnarch arm aarch64
@ -1258,8 +1219,8 @@ rm -f %{buildroot}%{_infodir}/dir
%files -n libgo %files -n libgo
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/libgo.so.* %{_libdir}/libgo.so.*
%dir %{_libdir}/go/%{version}/%{_target_platform} %dir %{_libdir}/go/%{gcc_ver}/%{_target_platform}
%{_libdir}/go/%{version}/%{_target_platform}/* %{_libdir}/go/%{gcc_ver}/%{_target_platform}/*
%files -n libgo-devel %files -n libgo-devel
%defattr(-,root,root) %defattr(-,root,root)
@ -1282,8 +1243,8 @@ rm -f %{buildroot}%{_infodir}/dir
#%doc gcc/doc/gfortran.pdf #%doc gcc/doc/gfortran.pdf
%endif %endif
%endif %endif
%ifnarch aarch64
%{_infodir}/libquadmath.info.* %{_infodir}/libquadmath.info.*
%if "%{disable_doc}" != "1"
%endif %endif
# #
@ -1293,8 +1254,8 @@ rm -f %{buildroot}%{_infodir}/dir
%files -n gcc-multilib %files -n gcc-multilib
%defattr(-,root,root) %defattr(-,root,root)
%{_sysconfdir}/ld.so.conf.d/lib32-gcc.conf %{_sysconfdir}/ld.so.conf.d/lib32-gcc.conf
%dir %{_libdir}/gcc/%{_target_platform}/%{version}/32 %dir %{_libdir}/gcc/%{_target_platform}/%{gcc_ver}/32
%{_libdir}/gcc/%{_target_platform}/%{version}/32/* %{_libdir}/gcc/%{_target_platform}/%{gcc_ver}/32/*
%{_prefix}/lib32/libgcc_s.so %{_prefix}/lib32/libgcc_s.so
%{_prefix}/lib32/libgcc_s.so.1 %{_prefix}/lib32/libgcc_s.so.1
# #
@ -1322,9 +1283,9 @@ rm -f %{buildroot}%{_infodir}/dir
# go # go
# #
%dir %{_prefix}/lib32/go %dir %{_prefix}/lib32/go
%dir %{_prefix}/lib32/go/%{version} %dir %{_prefix}/lib32/go/%{gcc_ver}
%dir %{_prefix}/lib32/go/%{version}/%{_target_platform} %dir %{_prefix}/lib32/go/%{gcc_ver}/%{_target_platform}
%{_prefix}/lib32/go/%{version}/%{_target_platform}/* %{_prefix}/lib32/go/%{gcc_ver}/%{_target_platform}/*
%{_prefix}/lib32/libgo.a %{_prefix}/lib32/libgo.a
%{_prefix}/lib32/libgo.so %{_prefix}/lib32/libgo.so
%{_prefix}/lib32/libgo.so.* %{_prefix}/lib32/libgo.so.*
@ -1382,21 +1343,20 @@ rm -f %{buildroot}%{_infodir}/dir
%{_prefix}/%{_target_platform}/lib/* %{_prefix}/%{_target_platform}/lib/*
%endif %endif
%endif %endif
%if "%{target_cpu}" == "ppc"
%{_prefix}/%{_target_platform}/%{_lib}/nof/libgfortran.a
%{_prefix}/%{_target_platform}/%{_lib}/nof/libobjc.a
%endif %endif
%endif %{_libdir}/gcc/%{_target_platform}/%{gcc_ver}/*
%{_libdir}/gcc/%{_target_platform}/%{version}/*
%if "%{target_cpu}" == "x86_64" %if "%{target_cpu}" == "x86_64"
%{_libexecdir}/gcc/%{_target_platform}/%{version}/* %{_libexecdir}/gcc/%{_target_platform}/%{gcc_ver}/*
%else %else
%{_prefix}/libexec/gcc/%{_target_platform}/%{version}/* %{_prefix}/libexec/gcc/%{_target_platform}/%{gcc_ver}/*
%endif %endif
%{_mandir}/man1/%{_target_platform}-* %{_mandir}/man1/%{_target_platform}-*
%endif %endif
%changelog %changelog
* Mon Jun 17 2024 Automatic Build System <autodist@openmamba.org> 14.1.1.20240615git.a4f8e9e-1mamba
- update to 14.1.1.20240615git.a4f8e9e
* Thu May 09 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 14.1.0-1mamba * Thu May 09 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 14.1.0-1mamba
- update to 14.1.0 - update to 14.1.0