diff options
author | rillig <rillig> | 2008-01-06 19:25:09 +0000 |
---|---|---|
committer | rillig <rillig> | 2008-01-06 19:25:09 +0000 |
commit | 6b2030c33f8dfe3e9c4bb0674dd9c33bd3e9be49 (patch) | |
tree | 85fcb621483257553a314f865389a9e8548b5e20 /devel/gdb | |
parent | ac49558bddf0f8293fc5eed52377567b444a4400 (diff) | |
download | pkgsrc-6b2030c33f8dfe3e9c4bb0674dd9c33bd3e9be49.tar.gz |
Some changes take a long time. This package had been broken since two
years. The fix was trivially copied from devel/coconut, which had the
same problem concerning an "invalid lvalue in increment".
Diffstat (limited to 'devel/gdb')
-rw-r--r-- | devel/gdb/Makefile | 6 | ||||
-rw-r--r-- | devel/gdb/distinfo | 3 | ||||
-rw-r--r-- | devel/gdb/patches/patch-ob | 25 |
3 files changed, 29 insertions, 5 deletions
diff --git a/devel/gdb/Makefile b/devel/gdb/Makefile index 69cd5f52802..79ffeb44b23 100644 --- a/devel/gdb/Makefile +++ b/devel/gdb/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.34 2007/07/03 12:41:18 lkundrak Exp $ +# $NetBSD: Makefile,v 1.35 2008/01/06 19:25:09 rillig Exp $ # DISTNAME= gdb-5.3 @@ -10,8 +10,6 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://www.gnu.org/software/gdb/gdb.html COMMENT= Symbolic debugger for multiple language frontends -BROKEN_IN= pkgsrc-2005Q4 pkgsrc-2006Q1 pkgsrc-2006Q4 - NOT_FOR_PLATFORM= Darwin-*-* BROKEN_GETTEXT_DETECTION= yes @@ -22,7 +20,7 @@ USE_TOOLS+= gmake msgfmt REPLACE_LOCALEDIR_PATTERNS+= Make-in INSTALL_TARGET= install install-info TEST_TARGET= check -INFO_FILES= # PLIST.common +INFO_FILES= yes CONFIGURE_ENV+= CONFIG_LDFLAGS=${LDFLAGS:M*:Q} .include "../../mk/bsd.prefs.mk" diff --git a/devel/gdb/distinfo b/devel/gdb/distinfo index 7b4dca98137..eb3eb76e551 100644 --- a/devel/gdb/distinfo +++ b/devel/gdb/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.11 2007/07/11 13:46:38 lkundrak Exp $ +$NetBSD: distinfo,v 1.12 2008/01/06 19:25:09 rillig Exp $ SHA1 (gdb-5.3.tar.gz) = 24a6c9da6e89b1b82b7508f27f94098d989ff662 RMD160 (gdb-5.3.tar.gz) = 3f88dc11115de08708c50c73b10acaf00ed25e96 @@ -21,3 +21,4 @@ SHA1 (patch-ao) = 7a38b55945cf6d9fc422e460d67b88a1e4416e62 SHA1 (patch-ap) = e79d8a70d12098716791e3349d8606d07f8acd47 SHA1 (patch-aq) = f7c356f7c500b84feb141ba693390378e5f71642 SHA1 (patch-as) = 77a2f8eb5e1f076cba915c80113cfe5bf617efaf +SHA1 (patch-ob) = 52c017dfa9f535edc9520144efa8ef04a8020832 diff --git a/devel/gdb/patches/patch-ob b/devel/gdb/patches/patch-ob new file mode 100644 index 00000000000..aa8a6d3c589 --- /dev/null +++ b/devel/gdb/patches/patch-ob @@ -0,0 +1,25 @@ +$NetBSD: patch-ob,v 1.1 2008/01/06 19:25:10 rillig Exp $ + +gcc4 complained: +gdbtypes.c:2961: error: invalid lvalue in increment + +--- include/obstack.h.orig 2001-01-21 00:02:00.000000000 +0000 ++++ include/obstack.h 2007-11-30 21:04:44.000000000 +0000 +@@ -421,7 +421,7 @@ __extension__ \ + ({ struct obstack *__o = (OBSTACK); \ + if (__o->next_free + sizeof (void *) > __o->chunk_limit) \ + _obstack_newchunk (__o, sizeof (void *)); \ +- *((void **)__o->next_free)++ = ((void *)datum); \ ++ *((*(void ***)&(__o->next_free)))++ = ((void *)datum); \ + (void) 0; }) + + # define obstack_int_grow(OBSTACK,datum) \ +@@ -429,7 +429,7 @@ __extension__ \ + ({ struct obstack *__o = (OBSTACK); \ + if (__o->next_free + sizeof (int) > __o->chunk_limit) \ + _obstack_newchunk (__o, sizeof (int)); \ +- *((int *)__o->next_free)++ = ((int)datum); \ ++ *((*(int **)&(__o->next_free)))++ = ((int)datum); \ + (void) 0; }) + + # define obstack_ptr_grow_fast(h,aptr) (*((void **) (h)->next_free)++ = (void *)aptr) |