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 disable_cpp 1
%define disable_doc 1
%define disable_java 1
%define disable_go 1
%endif
# Java support remove since gcc 7.1
%define disable_java 1
#% if "%{?stage2}" == "1"
# % define bootstrap_append -stage2
#% endif
@ -42,7 +44,7 @@
%define majver %(echo %version | cut -d. -f 1-2)
Name: gcc
Version: 6.2.0
Version: 7.3.0
Release: 1mamba
Summary: GNU Compiler Collection (C, C++, Fortran, Java, Ada)
Group: Applications/Development
@ -50,7 +52,7 @@ Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
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
Source2: gcc-4.3.2-ecj1-wrapper
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
Patch17: gcc-5.2.0-libjava-disable-multilib.patch
Patch18: gcc-6.1.0-gcj-remove-minor-handling.patch
Patch19: gcc-7.1.0-cross-ftbfs-ucontet_t.patch
License: GPL
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
@ -102,6 +105,9 @@ BuildRequires: libmpc-devel
BuildRequires: libmpfr-devel >= 2.1.2
%if "%{_target_platform}" == "%{_build}"
BuildRequires: glibc-devel >= 2.5
%ifarch x86_64
BuildRequires: glibc-multilib-devel
%endif
#% if "%{?stage2}" != "1"
BuildRequires: tetex >= 3.0
BuildRequires: libgtk2-devel >= 2.8.17
@ -120,7 +126,7 @@ BuildRequires: antlr
%endif
BuildRequires: libcairo-devel >= 1.4.10
BuildRequires: libxcb-util-devel >= 0.2
BuildRequires: libisl-devel = 0.14
BuildRequires: libisl-devel >= 0.14
#% endif
#% else
# 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}
#-D -T
#:<< ___EOF
%patch2 -p0
sed -i -e 's/libjawt/libgcjawt/g' libjava/Makefile.{am,in}
#%patch2 -p0
#sed -i -e 's/libjawt/libgcjawt/g' libjava/Makefile.{am,in}
%patch0 -p1
#%patch1 -p1
@ -566,13 +572,14 @@ sed -i -e 's/libjawt/libgcjawt/g' libjava/Makefile.{am,in}
#%patch14 -p1
#%patch15 -p1
#%patch16 -p1
%patch17 -p1
#%patch17 -p1
#%patch18 -p1
#%patch19 -p1
%build
#:<< ____EOF
rm -rf ../%{name}-build
#____EOF
#____ EOF
mkdir -p ../%{name}-build
cd ../%{name}-build
@ -664,7 +671,6 @@ make %{?_smp_mflags}
%else
CROSS_SYSTEM_HEADER_DIR=/usr/%{_target_platform}/include \
../gcc-%{version}%{?gcc_extraver}/configure \
--prefix=%{_prefix} \
@ -705,6 +711,10 @@ CROSS_SYSTEM_HEADER_DIR=/usr/%{_target_platform}/include \
# --with-headers=/usr/%{_target_platform}/include \
%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' \
LIBCXXFLAGS='-g -O2 -fno-implicit-templates' all \
%ifarch x86_64
@ -716,7 +726,7 @@ CROSS_SYSTEM_HEADER_DIR=/usr/%{_target_platform}/include \
LIBCXXFLAGS='-g -O2 -fno-implicit-templates' bootstrap
%endif
%if "%{disable_doc}" != "1"
make pdf
make pdf || make pdf
%endif
%endif # stage1 = 1
@ -729,13 +739,13 @@ make DESTDIR=%{buildroot} install
%if "%{_target_platform}" == "%{_host}"
# 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
done
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
done
@ -886,6 +896,7 @@ find %{buildroot}%{_libdir}/gcc -name lib*.a -exec chmod -w {} \;
%{_bindir}/gcc-nm
%{_bindir}/gcc-ranlib
%{_bindir}/gcov
%{_bindir}/gcov-dump
%{_bindir}/gcov-tool
%{_bindir}/%{_target_platform}-cc
%{_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
%{_mandir}/man1/gcc.1.*
%{_mandir}/man1/gcov.1.*
%{_mandir}/man1/gcov-dump.1.*
%{_mandir}/man1/gcov-tool.1.*
%{_mandir}/man7/fsf-funding.7.*
%{_mandir}/man7/gfdl.7.*
%{_mandir}/man7/gpl.7.*
%doc gcc/{README*,*ChangeLog*}
%exclude %{_libdir}/gcc/%{_target_platform}/%{version}/include/objc
%exclude %{_libdir}/gcc/%{_target_platform}/%{version}/include/ssp
%if "%{disable_java}" != "1"
%if "%{_target_platform}" == "%{_build}"
%exclude %{_libdir}/gcc/%{_target_platform}/%{version}/include/gcj/libgcj-config.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/jvmpi.h
%endif
%endif
%files -n libgcc
%defattr(-,root,root)
@ -933,9 +948,9 @@ find %{buildroot}%{_libdir}/gcc -name lib*.a -exec chmod -w {} \;
%{_libdir}/cpp
%{_bindir}/cpp
%{_mandir}/man1/cpp.1*
%if "%{_target_platform}" == "%{_build}"
%{_infodir}/cp-tools.info.*
%endif
#%if "%{_target_platform}" == "%{_build}"
#%{_infodir}/cp-tools.info.*
#%endif
%files -n libiberty-devel
%defattr(-,root,root)
@ -1052,6 +1067,7 @@ find %{buildroot}%{_libdir}/gcc -name lib*.a -exec chmod -w {} \;
%{_libdir}/libtsan.a
%{_libdir}/libtsan.la
%{_libdir}/libtsan.so
%{_libdir}/libtsan_preinit.o
%endif
%ifarch x86_64
@ -1076,7 +1092,6 @@ find %{buildroot}%{_libdir}/gcc -name lib*.a -exec chmod -w {} \;
%{_libdir}/libatomic.la
%{_libdir}/libatomic.so
%ifnarch arm
%files -n libcilkrts
%defattr(-,root,root)
%{_libdir}/libcilkrts.so.*
@ -1087,7 +1102,6 @@ find %{buildroot}%{_libdir}/gcc -name lib*.a -exec chmod -w {} \;
%{_libdir}/libcilkrts.la
%{_libdir}/libcilkrts.so
%{_libdir}/libcilkrts.spec
%endif
%ifnarch arm
%files -n libmpx
@ -1165,6 +1179,7 @@ find %{buildroot}%{_libdir}/gcc -name lib*.a -exec chmod -w {} \;
%endif
%dir %{_includedir}/c++
%{_includedir}/c++/*
%if "%{disable_java}" != "1"
%if "%{_target_platform}" == "%{_build}"
%exclude %{_includedir}/c++/%{version}/gcj/*
%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}/javax/*
%endif
%endif
#%doc libstdc++-v3/{ChangeLog*,README*,doc/html/}
%endif "%{disable_cpp}
@ -1370,6 +1386,7 @@ find %{buildroot}%{_libdir}/gcc -name lib*.a -exec chmod -w {} \;
%{_libdir}/libquadmath.so
%endif
%if "%{disable_go}" != "1"
#
# go language
#
@ -1397,9 +1414,9 @@ find %{buildroot}%{_libdir}/gcc -name lib*.a -exec chmod -w {} \;
%{_libdir}/libgo.so
%{_libdir}/libgobegin.a
%{_libdir}/libgolibbegin.a
%{_libdir}/libnetgo.a
#%{_libdir}/libnetgo.a
%endif
%if "%{disable_doc}" != "1"
%files doc
%defattr(-,root,root)
%{_infodir}/cpp.info.*
@ -1409,13 +1426,18 @@ find %{buildroot}%{_libdir}/gcc -name lib*.a -exec chmod -w {} \;
%{_infodir}/gccint.info.*
%if "%{disable_java}" != "1"
%{_infodir}/gcj.info.*
%if "%{disable_doc}" != "1"
%doc gcc/doc/gcj.pdf
%endif
%endif
%if "%{disable_fortran}" != "1"
%{_infodir}/gfortran.info.*
%if "%{disable_doc}" != "1"
%doc gcc/doc/gfortran.pdf
%endif
%endif
%{_infodir}/libquadmath.info.*
%if "%{disable_doc}" != "1"
%doc gcc/doc/cpp.pdf
%doc gcc/doc/cppinternals.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/libgobegin.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
%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
- automatic version update by autodist