automatic version update by autodist [release 7.3.0-1mamba;Thu Jan 25 2018]

This commit is contained in:
Automatic Build System 2024-01-05 22:37:50 +01:00
parent cf935f49cc
commit 74633b6112
3 changed files with 71 additions and 20 deletions

Binary file not shown.

View File

@ -0,0 +1,20 @@
--- gcc-7.1.0/libgcc/config/i386/linux-unwind.h.orig 2017-10-17 15:57:36.616505453 +0200
+++ gcc-7.1.0/libgcc/config/i386/linux-unwind.h 2017-10-17 15:57:54.791574061 +0200
@@ -58,7 +58,7 @@
if (*(unsigned char *)(pc+0) == 0x48
&& *(unsigned long long *)(pc+1) == RT_SIGRETURN_SYSCALL)
{
- struct ucontext *uc_ = context->cfa;
+ struct ucontext_t *uc_ = context->cfa;
/* The void * cast is necessary to avoid an aliasing warning.
The aliasing warning is correct, but should not be a problem
because it does not alias anything. */
@@ -138,7 +138,7 @@
siginfo_t *pinfo;
void *puc;
siginfo_t info;
- struct ucontext uc;
+ struct ucontext_t uc;
} *rt_ = context->cfa;
/* The void * cast is necessary to avoid an aliasing warning.
The aliasing warning is correct, but should not be a problem

View File

@ -26,10 +26,12 @@
%define bootstrap_append -stage1 %define bootstrap_append -stage1
%define disable_cpp 1 %define disable_cpp 1
%define disable_doc 1 %define disable_doc 1
%define disable_java 1
%define disable_go 1 %define disable_go 1
%endif %endif
# Java support remove since gcc 7.1
%define disable_java 1
#% if "%{?stage2}" == "1" #% if "%{?stage2}" == "1"
# % define bootstrap_append -stage2 # % define bootstrap_append -stage2
#% endif #% endif
@ -42,7 +44,7 @@
%define majver %(echo %version | cut -d. -f 1-2) %define majver %(echo %version | cut -d. -f 1-2)
Name: gcc Name: gcc
Version: 6.2.0 Version: 7.3.0
Release: 1mamba Release: 1mamba
Summary: GNU Compiler Collection (C, C++, Fortran, Java, Ada) Summary: GNU Compiler Collection (C, C++, Fortran, Java, Ada)
Group: Applications/Development Group: Applications/Development
@ -50,7 +52,7 @@ Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://gcc.gnu.org/ URL: http://gcc.gnu.org/
Source: ftp://ftp.gnu.org/gnu/gcc/gcc-%{version}/gcc-%{version}%{?gcc_extraver}.tar.bz2 Source: ftp://ftp.gnu.org/gnu/gcc/gcc-%{version}/gcc-%{version}%{?gcc_extraver}.tar.xz
Source1: ftp://sourceware.org/pub/java/ecj-latest.jar Source1: ftp://sourceware.org/pub/java/ecj-latest.jar
Source2: gcc-4.3.2-ecj1-wrapper Source2: gcc-4.3.2-ecj1-wrapper
Patch2: gcc4-java-nomulti.patch Patch2: gcc4-java-nomulti.patch
@ -71,6 +73,7 @@ Patch15: gcc-4.9.0-upstream-fixes-1.patch
Patch16: gcc-4.9.2-arm-lra-bootstrap.patch Patch16: gcc-4.9.2-arm-lra-bootstrap.patch
Patch17: gcc-5.2.0-libjava-disable-multilib.patch Patch17: gcc-5.2.0-libjava-disable-multilib.patch
Patch18: gcc-6.1.0-gcj-remove-minor-handling.patch Patch18: gcc-6.1.0-gcj-remove-minor-handling.patch
Patch19: gcc-7.1.0-cross-ftbfs-ucontet_t.patch
License: GPL License: GPL
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
@ -102,6 +105,9 @@ BuildRequires: libmpc-devel
BuildRequires: libmpfr-devel >= 2.1.2 BuildRequires: libmpfr-devel >= 2.1.2
%if "%{_target_platform}" == "%{_build}" %if "%{_target_platform}" == "%{_build}"
BuildRequires: glibc-devel >= 2.5 BuildRequires: glibc-devel >= 2.5
%ifarch x86_64
BuildRequires: glibc-multilib-devel
%endif
#% if "%{?stage2}" != "1" #% if "%{?stage2}" != "1"
BuildRequires: tetex >= 3.0 BuildRequires: tetex >= 3.0
BuildRequires: libgtk2-devel >= 2.8.17 BuildRequires: libgtk2-devel >= 2.8.17
@ -120,7 +126,7 @@ BuildRequires: antlr
%endif %endif
BuildRequires: libcairo-devel >= 1.4.10 BuildRequires: libcairo-devel >= 1.4.10
BuildRequires: libxcb-util-devel >= 0.2 BuildRequires: libxcb-util-devel >= 0.2
BuildRequires: libisl-devel = 0.14 BuildRequires: libisl-devel >= 0.14
#% endif #% endif
#% else #% else
# BuildRequires: cross-%{target_cpu}-glibc%{?glibc_require_append} >= 2.5 # BuildRequires: cross-%{target_cpu}-glibc%{?glibc_require_append} >= 2.5
@ -544,8 +550,8 @@ Cross Platform gcc for %{_target_platform}.
%setup -q -n gcc-%{version}%{?gcc_extraver} %setup -q -n gcc-%{version}%{?gcc_extraver}
#-D -T #-D -T
#:<< ___EOF #:<< ___EOF
%patch2 -p0 #%patch2 -p0
sed -i -e 's/libjawt/libgcjawt/g' libjava/Makefile.{am,in} #sed -i -e 's/libjawt/libgcjawt/g' libjava/Makefile.{am,in}
%patch0 -p1 %patch0 -p1
#%patch1 -p1 #%patch1 -p1
@ -566,8 +572,9 @@ sed -i -e 's/libjawt/libgcjawt/g' libjava/Makefile.{am,in}
#%patch14 -p1 #%patch14 -p1
#%patch15 -p1 #%patch15 -p1
#%patch16 -p1 #%patch16 -p1
%patch17 -p1 #%patch17 -p1
#%patch18 -p1 #%patch18 -p1
#%patch19 -p1
%build %build
#:<< ____EOF #:<< ____EOF
@ -664,7 +671,6 @@ make %{?_smp_mflags}
%else %else
CROSS_SYSTEM_HEADER_DIR=/usr/%{_target_platform}/include \ CROSS_SYSTEM_HEADER_DIR=/usr/%{_target_platform}/include \
../gcc-%{version}%{?gcc_extraver}/configure \ ../gcc-%{version}%{?gcc_extraver}/configure \
--prefix=%{_prefix} \ --prefix=%{_prefix} \
@ -705,6 +711,10 @@ CROSS_SYSTEM_HEADER_DIR=/usr/%{_target_platform}/include \
# --with-headers=/usr/%{_target_platform}/include \ # --with-headers=/usr/%{_target_platform}/include \
%if "%{_target_platform}" != "%{_build}" %if "%{_target_platform}" != "%{_build}"
# FTBFS Workaround: see
# http://www.linuxfromscratch.org/lfs/view/development/chapter05/gcc-pass2.html
mkdir -p gcc/include-fixed
cat ../gcc-%{version}/gcc/{limitx.h,glimits.h,limity.h} > gcc/include-fixed/limits.h
make %{?_smp_mflags} CFLAGS='' LIBCFLAGS='-g -O2' \ make %{?_smp_mflags} CFLAGS='' LIBCFLAGS='-g -O2' \
LIBCXXFLAGS='-g -O2 -fno-implicit-templates' all \ LIBCXXFLAGS='-g -O2 -fno-implicit-templates' all \
%ifarch x86_64 %ifarch x86_64
@ -716,7 +726,7 @@ CROSS_SYSTEM_HEADER_DIR=/usr/%{_target_platform}/include \
LIBCXXFLAGS='-g -O2 -fno-implicit-templates' bootstrap LIBCXXFLAGS='-g -O2 -fno-implicit-templates' bootstrap
%endif %endif
%if "%{disable_doc}" != "1" %if "%{disable_doc}" != "1"
make pdf make pdf || make pdf
%endif %endif
%endif # stage1 = 1 %endif # stage1 = 1
@ -729,13 +739,13 @@ make DESTDIR=%{buildroot} install
%if "%{_target_platform}" == "%{_host}" %if "%{_target_platform}" == "%{_host}"
# make target platform binaries symlinks to avoid binary duplicates # make target platform binaries symlinks to avoid binary duplicates
for p in gcc-%{version} gcc gcc-ar gcc-nm gcc-ranlib c++ g++ gcj gfortran; do 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} ln -s gcc %{buildroot}%{_bindir}/%{_target_platform}-gcc-%{version}
for p in gcc gcc-ar gcc-nm gcc-ranlib cc gcov c++ g++ gcj 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
@ -886,6 +896,7 @@ find %{buildroot}%{_libdir}/gcc -name lib*.a -exec chmod -w {} \;
%{_bindir}/gcc-nm %{_bindir}/gcc-nm
%{_bindir}/gcc-ranlib %{_bindir}/gcc-ranlib
%{_bindir}/gcov %{_bindir}/gcov
%{_bindir}/gcov-dump
%{_bindir}/gcov-tool %{_bindir}/gcov-tool
%{_bindir}/%{_target_platform}-cc %{_bindir}/%{_target_platform}-cc
%{_bindir}/%{_target_platform}-gcc-%{version} %{_bindir}/%{_target_platform}-gcc-%{version}
@ -907,12 +918,15 @@ find %{buildroot}%{_libdir}/gcc -name lib*.a -exec chmod -w {} \;
%{_datadir}/gcc-%{version}/python/libstdcxx/v6/printers.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-tool.1.*
%{_mandir}/man7/fsf-funding.7.* %{_mandir}/man7/fsf-funding.7.*
%{_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}/%{version}/include/objc
%exclude %{_libdir}/gcc/%{_target_platform}/%{version}/include/ssp %exclude %{_libdir}/gcc/%{_target_platform}/%{version}/include/ssp
%if "%{disable_java}" != "1"
%if "%{_target_platform}" == "%{_build}" %if "%{_target_platform}" == "%{_build}"
%exclude %{_libdir}/gcc/%{_target_platform}/%{version}/include/gcj/libgcj-config.h %exclude %{_libdir}/gcc/%{_target_platform}/%{version}/include/gcj/libgcj-config.h
%exclude %{_libdir}/gcc/%{_target_platform}/%{version}/include/jawt.h %exclude %{_libdir}/gcc/%{_target_platform}/%{version}/include/jawt.h
@ -920,6 +934,7 @@ find %{buildroot}%{_libdir}/gcc -name lib*.a -exec chmod -w {} \;
%exclude %{_libdir}/gcc/%{_target_platform}/%{version}/include/jni.h %exclude %{_libdir}/gcc/%{_target_platform}/%{version}/include/jni.h
%exclude %{_libdir}/gcc/%{_target_platform}/%{version}/include/jvmpi.h %exclude %{_libdir}/gcc/%{_target_platform}/%{version}/include/jvmpi.h
%endif %endif
%endif
%files -n libgcc %files -n libgcc
%defattr(-,root,root) %defattr(-,root,root)
@ -933,9 +948,9 @@ find %{buildroot}%{_libdir}/gcc -name lib*.a -exec chmod -w {} \;
%{_libdir}/cpp %{_libdir}/cpp
%{_bindir}/cpp %{_bindir}/cpp
%{_mandir}/man1/cpp.1* %{_mandir}/man1/cpp.1*
%if "%{_target_platform}" == "%{_build}" #%if "%{_target_platform}" == "%{_build}"
%{_infodir}/cp-tools.info.* #%{_infodir}/cp-tools.info.*
%endif #%endif
%files -n libiberty-devel %files -n libiberty-devel
%defattr(-,root,root) %defattr(-,root,root)
@ -1052,6 +1067,7 @@ find %{buildroot}%{_libdir}/gcc -name lib*.a -exec chmod -w {} \;
%{_libdir}/libtsan.a %{_libdir}/libtsan.a
%{_libdir}/libtsan.la %{_libdir}/libtsan.la
%{_libdir}/libtsan.so %{_libdir}/libtsan.so
%{_libdir}/libtsan_preinit.o
%endif %endif
%ifarch x86_64 %ifarch x86_64
@ -1076,7 +1092,6 @@ find %{buildroot}%{_libdir}/gcc -name lib*.a -exec chmod -w {} \;
%{_libdir}/libatomic.la %{_libdir}/libatomic.la
%{_libdir}/libatomic.so %{_libdir}/libatomic.so
%ifnarch arm
%files -n libcilkrts %files -n libcilkrts
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/libcilkrts.so.* %{_libdir}/libcilkrts.so.*
@ -1087,7 +1102,6 @@ find %{buildroot}%{_libdir}/gcc -name lib*.a -exec chmod -w {} \;
%{_libdir}/libcilkrts.la %{_libdir}/libcilkrts.la
%{_libdir}/libcilkrts.so %{_libdir}/libcilkrts.so
%{_libdir}/libcilkrts.spec %{_libdir}/libcilkrts.spec
%endif
%ifnarch arm %ifnarch arm
%files -n libmpx %files -n libmpx
@ -1165,6 +1179,7 @@ find %{buildroot}%{_libdir}/gcc -name lib*.a -exec chmod -w {} \;
%endif %endif
%dir %{_includedir}/c++ %dir %{_includedir}/c++
%{_includedir}/c++/* %{_includedir}/c++/*
%if "%{disable_java}" != "1"
%if "%{_target_platform}" == "%{_build}" %if "%{_target_platform}" == "%{_build}"
%exclude %{_includedir}/c++/%{version}/gcj/* %exclude %{_includedir}/c++/%{version}/gcj/*
%exclude %{_includedir}/c++/%{version}/gnu/awt/* %exclude %{_includedir}/c++/%{version}/gnu/awt/*
@ -1174,6 +1189,7 @@ find %{buildroot}%{_libdir}/gcc -name lib*.a -exec chmod -w {} \;
%exclude %{_includedir}/c++/%{version}/java/* %exclude %{_includedir}/c++/%{version}/java/*
%exclude %{_includedir}/c++/%{version}/javax/* %exclude %{_includedir}/c++/%{version}/javax/*
%endif %endif
%endif
#%doc libstdc++-v3/{ChangeLog*,README*,doc/html/} #%doc libstdc++-v3/{ChangeLog*,README*,doc/html/}
%endif "%{disable_cpp} %endif "%{disable_cpp}
@ -1370,6 +1386,7 @@ find %{buildroot}%{_libdir}/gcc -name lib*.a -exec chmod -w {} \;
%{_libdir}/libquadmath.so %{_libdir}/libquadmath.so
%endif %endif
%if "%{disable_go}" != "1"
# #
# go language # go language
# #
@ -1397,9 +1414,9 @@ find %{buildroot}%{_libdir}/gcc -name lib*.a -exec chmod -w {} \;
%{_libdir}/libgo.so %{_libdir}/libgo.so
%{_libdir}/libgobegin.a %{_libdir}/libgobegin.a
%{_libdir}/libgolibbegin.a %{_libdir}/libgolibbegin.a
%{_libdir}/libnetgo.a #%{_libdir}/libnetgo.a
%endif
%if "%{disable_doc}" != "1"
%files doc %files doc
%defattr(-,root,root) %defattr(-,root,root)
%{_infodir}/cpp.info.* %{_infodir}/cpp.info.*
@ -1409,13 +1426,18 @@ find %{buildroot}%{_libdir}/gcc -name lib*.a -exec chmod -w {} \;
%{_infodir}/gccint.info.* %{_infodir}/gccint.info.*
%if "%{disable_java}" != "1" %if "%{disable_java}" != "1"
%{_infodir}/gcj.info.* %{_infodir}/gcj.info.*
%if "%{disable_doc}" != "1"
%doc gcc/doc/gcj.pdf %doc gcc/doc/gcj.pdf
%endif %endif
%endif
%if "%{disable_fortran}" != "1" %if "%{disable_fortran}" != "1"
%{_infodir}/gfortran.info.* %{_infodir}/gfortran.info.*
%if "%{disable_doc}" != "1"
%doc gcc/doc/gfortran.pdf %doc gcc/doc/gfortran.pdf
%endif %endif
%endif
%{_infodir}/libquadmath.info.* %{_infodir}/libquadmath.info.*
%if "%{disable_doc}" != "1"
%doc gcc/doc/cpp.pdf %doc gcc/doc/cpp.pdf
%doc gcc/doc/cppinternals.pdf %doc gcc/doc/cppinternals.pdf
%doc gcc/doc/gccinstall.pdf %doc gcc/doc/gccinstall.pdf
@ -1483,7 +1505,7 @@ find %{buildroot}%{_libdir}/gcc -name lib*.a -exec chmod -w {} \;
%{_prefix}/lib/libgo.so.* %{_prefix}/lib/libgo.so.*
%{_prefix}/lib/libgobegin.a %{_prefix}/lib/libgobegin.a
%{_prefix}/lib/libgolibbegin.a %{_prefix}/lib/libgolibbegin.a
%{_prefix}/lib/libnetgo.a #%{_prefix}/lib/libnetgo.a
# #
# #
# #
@ -1575,6 +1597,15 @@ find %{buildroot}%{_libdir}/gcc -name lib*.a -exec chmod -w {} \;
%endif # cross-platform %endif # cross-platform
%changelog %changelog
* Thu Jan 25 2018 Automatic Build System <autodist@mambasoft.it> 7.3.0-1mamba
- automatic version update by autodist
* Thu Oct 19 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 7.2.0-1mamba
- update to 7.2.0
* Sat Jun 17 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 7.1.0-1mamba
- update to 7.1.0
* Wed Aug 24 2016 Automatic Build System <autodist@mambasoft.it> 6.2.0-1mamba * Wed Aug 24 2016 Automatic Build System <autodist@mambasoft.it> 6.2.0-1mamba
- automatic version update by autodist - automatic version update by autodist