diff --git a/gdb/.md5sum b/gdb/.md5sum index afeb7aa86..b2ca02e1b 100644 --- a/gdb/.md5sum +++ b/gdb/.md5sum @@ -1 +1,2 @@ c9da266b884fb8fa54df786dfaadbc7a gdb-6.8.tar.bz2 +5df490c58764ef07175fc45a6691da83 gdb.diff diff --git a/gdb/Pkgfile b/gdb/Pkgfile index b15411f01..cdb106c87 100644 --- a/gdb/Pkgfile +++ b/gdb/Pkgfile @@ -5,11 +5,15 @@ name=gdb version=6.8 -release=1 -source=(ftp://ftp.gnu.org/gnu/$name/$name-$version.tar.bz2) +release=2 +source=(ftp://ftp.gnu.org/gnu/$name/$name-$version.tar.bz2 gdb.diff) build() { cd $name-$version + + # fix the build with gcc 4.4: + patch -p1 -i $SRC/gdb.diff + ./configure --prefix=/usr make make DESTDIR=$PKG install diff --git a/gdb/gdb.diff b/gdb/gdb.diff new file mode 100644 index 000000000..87d237c42 --- /dev/null +++ b/gdb/gdb.diff @@ -0,0 +1,12 @@ +diff -aur gdb-6.8.orig/gdb/eval.c gdb-6.8/gdb/eval.c +--- gdb-6.8.orig/gdb/eval.c 2008-02-04 01:23:04.000000000 +0100 ++++ gdb-6.8/gdb/eval.c 2009-06-11 16:05:46.018550469 +0200 +@@ -1647,6 +1647,8 @@ + struct type *tmp_type; + int offset_item; /* The array offset where the item lives */ + ++ memset (subscript_array, 0, sizeof (subscript_array)); ++ + if (nargs > MAX_FORTRAN_DIMS) + error (_("Too many subscripts for F77 (%d Max)"), MAX_FORTRAN_DIMS); +