diff --git a/devel/avr-gdb/Makefile b/devel/avr-gdb/Makefile index 7dd2ad1c831d..c424a93e66cc 100644 --- a/devel/avr-gdb/Makefile +++ b/devel/avr-gdb/Makefile @@ -1,30 +1,35 @@ PORTNAME= gdb -PORTVERSION= 7.3.1 -PORTREVISION= 6 +PORTVERSION= 17.2 CATEGORIES= devel MASTER_SITES= GNU PKGNAMEPREFIX= avr- MAINTAINER= joerg@FreeBSD.org COMMENT= GNU GDB for the AVR target WWW= https://www.gnu.org/software/gdb/ LICENSE= GPLv3 LIB_DEPENDS= libexpat.so:textproc/expat2 +LIB_DEPENDS+= libxxhash.so:devel/xxhash +LIB_DEPENDS+= libzstd.so:archivers/zstd +LIB_DEPENDS+= libmpfr.so:math/mpfr +LIB_DEPENDS+= libgmp.so:math/gmp -USES= cpe gmake ncurses tar:bzip2 iconv +USES= cpe gmake ncurses tar:xz iconv CPE_VENDOR= gnu GNU_CONFIGURE= yes CONFIGURE_ARGS= --target=avr --program-prefix=avr --disable-nls \ - --disable-werror + --disable-werror \ + --with-gmp=${LOCALBASE} \ + --with-mpfr=${LOCALBASE} pre-configure: cd ${WRKSRC} ; ${RM} -r dejagnu expect tcl texinfo do-install: ${INSTALL_PROGRAM} ${WRKSRC}/gdb/gdb \ ${STAGEDIR}${PREFIX}/bin/${PKGNAMEPREFIX}${PORTNAME} .include diff --git a/devel/avr-gdb/distinfo b/devel/avr-gdb/distinfo index 29f873181f39..4cae771b9197 100644 --- a/devel/avr-gdb/distinfo +++ b/devel/avr-gdb/distinfo @@ -1,2 +1,3 @@ -SHA256 (gdb-7.3.1.tar.bz2) = 6d7bff716fde98d03866a1b747c0929ee7dba49bca13e01d975e0b0fa9b33a28 -SIZE (gdb-7.3.1.tar.bz2) = 19500995 +TIMESTAMP = 1781848043 +SHA256 (gdb-17.2.tar.xz) = 1c036c0d72e4b3d1fb5c94c88632add6f9d76f4d7c4d2ea793c12a9f19a3228c +SIZE (gdb-17.2.tar.xz) = 24658624 diff --git a/devel/avr-gdb/files/patch-bfd-bfdio.c b/devel/avr-gdb/files/patch-bfd-bfdio.c deleted file mode 100644 index ee72b11fb6a6..000000000000 --- a/devel/avr-gdb/files/patch-bfd-bfdio.c +++ /dev/null @@ -1,11 +0,0 @@ ---- bfd/bfdio.c.orig -+++ bfd/bfdio.c -@@ -577,7 +577,7 @@ - { - struct bfd_in_memory *bim = (struct bfd_in_memory *) abfd->iostream; - -- memset (statbuf, 0, sizeof (statbuf)); -+ memset (statbuf, 0, sizeof (*statbuf)); - statbuf->st_size = bim->size; - - return 0; diff --git a/devel/avr-gdb/files/patch-bfd-elflink.c b/devel/avr-gdb/files/patch-bfd-elflink.c deleted file mode 100644 index b888ff54b159..000000000000 --- a/devel/avr-gdb/files/patch-bfd-elflink.c +++ /dev/null @@ -1,11 +0,0 @@ ---- bfd/elflink.c.orig -+++ bfd/elflink.c -@@ -12456,7 +12456,7 @@ - abfd, sec); - else if (sec->size != 0) - { -- bfd_byte *sec_contents, *l_sec_contents; -+ bfd_byte *sec_contents = NULL, *l_sec_contents = NULL; - - if (!bfd_malloc_and_get_section (abfd, sec, &sec_contents)) - (*_bfd_error_handler) diff --git a/devel/avr-gdb/files/patch-bug13519 b/devel/avr-gdb/files/patch-bug13519 index acd844341c56..7fbbef686208 100644 --- a/devel/avr-gdb/files/patch-bug13519 +++ b/devel/avr-gdb/files/patch-bug13519 @@ -1,13 +1,13 @@ ---- gdb/cli/cli-cmds.c~ 2010-07-27 22:14:24.000000000 +0200 -+++ gdb/cli/cli-cmds.c 2011-12-19 14:42:14.000000000 +0100 -@@ -1195,6 +1195,10 @@ +--- gdb/cli/cli-cmds.c~ 2026-06-19 08:01:36.144822000 +0200 ++++ gdb/cli/cli-cmds.c 2026-06-19 08:03:03.972471000 +0200 +@@ -1748,6 +1748,10 @@ high += low; } +// XXX hack to work around bug # 13519 +// http://sourceware.org/bugzilla/show_bug.cgi?id=13519 + low &= 0x800000 - 1; + high &= 0x800000 - 1; - print_disassembly (gdbarch, name, low, high, flags); + print_disassembly (gdbarch, name, low, high, block, flags); }