diff --git a/net-misc/taptap/files/taptap-1.0-missing-include.patch b/net-misc/taptap/files/taptap-1.0-missing-include.patch new file mode 100644 index 0000000000000..9b8c37b574bb9 --- /dev/null +++ b/net-misc/taptap/files/taptap-1.0-missing-include.patch @@ -0,0 +1,12 @@ +Add missing include +https://bugs.gentoo.org/919058 +--- a/taptap.c ++++ b/taptap.c +@@ -35,6 +35,7 @@ + #include + #include + #include ++#include + #ifndef __NetBSD__ + #include + #include diff --git a/net-misc/taptap/taptap-1.0-r1.ebuild b/net-misc/taptap/taptap-1.0-r2.ebuild similarity index 64% rename from net-misc/taptap/taptap-1.0-r1.ebuild rename to net-misc/taptap/taptap-1.0-r2.ebuild index 5ea681d0e963c..d0353dc3bfec9 100644 --- a/net-misc/taptap/taptap-1.0-r1.ebuild +++ b/net-misc/taptap/taptap-1.0-r2.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -inherit edo toolchain-funcs +inherit toolchain-funcs DESCRIPTION="Program to link two /dev/net/tun to form virtual ethernet" HOMEPAGE="https://grumpf.hope-2000.org/" @@ -13,15 +13,16 @@ S="${WORKDIR}" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~sparc ~x86" +PATCHES=( "${FILESDIR}/${P}-missing-include.patch" ) src_unpack() { - cp "${DISTDIR}"/${P}.c ${P}.c || die + cp "${DISTDIR}/${P}.c" "${PN}.c" || die } src_compile() { - edo $(tc-getCC) ${CFLAGS} ${LDFLAGS} -o ${PN} ${P}.c + emake CC="$(tc-getCC)" "${PN}" } src_install() { - dobin ${PN} + dobin "${PN}" }