commit: af066c6b63a89f834a736181d7c892ebc453fecd Author: David Seifert <soap <AT> gentoo <DOT> org> AuthorDate: Sat Mar 21 15:01:44 2020 +0000 Commit: David Seifert <soap <AT> gentoo <DOT> org> CommitDate: Sat Mar 21 15:01:44 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af066c6b
net-p2p/ctorrent: Add missing <sys/types.h> include Closes: https://bugs.gentoo.org/713752 Package-Manager: Portage-2.3.94, Repoman-2.3.21 Signed-off-by: David Seifert <soap <AT> gentoo.org> net-p2p/ctorrent/ctorrent-3.3.2-r4.ebuild | 9 +++++---- net-p2p/ctorrent/files/ctorrent-3.3.2-sys-types_h.patch | 11 +++++++++++ 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/net-p2p/ctorrent/ctorrent-3.3.2-r4.ebuild b/net-p2p/ctorrent/ctorrent-3.3.2-r4.ebuild index 000a6838b53..85457d846cf 100644 --- a/net-p2p/ctorrent/ctorrent-3.3.2-r4.ebuild +++ b/net-p2p/ctorrent/ctorrent-3.3.2-r4.ebuild @@ -1,7 +1,7 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 MY_P="${PN}-dnh${PV}" @@ -14,16 +14,17 @@ SLOT="0" KEYWORDS="amd64 arm ppc ~s390 ~sh ~sparc x86" IUSE="libressl" -S="${WORKDIR}/${MY_P}" - RDEPEND=" libressl? ( dev-libs/libressl:0= ) !libressl? ( dev-libs/openssl:0= ) " DEPEND="${RDEPEND}" +S="${WORKDIR}/${MY_P}" + PATCHES=( "${FILESDIR}"/${PN}-CVE-2009-1759.patch "${FILESDIR}"/${P}-negative-ints.patch "${FILESDIR}"/${P}-empty-path-components.patch + "${FILESDIR}"/${P}-sys-types_h.patch ) diff --git a/net-p2p/ctorrent/files/ctorrent-3.3.2-sys-types_h.patch b/net-p2p/ctorrent/files/ctorrent-3.3.2-sys-types_h.patch new file mode 100644 index 00000000000..bf93cb2a3bb --- /dev/null +++ b/net-p2p/ctorrent/files/ctorrent-3.3.2-sys-types_h.patch @@ -0,0 +1,11 @@ +--- a/compat.c ++++ b/compat.c +@@ -8,6 +8,8 @@ + #include <sys/param.h> + #endif + ++#include <sys/types.h> ++ + #include "compat.h" + + #ifndef HAVE_CLOCK_GETTIME
