Hello community,
here is the log from the commit of package avr-libc
checked in at Tue Jan 9 01:24:19 CET 2007.
--------
--- avr-libc/avr-libc.changes 2006-05-30 15:32:40.000000000 +0200
+++ /mounts/work_src_done/STABLE/avr-libc/avr-libc.changes 2007-01-09 01:10:11.447861000 +0100
@@ -1,0 +2,7 @@
+Tue Jan 9 01:08:50 CET 2007 - jw@suse.de
+
+- compiling and linking my logicp application
+ as a simple selftest.
+- avr-64bit datatypes fail on 64bit hosts.
+
+-------------------------------------------------------------------
New:
----
logicp-1.00.tgz
no64bit_int.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ avr-libc.spec ++++++
--- /var/tmp/diff_new_pack.c24331/_old 2007-01-09 01:24:05.000000000 +0100
+++ /var/tmp/diff_new_pack.c24331/_new 2007-01-09 01:24:05.000000000 +0100
@@ -1,7 +1,7 @@
#
# spec file for package avr-libc (Version 1.4.4)
#
-# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
@@ -11,16 +11,18 @@
# norootforbuild
Name: avr-libc
-BuildRequires: cross-avr-gcc doxygen
+BuildRequires: cross-avr-binutils cross-avr-gcc doxygen
Version: 1.4.4
-Release: 1
+Release: 24
URL: http://savannah.nongnu.org/projects/avr-libc
Group: Development/Libraries/C and C++
-License: BSD
+License: BSD License and BSD-like
Summary: The C Runtime Library for AVR Microcontrollers
Source: http://savannah.nongnu.org/download/%{name}/%{name}-%{version}.tar.bz2
Source1: http://savannah.nongnu.org/download/%{name}/%{name}-user-manual-%{version}.tar.bz2
Source2: http://savannah.nongnu.org/download/%{name}/%{name}-manpages-%{version}.tar.bz2
+Source3: logicp-1.00.tgz
+Patch: no64bit_int.patch
Autoreqprov: on
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: cross-avr-binutils cross-avr-gcc avr-programmer
@@ -38,7 +40,18 @@
Theodore A. Roth
%prep
-%setup
+%setup -b 3
+%ifarch x86_64 ia64 ppc64
+# avr-64bit datatypes fail on 64bit host architectures.
+# it is a bug, isn't it? 2007-01-08, jw
+%patch -p1
+%else
+%if "%(/bin/uname -i)" == "x86_64"
+# we come here with BUILD_DIST=i386 on a x86_64 machine.
+# we need to cover this case too, to make the selftests happy.
+%patch -p1
+%endif
+%endif
%build
export CFLAGS="$RPM_OPT_FLAGS"
@@ -61,6 +74,12 @@
tar jxvf %{S:1} -C $RPM_BUILD_ROOT/usr/share/doc/packages
tar jxvf %{S:2} -C $RPM_BUILD_ROOT/$PREFIX/share
ln -s /usr/share/doc/packages/%{name}-user-manual-%{version} $RPM_BUILD_ROOT/$PREFIX/share/doc/%{name}-%{version}/user-manual
+### selftest
+cd ../logicp-1.00
+## how do we tell the linker that crt*.o is at a nonstandard location?
+ln -s $RPM_BUILD_ROOT/opt/cross/avr/lib/crt*.o .
+make CFLAGS="-Wall -g -Os -mint8 -I$RPM_BUILD_ROOT/opt/cross/avr/include/ -L$RPM_BUILD_ROOT/opt/cross/avr/lib"
+ls -l logicp.hex
%clean
rm -rf $RPM_BUILD_ROOT
@@ -75,6 +94,10 @@
%doc /usr/share/doc/packages/*manual*
%changelog -n avr-libc
+* Tue Jan 09 2007 - jw@suse.de
+- compiling and linking my logicp application
+ as a simple selftest.
+- avr-64bit datatypes fail on 64bit hosts.
* Tue May 30 2006 - jw@suse.de
- update to 1.4.4
added /opt/cross/share/man/man3/* and /opt/cross/share/doc symlink
++++++ no64bit_int.patch ++++++
--- avr-libc-1.4.4/include/stdint.h.orig 2007-01-09 00:59:06.000000000 +0100
+++ avr-libc-1.4.4/include/stdint.h 2007-01-09 00:59:57.000000000 +0100
@@ -100,12 +100,12 @@
/** \ingroup avr_stdint
64-bit signed type. */
-typedef signed long long int int64_t;
+// typedef signed long long int int64_t;
/** \ingroup avr_stdint
64-bit unsigned type. */
-typedef unsigned long long int uint64_t;
+// typedef unsigned long long int uint64_t;
/*@}*/
@@ -119,8 +119,8 @@
typedef unsigned int uint16_t __attribute__ ((__mode__ (__HI__)));
typedef int int32_t __attribute__ ((__mode__ (__SI__)));
typedef unsigned int uint32_t __attribute__ ((__mode__ (__SI__)));
-typedef int int64_t __attribute__((__mode__(__DI__)));
-typedef unsigned int uint64_t __attribute__((__mode__(__DI__)));
+// typedef int int64_t __attribute__((__mode__(__DI__)));
+// typedef unsigned int uint64_t __attribute__((__mode__(__DI__)));
#endif /* defined(__DOXYGEN__) */
@@ -179,12 +179,12 @@
/** \ingroup avr_stdint
signed int with at least 64 bits. */
-typedef int64_t int_least64_t;
+// typedef int64_t int_least64_t;
/** \ingroup avr_stdint
unsigned int with at least 64 bits. */
-typedef uint64_t uint_least64_t;
+// typedef uint64_t uint_least64_t;
/*@}*/
@@ -227,12 +227,12 @@
/** \ingroup avr_stdint
fastest signed int with at least 64 bits. */
-typedef int64_t int_fast64_t;
+// typedef int64_t int_fast64_t;
/** \ingroup avr_stdint
fastest unsigned int with at least 64 bits. */
-typedef uint64_t uint_fast64_t;
+// typedef uint64_t uint_fast64_t;
/*@}*/
@@ -246,12 +246,12 @@
/** \ingroup avr_stdint
largest signed int available. */
-typedef int64_t intmax_t;
+// typedef int64_t intmax_t;
/** \ingroup avr_stdint
largest unsigned int available. */
-typedef uint64_t uintmax_t;
+// typedef uint64_t uintmax_t;
/*@}*/
--- avr-libc-1.4.4/include/avr/pgmspace.h.orig 2007-01-09 01:03:49.000000000 +0100
+++ avr-libc-1.4.4/include/avr/pgmspace.h 2007-01-09 01:03:59.000000000 +0100
@@ -210,8 +210,8 @@
typedef uint16_t prog_uint16_t PROGMEM;
typedef int32_t prog_int32_t PROGMEM;
typedef uint32_t prog_uint32_t PROGMEM;
-typedef int64_t prog_int64_t PROGMEM;
-typedef uint64_t prog_uint64_t PROGMEM;
+// typedef int64_t prog_int64_t PROGMEM;
+// typedef uint64_t prog_uint64_t PROGMEM;
#endif /* defined(__DOXYGEN__) */
/* Although in C, we can get away with just using __c, it does not work in
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org