From 599f44ac7eaaf4cb5034fdcf9176ab4afe8edb90 Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Sat, 23 Sep 2023 21:04:12 -0400 Subject: [PATCH] avr-gdb: rebuild for Python 3.12 --- srcpkgs/avr-gdb/patches/constness.patch | 11 +++++++++++ srcpkgs/avr-gdb/template | 5 +++-- 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/avr-gdb/patches/constness.patch diff --git a/srcpkgs/avr-gdb/patches/constness.patch b/srcpkgs/avr-gdb/patches/constness.patch new file mode 100644 index 00000000000..cc7fe451e46 --- /dev/null +++ b/srcpkgs/avr-gdb/patches/constness.patch @@ -0,0 +1,11 @@ +--- ./gdb/completer.c.orig 2023-09-29 16:16:06.344069450 -0400 ++++ ./gdb/completer.c 2023-09-29 16:16:21.522162391 -0400 +@@ -2011,7 +2011,7 @@ + rl_basic_quote_characters = NULL; + } + +- return rl_completer_word_break_characters; ++ return (char *)rl_completer_word_break_characters; + } + + char * diff --git a/srcpkgs/avr-gdb/template b/srcpkgs/avr-gdb/template index 8171099fa96..43799838c10 100644 --- a/srcpkgs/avr-gdb/template +++ b/srcpkgs/avr-gdb/template @@ -1,12 +1,13 @@ # Template file for 'avr-gdb' pkgname=avr-gdb version=12.1 -revision=1 +revision=2 build_style=gnu-configure configure_args="--target=avr --disable-werror --disable-nls --with-system-readline --with-system-gdbinit=/etc/gdb/gdbinit --with-system-zlib $(vopt_with guile) $(vopt_if python --with-python=/usr/bin/python3)" -hostmakedepends="pkg-config texinfo $(vopt_if python python3-devel) $(vopt_if guile guile)" +hostmakedepends="pkg-config texinfo $(vopt_if guile guile) + $(vopt_if python "python3-setuptools python3-devel")" makedepends="expat-devel ncurses-devel readline-devel zlib-devel gmp-devel $(vopt_if guile guile-devel) $(vopt_if python 'gettext-devel python3-devel')" depends="gdb-common"