Mailinglist Archive: opensuse-commit (1945 mails)

< Previous Next >
commit cross-spu-newlib
  • From: root@xxxxxxxxxxxxxxx (h_root)
  • Date: Mon, 03 Nov 2008 11:59:10 +0100
  • Message-id: <20081103105910.725C1678161@xxxxxxxxxxxxxxx>

Hello community,

here is the log from the commit of package cross-spu-newlib
checked in at Mon Nov 3 11:59:10 CET 2008.


--------
--- cross-spu-newlib/cross-spu-newlib-headers.changes 2008-10-14
08:46:00.000000000 +0200
+++
/mounts/work_src_done/STABLE/cross-spu-newlib/cross-spu-newlib-headers.changes
2008-10-31 08:52:39.000000000 +0100
@@ -1,0 +2,6 @@
+Thu Oct 30 16:51:40 CET 2008 - sassmann@xxxxxxx
+
+- copy header files manually, instead of make and delete
+ unnecesarry files, to avoid unwanted BuildRequires
+
+-------------------------------------------------------------------

calling whatdependson for head-i586


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ cross-spu-newlib-headers.spec ++++++
--- /var/tmp/diff_new_pack.k30672/_old 2008-11-03 11:58:50.000000000 +0100
+++ /var/tmp/diff_new_pack.k30672/_new 2008-11-03 11:58:50.000000000 +0100
@@ -20,14 +20,12 @@
Name: cross-spu-newlib-headers
Summary: GNU newlib C library
Version: 1.17.0.2008_09_12
-Release: 2
+Release: 3
%define cvs_version 2008-09-12
License: GPL v2 or later
Group: Development/Libraries/Cross
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
-BuildRequires: cross-spu-binutils cross-spu-gcc-static texinfo
-Requires: cross-spu-newlib-headers
# When building the cross-toolchain, reset prefix directory and use sysroot
%define _prefix /opt/cross
Source0: newlib-%{cvs_version}.tar.bz2
@@ -44,46 +42,64 @@
%patch0 -p1

%build
-export PATH=/opt/cross/bin:$PATH
-%define TARGET_ARCH spu
-mkdir obj-%{TARGET_ARCH}
-cd obj-%{TARGET_ARCH}
-OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/-fno-rtti//g' -e
's/-fno-exceptions//g'`
-SPU_OPT_FLAGS="-O2 -g -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
-CC="gcc $OPT_FLAGS"
- CC="$CC" \
- CFLAGS="$SPU_OPT_FLAGS" \
- CXXFLAGS="$SPU_OPT_FLAGS" \
- XCFLAGS="$OPT_FLAGS" \
- TCFLAGS="$SPU_OPT_FLAGS" \
- ../configure \
- --prefix=%{_prefix} \
- --disable-shared \
- --disable-threads \
- --disable-checking \
- --with-headers \
- --disable-multilib \
- --disable-nls \
- --target=%{TARGET_ARCH}
-make %{?jobs:-j%jobs}
+#need to run configure because it generates newlib.h
+cd newlib
+./configure
+cd ..

%install
-export PATH=/opt/cross/bin:$PATH
-make -C obj-%{TARGET_ARCH} DESTDIR=$RPM_BUILD_ROOT install
-#
-rm -rf $RPM_BUILD_ROOT%{_prefix}/share
-rm -rf $RPM_BUILD_ROOT%{_prefix}/info
-rm -rf $RPM_BUILD_ROOT%{_prefix}/%{TARGET_ARCH}/lib
-rm -rf $RPM_BUILD_ROOT%{_prefix}/%{TARGET_ARCH}/sys-root/usr
+mkdir -p $RPM_BUILD_ROOT%{_prefix}/spu/include/machine
+mkdir -p $RPM_BUILD_ROOT%{_prefix}/spu/include/sys
+for i in newlib/libc/include/*.h; do \
+ if [ -f $i ]; then \
+ cp $i ${RPM_BUILD_ROOT}%{_prefix}/spu/include/`basename $i`; \
+ else true; fi ; \
+done
+for i in newlib/libc/include/machine/*.h; do \
+ if [ -f $i ]; then \
+ cp $i ${RPM_BUILD_ROOT}%{_prefix}/spu/include/machine/`basename $i`; \
+ else true; fi ; \
+done
+for i in newlib/libc/include/sys/*.h; do \
+ if [ -f $i ]; then \
+ cp $i ${RPM_BUILD_ROOT}%{_prefix}/spu/include/sys/`basename $i`; \
+ else true; fi ; \
+done
+for i in newlib/libc/machine/spu/sys/*.h; do \
+ if [ -f $i ]; then \
+ cp $i ${RPM_BUILD_ROOT}%{_prefix}/spu/include/sys/`basename $i`; \
+ else true; fi ; \
+done
+for i in newlib/libc/machine/spu/include/*.h; do \
+ if [ -f $i ]; then \
+ cp $i ${RPM_BUILD_ROOT}%{_prefix}/spu/include/`basename $i`; \
+ else true; fi ; \
+done
+for i in newlib/libc/machine/spu/machine/*.h; do \
+ if [ -f $i ]; then \
+ cp $i ${RPM_BUILD_ROOT}%{_prefix}/spu/include/machine/`basename $i`; \
+ else true; fi ; \
+done
+cp newlib/newlib.h $RPM_BUILD_ROOT%{_prefix}/spu/include/newlib.h

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
-%{_prefix}/%{TARGET_ARCH}/include
+%dir %{_prefix}
+%dir %{_prefix}/spu
+%dir %{_prefix}/spu/include
+%dir %{_prefix}/spu/include/machine
+%dir %{_prefix}/spu/include/sys
+%{_prefix}/spu/include/*.h
+%{_prefix}/spu/include/machine/*.h
+%{_prefix}/spu/include/sys/*.h

%changelog
+* Thu Oct 30 2008 sassmann@xxxxxxx
+- copy header files manually, instead of make and delete
+ unnecesarry files, to avoid unwanted BuildRequires
* Tue Oct 14 2008 sassmann@xxxxxxx
- added missing include (newlib.fix-missing-include.patch)
* Wed Oct 08 2008 sassmann@xxxxxxx

++++++ cross-spu-newlib.spec ++++++
--- /var/tmp/diff_new_pack.k30672/_old 2008-11-03 11:58:50.000000000 +0100
+++ /var/tmp/diff_new_pack.k30672/_new 2008-11-03 11:58:50.000000000 +0100
@@ -20,7 +20,7 @@
Name: cross-spu-newlib
Summary: GNU newlib C library
Version: 1.17.0.2008_09_12
-Release: 2
+Release: 3
%define cvs_version 2008-09-12
License: GPL v2 or later
Group: Development/Libraries/Cross


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread