commit:     3f9fabf33e63547d2a1059222ae750992ed21659
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 26 09:11:07 2020 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Sat Sep 26 09:12:06 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f9fabf3

dev-libs/libdnet: python: Include config.h for strlcpy definition

Package-Manager: Portage-3.0.8, Repoman-3.0.1
Bug: https://github.com/ofalk/libdnet/pull/60
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>

 dev-libs/libdnet/files/libdnet-1.14-strlcpy.patch | 10 ++++++++++
 dev-libs/libdnet/libdnet-1.14.ebuild              |  3 +++
 dev-libs/libdnet/libdnet-9999.ebuild              |  3 +++
 3 files changed, 16 insertions(+)

diff --git a/dev-libs/libdnet/files/libdnet-1.14-strlcpy.patch 
b/dev-libs/libdnet/files/libdnet-1.14-strlcpy.patch
new file mode 100644
index 00000000000..abc3a6b0f2d
--- /dev/null
+++ b/dev-libs/libdnet/files/libdnet-1.14-strlcpy.patch
@@ -0,0 +1,10 @@
+--- a/python/dnet.c
++++ b/python/dnet.c
+@@ -22,6 +22,7 @@
+ #endif
+ __PYX_EXTERN_C double pow(double, double);
+ #include "dnet.h"
++#include "config.h"
+ 
+ 
+ typedef struct {const char *s; const void **p;} __Pyx_CApiTabEntry; /*proto*/

diff --git a/dev-libs/libdnet/libdnet-1.14.ebuild 
b/dev-libs/libdnet/libdnet-1.14.ebuild
index 122c57b6274..8e8edf205be 100644
--- a/dev-libs/libdnet/libdnet-1.14.ebuild
+++ b/dev-libs/libdnet/libdnet-1.14.ebuild
@@ -26,6 +26,9 @@ RESTRICT="test"
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 DOCS=( README.md THANKS TODO )
 S=${WORKDIR}/${PN}-${P}
+PATCHES=(
+       "${FILESDIR}"/${PN}-1.14-strlcpy.patch
+)
 
 src_prepare() {
        default

diff --git a/dev-libs/libdnet/libdnet-9999.ebuild 
b/dev-libs/libdnet/libdnet-9999.ebuild
index 3878f74646e..ca4ff35ff01 100644
--- a/dev-libs/libdnet/libdnet-9999.ebuild
+++ b/dev-libs/libdnet/libdnet-9999.ebuild
@@ -25,6 +25,9 @@ RDEPEND="
 RESTRICT="test"
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 DOCS=( README.md THANKS TODO )
+PATCHES=(
+       "${FILESDIR}"/${PN}-1.14-strlcpy.patch
+)
 
 src_prepare() {
        default

Reply via email to