From 11a3a4531fb44830cda70ce83e0aad001edab2186620506df27a1dfc5a23435d Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Fri, 10 May 2019 07:15:35 +0000 Subject: [PATCH 1/3] Accepting request 699574 from home:marxin:branches:devel:gccxx - Switch gcc to default 9. OBS-URL: https://build.opensuse.org/request/show/699574 OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc?expand=0&rev=91 --- gcc.changes | 5 +++++ gcc.spec | 58 ++++++++++++++++++++++++++--------------------------- 2 files changed, 34 insertions(+), 29 deletions(-) diff --git a/gcc.changes b/gcc.changes index 6651b64..d993680 100644 --- a/gcc.changes +++ b/gcc.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Apr 30 09:09:39 UTC 2019 - Martin Liška + +- Switch gcc to default 9. + ------------------------------------------------------------------- Wed Jun 13 07:13:07 UTC 2018 - rguenther@suse.com diff --git a/gcc.spec b/gcc.spec index fb3f0fa..ffb7808 100644 --- a/gcc.spec +++ b/gcc.spec @@ -1,7 +1,7 @@ # # spec file for package gcc # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -35,12 +35,12 @@ Name: gcc %define build_ada 0 %endif Url: http://gcc.gnu.org/ -%define gcc_version 8 -%define gcc_suffix 8 -Version: 8 +%define gcc_version 9 +%define gcc_suffix 9 +Version: 9 Release: 0 Summary: The system GNU C Compiler -License: GPL-3.0+ +License: GPL-3.0-or-later Group: Development/Languages/C and C++ Provides: c_compiler Obsoletes: gcc-ar @@ -60,7 +60,7 @@ The system GNU C Compiler. %package -n gcc-32bit Summary: The system GNU C Compiler -License: GPL-3.0+ +License: GPL-3.0-or-later Group: Development/Languages/C and C++ Requires: gcc = %{version} Requires: gcc%{gcc_version}-32bit @@ -72,7 +72,7 @@ The system GNU C Compiler. %package -n gcc-64bit Summary: The system GNU C Compiler -License: GPL-3.0+ +License: GPL-3.0-or-later Group: Development/Languages/C and C++ Requires: gcc = %{version} Requires: gcc%{gcc_version}-64bit @@ -84,7 +84,7 @@ The system GNU C Compiler. %package -n cpp Summary: The system GNU Preprocessor -License: GPL-3.0+ +License: GPL-3.0-or-later Group: Development/Languages/C and C++ Requires: cpp%{gcc_version} @@ -94,7 +94,7 @@ The system GNU Preprocessor. %package -n gcc-devel Summary: The system GNU C Compiler Plugin development files -License: GPL-3.0+ +License: GPL-3.0-or-later Group: Development/Languages/C and C++ Requires: gcc = %{version} Requires: gcc%{gcc_version}-devel @@ -105,7 +105,7 @@ The system GNU C Compiler Plugin development files. %package -n gcc-locale Summary: The system GNU Compiler locale files -License: GPL-3.0+ +License: GPL-3.0-or-later Group: Development/Languages/C and C++ Requires: gcc%{gcc_version}-locale @@ -116,7 +116,7 @@ The system GNU Compiler locale files. %package -n gcc-info Summary: The system GNU Compiler documentation -License: GFDL-1.2 +License: GFDL-1.2-only Group: Development/Languages/C and C++ PreReq: %{install_info_prereq} PreReq: gcc%{gcc_version}-info @@ -142,7 +142,7 @@ fi %package -n gcc-c++ Summary: The system GNU C++ Compiler -License: GPL-3.0+ +License: GPL-3.0-or-later Group: Development/Languages/C and C++ Provides: c++_compiler Requires: gcc = %{version} @@ -154,7 +154,7 @@ The system GNU C++ Compiler. %package -n gcc-c++-32bit Summary: The system GNU C++ Compiler -License: GPL-3.0+ +License: GPL-3.0-or-later Group: Development/Languages/C and C++ Requires: gcc%{gcc_version}-c++-32bit Requires: gcc-32bit = %{version} @@ -166,7 +166,7 @@ The system GNU C++ Compiler 32 bit support. %package -n gcc-c++-64bit Summary: The system GNU C++ Compiler -License: GPL-3.0+ +License: GPL-3.0-or-later Group: Development/Languages/C and C++ Requires: gcc%{gcc_version}-c++-64bit Requires: gcc-64bit = %{version} @@ -212,7 +212,7 @@ The system GNU C++ 64bit development files. %package -n gcc-fortran Summary: The system GNU Fortran Compiler -License: GPL-3.0+ +License: GPL-3.0-or-later Group: Development/Languages/Fortran Requires: gcc = %{version} Requires: gcc%{gcc_version}-fortran @@ -223,7 +223,7 @@ The system GNU Fortran Compiler. %package -n gcc-fortran-32bit Summary: The system GNU Fortran Compiler -License: GPL-3.0+ +License: GPL-3.0-or-later Group: Development/Languages/Fortran Requires: gcc%{gcc_version}-fortran-32bit Requires: gcc-fortran = %{version} @@ -234,7 +234,7 @@ The system GNU Fortran Compiler 32 bit support. %package -n gcc-fortran-64bit Summary: The system GNU Fortran Compiler -License: GPL-3.0+ +License: GPL-3.0-or-later Group: Development/Languages/Fortran Requires: gcc%{gcc_version}-fortran-64bit Requires: gcc-fortran = %{version} @@ -246,7 +246,7 @@ The system GNU Fortran Compiler 64 bit support. %package -n gcc-objc Summary: The system GNU Objective C Compiler -License: GPL-3.0+ +License: GPL-3.0-or-later Group: Development/Languages/Other Requires: gcc = %{version} Requires: gcc%{gcc_version}-objc @@ -261,7 +261,7 @@ The system GNU Objective C Compiler. %package -n gcc-objc-32bit Summary: The system GNU Objective C Compiler -License: GPL-3.0+ +License: GPL-3.0-or-later Group: Development/Languages/Other Requires: gcc%{gcc_version}-objc-32bit Requires: gcc-objc = %{version} @@ -273,7 +273,7 @@ The system GNU Objective C Compiler 32 bit support. %package -n gcc-objc-64bit Summary: The system GNU Objective C Compiler -License: GPL-3.0+ +License: GPL-3.0-or-later Group: Development/Languages/Other Requires: gcc%{gcc_version}-objc-64bit Requires: gcc-objc = %{version} @@ -285,7 +285,7 @@ The system GNU Objective C Compiler 64 bit support. %package -n gcc-obj-c++ Summary: The system GNU Objective C++ Compiler -License: GPL-3.0+ +License: GPL-3.0-or-later Group: Development/Languages/Other Requires: gcc%{gcc_version}-obj-c++ Requires: gcc-objc = %{version} @@ -297,7 +297,7 @@ The system GNU Objective C++ Compiler. %package -n gcc-PIE Summary: A default configuration to build all binaries in PIE mode -License: GPL-3.0+ +License: GPL-3.0-or-later Group: Development/Languages/Other Requires: gcc @@ -310,7 +310,7 @@ space randomization (ASLR). %package -n gcc-ada Summary: The system GNU Ada Compiler -License: GPL-3.0+ +License: GPL-3.0-or-later Group: Development/Languages/C and C++ Requires: gcc = %{version} Requires: gcc%{gcc_version}-ada @@ -320,7 +320,7 @@ The system GNU Ada Compiler. %package -n gcc-ada-32bit Summary: The system GNU Ada Compiler -License: GPL-3.0+ +License: GPL-3.0-or-later Group: Development/Languages/C and C++ Requires: gcc%{gcc_version}-ada-32bit Requires: gcc-ada = %{version} @@ -330,7 +330,7 @@ The system GNU Ada Compiler 32 bit support. %package -n gcc-ada-64bit Summary: The system GNU Ada Compiler -License: GPL-3.0+ +License: GPL-3.0-or-later Group: Development/Languages/C and C++ Requires: gcc%{gcc_version}-ada-64bit Requires: gcc-ada = %{version} @@ -341,7 +341,7 @@ The system GNU Ada Compiler 64 bit support. %package -n gcc-go Summary: The system GNU Go Compiler -License: GPL-3.0+ +License: GPL-3.0-or-later Group: Development/Languages/C and C++ Requires: gcc = %{version} Requires: gcc%{gcc_version}-go @@ -353,7 +353,7 @@ The system GNU Go Compiler. %package -n gcc-go-32bit Summary: The system GNU Go Compiler -License: GPL-3.0+ +License: GPL-3.0-or-later Group: Development/Languages/C and C++ Requires: gcc%{gcc_version}-go-32bit Requires: gcc-go = %{version} @@ -363,7 +363,7 @@ The system GNU Go Compiler 32bit support. %package -n gcc-go-64bit Summary: The system GNU Go Compiler -License: GPL-3.0+ +License: GPL-3.0-or-later Group: Development/Languages/C and C++ Requires: gcc%{gcc_version}-go-64bit Requires: gcc-go = %{version} From 916b6e784693566b1fdd59cd5eed9b162167deb3e0063736b0b36acf6f623262 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Fri, 10 May 2019 07:35:23 +0000 Subject: [PATCH 2/3] - Package default D compiler. OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc?expand=0&rev=92 --- gcc.changes | 5 +++++ gcc.spec | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+) diff --git a/gcc.changes b/gcc.changes index d993680..9c4e2b8 100644 --- a/gcc.changes +++ b/gcc.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri May 10 07:23:58 UTC 2019 - rguenther@suse.com + +- Package default D compiler. + ------------------------------------------------------------------- Tue Apr 30 09:09:39 UTC 2019 - Martin Liška diff --git a/gcc.spec b/gcc.spec index ffb7808..2f5ee47 100644 --- a/gcc.spec +++ b/gcc.spec @@ -34,6 +34,11 @@ Name: gcc # alpha hppa arm %define build_ada 0 %endif +%ifarch x86_64 %ix86 %arm aarch64 riscv64 s390x +%define build_d 1 +%else +%define build_d 0 +%endif Url: http://gcc.gnu.org/ %define gcc_version 9 %define gcc_suffix 9 @@ -372,6 +377,39 @@ Requires: gcc-go = %{version} The system GNU Go Compiler 64bit support. +%package -n gcc-d +Summary: The system GNU D Compiler +License: GPL-3.0-or-later +Group: Development/Languages/C and C++ +Requires: gcc = %{version} +Requires: gcc%{gcc_version}-d +Requires(post): update-alternatives +Requires(postun): update-alternatives + +%description -n gcc-d +The system GNU D Compiler. + +%package -n gcc-d-32bit +Summary: The system GNU D Compiler +License: GPL-3.0-or-later +Group: Development/Languages/C and C++ +Requires: gcc%{gcc_version}-d-32bit +Requires: gcc-d = %{version} + +%description -n gcc-d-32bit +The system GNU D Compiler 32bit support. + +%package -n gcc-d-64bit +Summary: The system GNU D Compiler +License: GPL-3.0-or-later +Group: Development/Languages/C and C++ +Requires: gcc%{gcc_version}-d-64bit +Requires: gcc-d = %{version} + +%description -n gcc-d-64bit +The system GNU D Compiler 64bit support. + + %prep %install @@ -391,6 +429,9 @@ for program in \ %if %{build_ada} gnat gnatbind gnatbl gnatchop gnatclean gnatfind gnatkr \ gnatlink gnatls gnatmake gnatname gnatprep gnatxref gprmake \ +%endif +%if %{build_d} + gdc \ %endif gcc-ar gcc-nm gcc-ranlib \ ; do @@ -407,6 +448,9 @@ for man1 in \ cpp \ gfortran \ gccgo \ +%if %{build_d} + gdc \ +%endif ; do ln -sf $man1-%{gcc_suffix}.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/$man1.1.gz done @@ -545,6 +589,13 @@ fi %ghost %{_sysconfdir}/alternatives/gofmt %doc %{_mandir}/man1/gccgo.1.gz +%if %{build_d} +%files -n gcc-d +%defattr(-,root,root) +%{_bindir}/gdc +%doc %{_mandir}/man1/gdc.1.gz +%endif + %if %{separate_bi32} %files -n gcc-32bit @@ -577,6 +628,11 @@ fi %defattr(-,root,root) # empty - only for the dependency +%if %{build_d} +%files -n gcc-d-32bit +%defattr(-,root,root) +# empty - only for the dependency +%endif %endif %if %{separate_bi64} @@ -610,6 +666,12 @@ fi %defattr(-,root,root) # empty - only for the dependency +%if %{build_d} +%files -n gcc-d-64bit +%defattr(-,root,root) +# empty - only for the dependency +%endif + %endif %changelog From 6e13623a89a4be61ea71b3fe805173319331e26ddefd2004d9a75297ebdd707f Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Thu, 16 May 2019 13:32:50 +0000 Subject: [PATCH 3/3] Accepting request 703442 from home:Andreas_Schwab:Factory - Add ada links on riscv64 OBS-URL: https://build.opensuse.org/request/show/703442 OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc?expand=0&rev=93 --- gcc.changes | 5 +++++ gcc.spec | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc.changes b/gcc.changes index 9c4e2b8..ca17931 100644 --- a/gcc.changes +++ b/gcc.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu May 16 13:23:19 UTC 2019 - Andreas Schwab + +- Add ada links on riscv64 + ------------------------------------------------------------------- Fri May 10 07:23:58 UTC 2019 - rguenther@suse.com diff --git a/gcc.spec b/gcc.spec index 2f5ee47..7ead7ef 100644 --- a/gcc.spec +++ b/gcc.spec @@ -28,7 +28,7 @@ Name: gcc # Ada currently fails to build on a few platforms, enable it only # on those that work # Note that AdaCore only supports %ix86, x86_64 and ia64 -%ifarch %ix86 x86_64 ppc ppc64 ppc64le s390 s390x ia64 aarch64 +%ifarch %ix86 x86_64 ppc ppc64 ppc64le s390 s390x ia64 aarch64 riscv64 %define build_ada 1 %else # alpha hppa arm