From 152a55f973a8824492c92bec7bc231c285639512f8efa41706b40ec0da57c045 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Sun, 11 Mar 2018 17:34:01 +0000 Subject: [PATCH] Accepting request 585470 from home:a_faerber:branches:devel:gcc Update to 2.5.0 and prepare for new targets OBS-URL: https://build.opensuse.org/request/show/585470 OBS-URL: https://build.opensuse.org/package/show/devel:gcc/newlib?expand=0&rev=5 --- cross-epiphany-newlib-devel.changes | 7 +++++++ cross-epiphany-newlib-devel.spec | 13 +++++-------- cross-rx-newlib-devel.changes | 7 +++++++ cross-rx-newlib-devel.spec | 13 +++++-------- newlib-2.4.0.tar.gz | 3 --- newlib-2.5.0.tar.gz | 3 +++ newlib.changes | 7 +++++++ newlib.spec | 2 +- newlib.spec.in | 13 +++++-------- 9 files changed, 40 insertions(+), 28 deletions(-) delete mode 100644 newlib-2.4.0.tar.gz create mode 100644 newlib-2.5.0.tar.gz diff --git a/cross-epiphany-newlib-devel.changes b/cross-epiphany-newlib-devel.changes index d798ecd..d8567d4 100644 --- a/cross-epiphany-newlib-devel.changes +++ b/cross-epiphany-newlib-devel.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sun Mar 11 16:50:55 UTC 2018 - afaerber@suse.de + +- Prepare for %cross_arch with dashes by consistently quoting +- Leave the choice of cross-*-binutils to cross-*-gcc* +- Update to v2.5.0 + ------------------------------------------------------------------- Wed Jan 24 09:29:00 UTC 2018 - rguenther@suse.com diff --git a/cross-epiphany-newlib-devel.spec b/cross-epiphany-newlib-devel.spec index 41c8976..fda7c2c 100644 --- a/cross-epiphany-newlib-devel.spec +++ b/cross-epiphany-newlib-devel.spec @@ -19,7 +19,7 @@ %define cross_arch epiphany Name: cross-%{cross_arch}-newlib-devel -Version: 2.4.0 +Version: 2.5.0 Release: 0 Summary: C library intended for use on %{cross_arch} embedded systems License: BSD-3-Clause and MIT and LGPL-2.0+ and ISC @@ -29,7 +29,6 @@ Source0: ftp://sourceware.org/pub/newlib/newlib-%{version}.tar.gz Patch1: epiphany-fixes.diff -BuildRequires: cross-%{cross_arch}-binutils BuildRequires: cross-%{cross_arch}-gcc%{gcc_version}-bootstrap %if %{suse_version} > 1220 BuildRequires: makeinfo @@ -43,10 +42,10 @@ conglomeration of several library parts, all under free software licenses that make them easily usable on embedded products. %define target %{cross_arch} -%if %{cross_arch} == "epiphany" || %{cross_arch} == "rl78" || %{cross_arch} == "rx" +%if "%{cross_arch}" == "epiphany" || "%{cross_arch}" == "rl78" || "%{cross_arch}" == "rx" %define target %{cross_arch}-elf %endif -%if %{cross_arch} == "spu" +%if "%{cross_arch}" == "spu" %define sysroot /usr/spu %else %define sysroot %{_prefix}/%{target}/sys-root @@ -61,10 +60,8 @@ mkdir build-dir cd build-dir ../configure \ --prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir} --infodir=%{_infodir} \ - --target=%{target} --with-build-sysroot=%{sysroot} \ - CC_FOR_TARGET=%{target}-gcc-%{gcc_version} \ - CXX_FOR_TARGET=%{target}-g++-%{gcc_version} \ - GCC_FOR_TARGET=%{target}-gcc-%{gcc_version} + --target=%{target} \ + --with-build-sysroot=%{sysroot} make %{?_smp_mflags} %install diff --git a/cross-rx-newlib-devel.changes b/cross-rx-newlib-devel.changes index d798ecd..d8567d4 100644 --- a/cross-rx-newlib-devel.changes +++ b/cross-rx-newlib-devel.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sun Mar 11 16:50:55 UTC 2018 - afaerber@suse.de + +- Prepare for %cross_arch with dashes by consistently quoting +- Leave the choice of cross-*-binutils to cross-*-gcc* +- Update to v2.5.0 + ------------------------------------------------------------------- Wed Jan 24 09:29:00 UTC 2018 - rguenther@suse.com diff --git a/cross-rx-newlib-devel.spec b/cross-rx-newlib-devel.spec index 14e48a1..d513e6a 100644 --- a/cross-rx-newlib-devel.spec +++ b/cross-rx-newlib-devel.spec @@ -19,7 +19,7 @@ %define cross_arch rx Name: cross-%{cross_arch}-newlib-devel -Version: 2.4.0 +Version: 2.5.0 Release: 0 Summary: C library intended for use on %{cross_arch} embedded systems License: BSD-3-Clause and MIT and LGPL-2.0+ and ISC @@ -29,7 +29,6 @@ Source0: ftp://sourceware.org/pub/newlib/newlib-%{version}.tar.gz Patch1: epiphany-fixes.diff -BuildRequires: cross-%{cross_arch}-binutils BuildRequires: cross-%{cross_arch}-gcc%{gcc_version}-bootstrap %if %{suse_version} > 1220 BuildRequires: makeinfo @@ -43,10 +42,10 @@ conglomeration of several library parts, all under free software licenses that make them easily usable on embedded products. %define target %{cross_arch} -%if %{cross_arch} == "epiphany" || %{cross_arch} == "rl78" || %{cross_arch} == "rx" +%if "%{cross_arch}" == "epiphany" || "%{cross_arch}" == "rl78" || "%{cross_arch}" == "rx" %define target %{cross_arch}-elf %endif -%if %{cross_arch} == "spu" +%if "%{cross_arch}" == "spu" %define sysroot /usr/spu %else %define sysroot %{_prefix}/%{target}/sys-root @@ -61,10 +60,8 @@ mkdir build-dir cd build-dir ../configure \ --prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir} --infodir=%{_infodir} \ - --target=%{target} --with-build-sysroot=%{sysroot} \ - CC_FOR_TARGET=%{target}-gcc-%{gcc_version} \ - CXX_FOR_TARGET=%{target}-g++-%{gcc_version} \ - GCC_FOR_TARGET=%{target}-gcc-%{gcc_version} + --target=%{target} \ + --with-build-sysroot=%{sysroot} make %{?_smp_mflags} %install diff --git a/newlib-2.4.0.tar.gz b/newlib-2.4.0.tar.gz deleted file mode 100644 index 04d9cc6..0000000 --- a/newlib-2.4.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:545b3d235e350d2c61491df8b9f775b1b972f191380db8f52ec0b1c829c52706 -size 17574364 diff --git a/newlib-2.5.0.tar.gz b/newlib-2.5.0.tar.gz new file mode 100644 index 0000000..188afd8 --- /dev/null +++ b/newlib-2.5.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5b76a9b97c9464209772ed25ce55181a7bb144a66e5669aaec945aa64da3189b +size 17912392 diff --git a/newlib.changes b/newlib.changes index d798ecd..d8567d4 100644 --- a/newlib.changes +++ b/newlib.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sun Mar 11 16:50:55 UTC 2018 - afaerber@suse.de + +- Prepare for %cross_arch with dashes by consistently quoting +- Leave the choice of cross-*-binutils to cross-*-gcc* +- Update to v2.5.0 + ------------------------------------------------------------------- Wed Jan 24 09:29:00 UTC 2018 - rguenther@suse.com diff --git a/newlib.spec b/newlib.spec index 47b6557..e59b6b9 100644 --- a/newlib.spec +++ b/newlib.spec @@ -17,7 +17,7 @@ Name: newlib -Version: 2.4.0 +Version: 2.5.0 Release: 0 Summary: C library intended for use on embedded systems License: BSD-3-Clause and MIT and LGPL-2.0+ and ISC diff --git a/newlib.spec.in b/newlib.spec.in index dbbf321..15ea352 100644 --- a/newlib.spec.in +++ b/newlib.spec.in @@ -1,6 +1,6 @@ Name: cross-%{cross_arch}-newlib-devel -Version: 2.4.0 +Version: 2.5.0 Release: 0 Summary: C library intended for use on %{cross_arch} embedded systems Group: Development/Tools @@ -10,7 +10,6 @@ Source0: ftp://sourceware.org/pub/newlib/newlib-%{version}.tar.gz Patch1: epiphany-fixes.diff -BuildRequires: cross-%{cross_arch}-binutils BuildRequires: cross-%{cross_arch}-gcc%{gcc_version}-bootstrap %if %{suse_version} > 1220 BuildRequires: makeinfo @@ -24,10 +23,10 @@ conglomeration of several library parts, all under free software licenses that make them easily usable on embedded products. %define target %{cross_arch} -%if %{cross_arch} == "epiphany" || %{cross_arch} == "rl78" || %{cross_arch} == "rx" +%if "%{cross_arch}" == "epiphany" || "%{cross_arch}" == "rl78" || "%{cross_arch}" == "rx" %define target %{cross_arch}-elf %endif -%if %{cross_arch} == "spu" +%if "%{cross_arch}" == "spu" %define sysroot /usr/spu %else %define sysroot %{_prefix}/%{target}/sys-root @@ -42,10 +41,8 @@ mkdir build-dir cd build-dir ../configure \ --prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir} --infodir=%{_infodir} \ - --target=%{target} --with-build-sysroot=%{sysroot} \ - CC_FOR_TARGET=%{target}-gcc-%{gcc_version} \ - CXX_FOR_TARGET=%{target}-g++-%{gcc_version} \ - GCC_FOR_TARGET=%{target}-gcc-%{gcc_version} + --target=%{target} \ + --with-build-sysroot=%{sysroot} make %{?_smp_mflags} %install