public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-embedded/avarice/files/, dev-embedded/avarice/
@ 2023-09-03  8:50 Viorel Munteanu
  0 siblings, 0 replies; only message in thread
From: Viorel Munteanu @ 2023-09-03  8:50 UTC (permalink / raw
  To: gentoo-commits

commit:     683bc1afeaa098aad5b5f9351dbc6beb7662fb3b
Author:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
AuthorDate: Sun Sep  3 08:48:44 2023 +0000
Commit:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Sun Sep  3 08:50:45 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=683bc1af

dev-embedded/avarice: fix implicit function declarations in configure logs

Patch configure.ac for clang 16.
Update EAPI 7 -> 8.

Closes: https://bugs.gentoo.org/900687
Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>

 dev-embedded/avarice/avarice-2.14-r1.ebuild        | 36 ++++++++++++++++++++++
 ...arice-2.14-implicit-function-declarations.patch | 24 +++++++++++++++
 2 files changed, 60 insertions(+)

diff --git a/dev-embedded/avarice/avarice-2.14-r1.ebuild b/dev-embedded/avarice/avarice-2.14-r1.ebuild
new file mode 100644
index 000000000000..43beb06d967d
--- /dev/null
+++ b/dev-embedded/avarice/avarice-2.14-r1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools flag-o-matic
+
+DESCRIPTION="Interface for GDB to Atmel AVR JTAGICE in circuit emulator"
+HOMEPAGE="https://avarice.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+PATCHES=(
+	"${FILESDIR}"/${P}-broken-__unused-macro.patch
+	"${FILESDIR}"/${P}-implicit-function-declarations.patch
+)
+
+src_prepare() {
+	default
+	eautoreconf
+}
+
+src_configure() {
+	# bug #788295
+	append-cxxflags -std=c++14
+
+	default
+}
+
+src_install() {
+	default
+	dodoc doc/*.txt
+}

diff --git a/dev-embedded/avarice/files/avarice-2.14-implicit-function-declarations.patch b/dev-embedded/avarice/files/avarice-2.14-implicit-function-declarations.patch
new file mode 100644
index 000000000000..1d266b0bb113
--- /dev/null
+++ b/dev-embedded/avarice/files/avarice-2.14-implicit-function-declarations.patch
@@ -0,0 +1,24 @@
+Bug: https://bugs.gentoo.org/900687
+Upstream patch: https://sourceforge.net/p/avarice/patches/41/
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -97,7 +97,7 @@
+ 
+ # Checks for header files.
+ AC_HEADER_STDC
+-AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h termios.h unistd.h])
++AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/stat.h sys/time.h termios.h unistd.h])
+ 
+ AC_CHECK_HEADERS([bfd.h], , [ac_found_bfd_h=no])
+ 
+@@ -142,6 +142,9 @@
+ AC_MSG_CHECKING([whether libbfd requires libdl])
+ AC_LINK_IFELSE(
+   [AC_LANG_SOURCE([#include <bfd.h>
++   #ifndef bfd_get_section_name
++   extern bfd_get_section_name(bfd *abfd, const char *name);
++   #endif
+   bfd *file;
+   int main(void) {
+     bfd_init();


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2023-09-03  8:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-03  8:50 [gentoo-commits] repo/gentoo:master commit in: dev-embedded/avarice/files/, dev-embedded/avarice/ Viorel Munteanu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox