[arm-none-eabi-newlib/f19] enable libnosys (#1060567,#1058722)
Michal Hlavinka
mhlavink at fedoraproject.org
Tue Feb 25 16:47:48 UTC 2014
commit 88472e1527188669859b3d21e9222c03494238e1
Author: Michal Hlavinka <mhlavink at redhat.com>
Date: Tue Feb 25 17:48:35 2014 +0100
enable libnosys (#1060567,#1058722)
arm-none-eabi-newlib-2.1.0-fixpath.patch | 24 ++++++++++++++++++++++++
arm-none-eabi-newlib.spec | 12 +++++++++---
2 files changed, 33 insertions(+), 3 deletions(-)
---
diff --git a/arm-none-eabi-newlib-2.1.0-fixpath.patch b/arm-none-eabi-newlib-2.1.0-fixpath.patch
new file mode 100644
index 0000000..3ba4f5a
--- /dev/null
+++ b/arm-none-eabi-newlib-2.1.0-fixpath.patch
@@ -0,0 +1,24 @@
+diff -up newlib-2.1.0/libgloss/arm/configure.fixpath newlib-2.1.0/libgloss/arm/configure
+--- newlib-2.1.0/libgloss/arm/configure.fixpath 2014-02-25 16:47:53.211271910 +0100
++++ newlib-2.1.0/libgloss/arm/configure 2014-02-25 16:48:23.914518596 +0100
+@@ -2551,7 +2551,7 @@ esac
+
+
+
+-host_makefile_frag=${srcdir}/../config/default.mh
++host_makefile_frag=`cd $srcdir/../config;pwd`/default.mh
+
+ host_makefile_frag_path=$host_makefile_frag
+
+diff -up newlib-2.1.0/libgloss/arm/configure.in.fixpath newlib-2.1.0/libgloss/arm/configure.in
+--- newlib-2.1.0/libgloss/arm/configure.in.fixpath 2014-02-25 16:47:46.667219349 +0100
++++ newlib-2.1.0/libgloss/arm/configure.in 2014-02-25 16:49:00.752814447 +0100
+@@ -59,7 +59,7 @@ esac
+
+ AC_SUBST(objtype)
+
+-host_makefile_frag=${srcdir}/../config/default.mh
++host_makefile_frag=`cd $srcdir/../config;pwd`/default.mh
+
+ dnl We have to assign the same value to other variables because autoconf
+ dnl doesn't provide a mechanism to substitute a replacement keyword with
diff --git a/arm-none-eabi-newlib.spec b/arm-none-eabi-newlib.spec
index 05116cf..9096c0b 100644
--- a/arm-none-eabi-newlib.spec
+++ b/arm-none-eabi-newlib.spec
@@ -9,7 +9,7 @@
Name: %{target}-newlib
Version: 2.1.0
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: C library intended for use on %{target} embedded systems
Group: Development/Tools
# For a breakdown of the licensing, see NEWLIB-LICENSING
@@ -18,6 +18,9 @@ URL: http://sourceware.org/newlib/
Source0: ftp://sourceware.org/pub/newlib/newlib-%{version}.tar.gz
Source1: README.fedora
Source2: NEWLIB-LICENSING
+
+# from upstream, for newlib <= 2.1.0, rhbz#1058722
+Patch1: arm-none-eabi-newlib-2.1.0-fixpath.patch
BuildRequires: %{target}-binutils %{target}-gcc %{target}-gcc-c++ texinfo texinfo-tex
BuildArch: noarch
@@ -28,7 +31,7 @@ that make them easily usable on embedded products.
%prep
%setup -q -n newlib-%{version}
-rm -rf libgloss
+%patch1 -p1 -b .fixpath
cp %{SOURCE1} .
@@ -37,7 +40,7 @@ CFLAGS="-g -O2" ./configure --prefix=%{_prefix} \
--libdir=%{_libdir} --mandir=%{_mandir} --infodir=%{_infodir} \
--target=%{target} --enable-interwork --enable-multilib \
--with-gnu-as --with-gnu-ld --disable-nls --enable-newlib-io-long-long \
- --enable-newlib-register-fini --disable-newlib-supplied-syscalls --disable-libgloss
+ --enable-newlib-register-fini --disable-newlib-supplied-syscalls
make %{?_smp_mflags} || make
@@ -59,5 +62,8 @@ rm -r $RPM_BUILD_ROOT%{_infodir}
%changelog
+* Tue Feb 25 2014 Michal Hlavinka <mhlavink at redhat.com> - 2.1.0-2
+- enable libnosys (#1060567,#1058722)
+
* Wed Jan 08 2014 Michal Hlavinka <mhlavink at redhat.com> - 2.1.0-1
- initial import
More information about the scm-commits
mailing list