Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package newlib for openSUSE:Factory checked in at 2021-02-23 20:21:23 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/newlib (Old) and /work/SRC/openSUSE:Factory/.newlib.new.2378 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "newlib" Tue Feb 23 20:21:23 2021 rev:9 rq:874423 version:3.3.0 Changes: -------- --- /work/SRC/openSUSE:Factory/newlib/newlib.changes 2020-12-07 15:00:18.748710561 +0100 +++ /work/SRC/openSUSE:Factory/.newlib.new.2378/newlib.changes 2021-02-23 20:23:01.803794959 +0100 @@ -1,0 +2,9 @@ +Tue Dec 8 10:46:24 UTC 2020 - Stefan Br??ns <stefan.bru...@rwth-aachen.de> + +- Use _multibuild for building all flavors. +- Remove unused makeinfo build dependency. +- Omit all build steps from base flavor, it just packages + various documentation files. +- Remove deprecated stuff from spec file. + +------------------------------------------------------------------- Old: ---- cross-arm-none-newlib-devel.changes cross-arm-none-newlib-devel.spec cross-epiphany-newlib-devel.changes cross-epiphany-newlib-devel.spec cross-riscv64-newlib-devel.changes cross-riscv64-newlib-devel.spec cross-rx-newlib-devel.changes cross-rx-newlib-devel.spec newlib.spec.in New: ---- _multibuild ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ newlib.spec ++++++ --- /var/tmp/diff_new_pack.X3U6KO/_old 2021-02-23 20:23:02.731795779 +0100 +++ /var/tmp/diff_new_pack.X3U6KO/_new 2021-02-23 20:23:02.731795779 +0100 @@ -16,21 +16,49 @@ # -Name: newlib +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "" +%define pname newlib +%else +%define cross_arch %{flavor} +%define pname cross-%{cross_arch}-newlib-devel +%endif + +%if "%{flavor}" == "riscv64" +%define gcc_cross_arch %{cross_arch}-elf +%define target %{cross_arch}-elf +%else +%define gcc_cross_arch %{cross_arch} +%define target %{cross_arch} +%endif + +%if "%{cross_arch}" == "epiphany" || "%{cross_arch}" == "riscv32" || "%{cross_arch}" == "rl78" || "%{cross_arch}" == "rx" +%define target %{cross_arch}-elf +%endif +%if "%{cross_arch}" == "arm-none" +%define target %{cross_arch}-eabi +%endif +%if "%{cross_arch}" == "spu" +%define sysroot /usr/spu +%else +%define sysroot %{_prefix}/%{target}/sys-root +%endif + +Name: %{pname} Version: 3.3.0 Release: 0 Summary: C library intended for use on embedded systems License: BSD-3-Clause AND MIT AND LGPL-2.0-or-later AND ISC -Group: Development/Tools +Group: Development/Libraries/Cross URL: https://sourceware.org/newlib/ Source0: ftp://sourceware.org/pub/newlib/newlib-%{version}.tar.gz - Patch1: epiphany-fixes.diff -%if %{suse_version} > 1220 -BuildRequires: makeinfo +%if "%{flavor}" == "" +BuildArch: noarch %else -BuildRequires: texinfo +BuildRequires: cross-%{gcc_cross_arch}-gcc%{gcc_version}-bootstrap +BuildRequires: fdupes %endif %description @@ -39,16 +67,19 @@ that make them easily usable on embedded products. %prep -%setup -q +%setup -q -n newlib-%{version} %patch1 -p1 %build +%if "%{flavor}" != "" mkdir build-dir cd build-dir # On %%ix86 hosts newlib is documented to be buildable as shared library via --with-newlib, # but it fails to build for us and we don't need a host library at the moment. ../configure \ --prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir} --infodir=%{_infodir} \ + --target=%{target} \ + --with-build-sysroot=%{sysroot} %ifarch %ix86 %if 0 --with-newlib \ @@ -56,15 +87,30 @@ %endif CFLAGS="%{optflags}" -make %{?_smp_mflags} +%make_build +%endif %install +%if "%{flavor}" != "" +# All binaries built are for the target architecture - don't damage them. +export NO_BRP_STRIP_DEBUG=true +export NO_DEBUGINFO_STRIP_DEBUG=true +%define __debug_install_post %{nil} +: >debugfiles.list +: >debugsourcefiles.list +: >debugsources.list + cd build-dir make install DESTDIR=%{buildroot} +%fdupes %{buildroot} +%endif %files -%defattr(-,root,root,-) -%doc COPYING.NEWLIB COPYING.LIBGLOSS COPYING COPYING.LIB COPYING3 COPYING3.LIB +%if "%{flavor}" == "" +%license COPYING.NEWLIB COPYING.LIBGLOSS COPYING COPYING.LIB COPYING3 COPYING3.LIB %doc newlib/README newlib/NEWS +%else +%{_prefix}/%{target}/ +%endif %changelog ++++++ _multibuild ++++++ <multibuild> <package>arm-none</package> <package>epiphany</package> <package>riscv64</package> <package>rx</package> </multibuild> ++++++ pre_checkin.sh ++++++ --- /var/tmp/diff_new_pack.X3U6KO/_old 2021-02-23 20:23:02.783795825 +0100 +++ /var/tmp/diff_new_pack.X3U6KO/_new 2021-02-23 20:23:02.783795825 +0100 @@ -1,13 +1,3 @@ #!/bin/bash -rm -f cross*.spec cross*.changes - -for arch in arm-none epiphany riscv64 rx; do - pkgname=cross-$arch-newlib-devel - outfile=$pkgname.spec - echo "%define cross_arch $arch" > $outfile - cat newlib.spec.in >> $outfile - cp newlib.changes $pkgname.changes -done - osc service localrun format_spec_file