From 3349e2e53a8147dbd85c06f560e5923cf3c0fd3d Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 3 Sep 2023 16:19:06 +0100 Subject: gentoo auto-resync : 03:09:2023 - 16:19:05 --- dev-embedded/avarice/Manifest | 2 ++ dev-embedded/avarice/avarice-2.14-r1.ebuild | 36 ++++++++++++++++++++++ ...arice-2.14-implicit-function-declarations.patch | 24 +++++++++++++++ 3 files changed, 62 insertions(+) create mode 100644 dev-embedded/avarice/avarice-2.14-r1.ebuild create mode 100644 dev-embedded/avarice/files/avarice-2.14-implicit-function-declarations.patch (limited to 'dev-embedded/avarice') diff --git a/dev-embedded/avarice/Manifest b/dev-embedded/avarice/Manifest index 5636bb66636a..e7f15903f234 100644 --- a/dev-embedded/avarice/Manifest +++ b/dev-embedded/avarice/Manifest @@ -1,4 +1,6 @@ AUX avarice-2.14-broken-__unused-macro.patch 962 BLAKE2B 46012b3d49df83fd83397d8c8a0fd225b571dd8d1f568c1c065a6a21afe63053d426c952647bbbee709a4baaa5cc3b983390277c444ab818f506f402097254ea SHA512 5908a26c9cdc4175f14a7b46c413420517b93ebbf0474031bda9d6e07fd799c2e1effb1006de3831b0e5f3bf5aed7d48abd8201b68e0c6c00cf1c8180e1e4b6f +AUX avarice-2.14-implicit-function-declarations.patch 793 BLAKE2B 508c646efa555e82bb884fe767a1f6d3b4860cea486963549d96dc126745e243093b52478b7b2e98d6c63116d5a61e2b9561315ae679457f544a927f55359ccb SHA512 f6edfc774c7c3322e54d4dcf3618fecd4664eb9a58a34261181bc876d60ab6e1bc0760b441a969ff7032dab8b25e35215de66fc03d47e3f625c56a4e2d9ac39a DIST avarice-2.14.tar.bz2 253668 BLAKE2B 673c95d8f7f296ffdd5c225e82bd8ef348f0c222201acb826798451fa195ec9c2fd8e8d1ecd3f847f9e0ac069ee2f6a4358f660ff45343817b14d804e79a8c90 SHA512 e0b23bd02bfa7d4dc05027f0f59ec7da868d8d0c0cd4f66595f6aaa5c335fa4eb64fc47399e51c0ed5112803ee99a3f041812bf4072dc096cc933cd17f9348a0 +EBUILD avarice-2.14-r1.ebuild 639 BLAKE2B ee526aaeea3f76a0c7542b2303ea58edb5bf0f145f77f658fe242488ff410a34975aa9a78ec6d958d6eeca55253e2fa8f4639472749c85930c4364d84942cc04 SHA512 e7a3ffb1b8c4067a7fa916a35535802c5566970f47c23f1716d2e7b68eeabb81e0629aadde3df77f97f2911fe9eb10fbe4b4ed7187448201a0c50c04d04dabdd EBUILD avarice-2.14.ebuild 530 BLAKE2B 289bde194c8a4534f98ea913eb83ef35cce8e4c4bdb059c5e808eef8206bbac39fc2a9f0034b709cacb1c76476509c893c8edbe59030daff04e5afc4c2f1b9a5 SHA512 89fade085af4db7413abd4be15dc3a49f4645a996a29b8a3a821c8e59d3d121b1b279b817c751b92f61e3b71868e29a67bced7d82bcc16b0058ad73ad6f189cc MISC metadata.xml 329 BLAKE2B b5ba4a852d61b4c83377ba3dbfbae56e22ddf7eeca99d9f1f1f5737b77200a2c6e8717673ef471e3567568e3985d976aa4f1dfacf15f53a812b736ac868b8cfb SHA512 e06f78bebc991549e252fa7e0e0f0f479cf181e9dec7f14e661785ac9247df73b340bbf5dd9a77ae3bd0030899dc3d64391c10a2eaab6793311507dcc718f573 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 ++ #ifndef bfd_get_section_name ++ extern bfd_get_section_name(bfd *abfd, const char *name); ++ #endif + bfd *file; + int main(void) { + bfd_init(); -- cgit v1.2.3