Dnia czwartek 22 stycznia 2009, Przemyslaw Iskra napisał:
> On Wed, Jan 21, 2009 at 06:12:04PM +0100, Remigiusz Enleth Marcinkiewicz 
wrote:
> > Update do tej samej wersji, co normalne gdb (tyle, że snap z wczoraj,
> > 20090101 odparował z serwera sourceware), buduje się i działa na Th,
> > przetestowane z Atmegą16, donglem AVR ICE mkI i proxy JTAG AVaRICE 2.6.
> > To, co jest teraz w cvs jest tak przeterminowane, że nawet budować się
> > nie chce z nowym libc.
>
> $ cvs diff -u crossavr-gdb.spec

Aj, aj, aj, durny spec, nawinął się pod kursor zamiast diffa... Oczywiście, 
jest i diff.

-- 
Remigiusz "Enleth" Marcinkiewicz, [email protected]
WWW http://enleth.com http://heroes.net.pl
JID [email protected]
Index: crossavr-gdb.spec
===================================================================
RCS file: /cvsroot/SPECS/crossavr-gdb.spec,v
retrieving revision 1.15
diff -u -r1.15 crossavr-gdb.spec
--- crossavr-gdb.spec	8 Apr 2008 08:24:51 -0000	1.15
+++ crossavr-gdb.spec	21 Jan 2009 12:13:11 -0000
@@ -10,23 +10,29 @@
 Summary(uk.UTF-8):	Символьний відладчик для С та інших мов
 Summary(zh_CN.UTF-8):	[开发]C和其他语言的调试器
 Summary(zh_TW.UTF-8):	[.-A開發]C和.$)B其.-A他語.$)B言的調試器
+%define	snap	20090120
 Name:		crossavr-gdb
-Version:	6.7.1
-Release:	1
-License:	GPL
+Version:	6.8.50
+Release:	0.%{snap}.1
+License:	GPL v3+
 Group:		Development/Debuggers
-Source0:	http://ftp.gnu.org/gnu/gdb/gdb-%{version}.tar.bz2
+#Source0:	http://ftp.gnu.org/gnu/gdb/gdb-%{version}.tar.bz2
+Source0:	ftp://sourceware.org/pub/gdb/snapshots/current/gdb-%{version}.%{snap}.tar.bz2
 # Source0-md5:	30a6bf36eded4ae5a152d7d71b86dc14
 Patch0:		gdb-readline.patch
 Patch1:		gdb-info.patch
 Patch2:		gdb-passflags.patch
-BuildRequires:	XFree86-devel
+Patch4:		gdb-gdbinit-stat.patch
+Patch5:		gdb-pretty-print-by-default.patch
+Patch6:		gdb-absolute-gnu_debuglink-path.patch
+URL:		http://www.gnu.org/software/gdb/
 BuildRequires:	autoconf >= 2.53
 BuildRequires:	automake
+BuildRequires:	bison
+BuildRequires:	flex
 BuildRequires:	libtool
 BuildRequires:	ncurses-devel >= 5.2
-BuildRequires:	readline-devel >= 4.2
-BuildRequires:	texinfo
+BuildRequires:	readline-devel >= 4.3
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define		target		avr
@@ -84,44 +90,43 @@
 компіляторами GNU C (gcc, egcs, pgcc).
 
 %prep
-%setup -q -n gdb-%{version}
+%setup -q -n gdb-%{version}.%{snap}
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch4 -p0
+%patch5 -p1
+%patch6 -p1
 
 %build
 for dir in `find gdb/ -name 'configure.in'`; do
 	dir=$(dirname "$dir")
 	olddir=$(pwd)
 	cd $dir
+	rm -f aclocal.m4
 	%{__aclocal}
 	%{__autoconf}
 	cd $olddir
 done
 cp -f /usr/share/automake/config.* .
-# !! Don't enable shared here !!
-# This will cause serious problems --misiek
-%configure2_13 \
-	--target=%{target} \
+# don't --enable-shared here, there would be libs version mismatch with binutils
+%configure \
+    --target=%{target} \
+	--disable-gdbtk \
 	--disable-shared \
-	--enable-nls \
-	--without-included-gettext \
-	--without-included-regex \
-	--enable-gdcli \
+	--enable-gdbcli \
 	--enable-gdbmi \
 	--enable-multi-ice \
 	--enable-netrom \
-	--with-cpu=%{_target_cpu} \
+	--enable-nls \
 	--enable-tui \
+	--with-cpu=%{_target_cpu} \
 %ifnarch alpha
-	--with-mmalloc
+	--with-mmalloc \
 %endif
-
-# something is wrong after above - e.g. $exeext=="no" - fix it:
-cd gdb
-%configure \
-	--target=%{target}
-cd ..
+	--without-included-gettext \
+	--without-included-regex \
+	--without-x
 
 %{__make}
 %{__make} info
@@ -139,7 +144,6 @@
 	libdir=$RPM_BUILD_ROOT%{_libdir} \
 	mandir=$RPM_BUILD_ROOT%{_mandir}
 
-bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
pld-devel-pl mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-devel-pl

Odpowiedź listem elektroniczym