Search
SailfishOS Open Build Service
>
Projects
>
home:Wikiwide
:
OpenFOAM
>
Gcc9
> Changes
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 27
We truncated the diff of some files because they were too big. If you want to see the full diff for every file,
click here
.
[-]
[+]
Added
gcc9.spec
@@ -0,0 +1,3431 @@ +# +# spec file for package gcc9 +# +# Copyright (c) 2020 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +# nospeccleaner + +# Ada currently fails to build on a few platforms, enable it only +# on those that work +%if %{suse_version} >= 1310 +%if %{suse_version} >= 1330 +%define ada_arch %ix86 x86_64 ppc ppc64 ppc64le s390 s390x ia64 aarch64 riscv64 +%else +%define ada_arch %ix86 x86_64 ppc ppc64 s390 ia64 +%endif +%else +%define ada_arch %ix86 x86_64 ppc s390 ia64 +%endif + +%ifarch %ada_arch +%define build_ada 1 +%else +%define build_ada 0 +%endif + +%define quadmath_arch %ix86 x86_64 ia64 ppc64le +%define tsan_arch x86_64 aarch64 ppc ppc64 ppc64le +%define asan_arch x86_64 %ix86 ppc ppc64 ppc64le s390 s390x %sparc %arm aarch64 +%define itm_arch x86_64 %ix86 %arm aarch64 ppc ppc64 ppc64le s390 s390x %sparc +%define atomic_arch x86_64 %ix86 %arm aarch64 ppc ppc64 ppc64le s390 s390x %sparc m68k ia64 riscv64 +%define lsan_arch x86_64 aarch64 ppc ppc64 ppc64le +%define ubsan_arch x86_64 %ix86 ppc ppc64 ppc64le s390 s390x %arm aarch64 +%if 0%{?build_libvtv:1} +%define vtv_arch x86_64 %ix86 +%endif + +%define build_cp 1 +%define build_fortran 1 +%define build_objc 1 +%define build_objcp 1 +%define build_go 1 +%ifarch x86_64 %ix86 %arm aarch64 riscv64 s390x +%define build_d 1 +%else +%define build_d 0 +%endif + +%if %{build_objcp} +%define build_cp 1 +%define build_objc 1 +%endif + +# For optional compilers only build C, C++, Fortran, Ada and Go +%if 0%{?build_optional_compiler_languages:1} +%define build_objc 0 +%define build_objcp 0 +%define build_d 0 +%endif + +%ifarch x86_64 +%define build_hsa 1 +%define build_nvptx 1 +%else +%define build_hsa 0 +%define build_nvptx 0 +%endif + +%define use_lto_bootstrap 0 +%ifarch x86_64 ppc64le s390x aarch64 +%if %{suse_version} > 1500 +%define use_lto_bootstrap 1 +%endif +%endif + +# Enable plugins just for Tumbleweed, not for SLES +%if 0%{!?sle_version:1} +%define enable_plugins 1 +%else +%define enable_plugins 0 +%endif + +# Shared library SONAME versions +%ifarch hppa +%define libgcc_s 4 +%else +%ifarch m68k +%define libgcc_s 2 +%else +%define libgcc_s 1 +%endif +%endif +%define libgomp_sover 1 +%define libstdcxx_sover 6 +%define libobjc_sover 4 +%define libgfortran_sover 5 +%define libquadmath_sover 0 +%define libasan_sover 5 +%define libtsan_sover 0 +%define libatomic_sover 1 +%define libitm_sover 1 +%define libubsan_sover 1 +%define liblsan_sover 0 +%define libvtv_sover 0 +%define libgo_sover 14 +%define libgphobos_sover 76 +%define libgdruntime_sover 76 + +# Shared library package suffix +# This is used for the "non-standard" set of libraries, the standard +# being defined by %%product_libs_gcc_ver, the GCC version that should +# provide un-suffixed shared library packages following the shared-library +# policy. Even suffixed variants should provide the shared-library policy +# mandated names and ensure they conflict with each other. +# Individual shared libraries can be directed to be built from individual +# gcc versions by defining %%product_libs_gcc_ver_libgcc_s1 for example, +# generally %%product_libs_gcc_ver_%%name%%sover, similarly. + +%define itsme9 1 +%define plv_ %{!?product_libs_gcc_ver:9}%{?product_libs_gcc_ver} +%define plv() %{expand:%%{!?itsme%{expand:%%{!?product_libs_gcc_ver_%{1}%{2}:%%{plv_}}%%{?product_libs_gcc_ver_%{1}%{2}}}:-gcc9}} + +%define libgcc_s_suffix %{plv libgcc_s %{libgcc_s}} +%define libgomp_suffix %{plv libgomp %{libgomp_sover}} +%define libstdcxx_suffix %{plv libstdcxx %{libstdcxx_sover}} +%define libobjc_suffix %{plv libobjc %{libobjc_sover}} +%define libgfortran_suffix %{plv libgfortran %{libgfortran_sover}} +%define libquadmath_suffix %{plv libquadmath %{libquadmath_sover}} +%define libasan_suffix %{plv libasan %{libasan_sover}} +%define libtsan_suffix %{plv libtsan %{libtsan_sover}} +%define libatomic_suffix %{plv libatomic %{libatomic_sover}} +%define libitm_suffix %{plv libitm %{libitm_sover}} +%define libubsan_suffix %{plv libubsan %{libubsan_sover}} +%define liblsan_suffix %{plv liblsan %{liblsan_sover}} +%define libvtv_suffix %{plv libvtv %{libvtv_sover}} +%define libgo_suffix %{plv libgo %{libgo_sover}} +%define libgphobos_suffix %{plv libgphobos %{libgphobos_sover}} +%define libgdruntime_suffix %{plv libgdruntime %{libgdruntime_sover}} + +# libFOO-devel package suffix +%define libdevel_suffix -gcc9 + +%if %{suse_version} >= 1220 +%define selfconflict() %1 +%else +%define selfconflict() otherproviders(%1) +%endif + +Name: gcc9 +BuildRequires: xz +# With generated files in src we could drop the following +BuildRequires: bison +BuildRequires: flex +BuildRequires: gettext-devel +%if %{suse_version} > 1220 +BuildRequires: makeinfo +%else +BuildRequires: texinfo +%endif +# until here, but at least renaming and patching info files breaks this +BuildRequires: gcc-c++ +BuildRequires: glibc-devel-32bit glibc-32bit +BuildRequires: mpc-devel +BuildRequires: mpfr-devel +BuildRequires: perl +BuildRequires: zlib-devel +%if %{suse_version} >= 1500 +# for SDT markers in the C++ unwinder and gdb breakpoints on exceptions +BuildRequires: systemtap-headers +%endif +%if %{suse_version} >= 1230 +BuildRequires: isl-devel +%endif +%if %{build_ada} +%if 0%{?gcc_version:%{gcc_version}} > 9 +%define hostsuffix %{binsuffix} +BuildRequires: gcc9-ada +BuildRequires: gcc9-c++ +%else +%if %{suse_version} < 1310 +%define hostsuffix -4.8 +BuildRequires: gcc48-ada +BuildRequires: gcc48-c++ +%else +%define hostsuffix %{nil} +BuildRequires: gcc-ada +%endif